1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-firewall-add-services.adoc

25 lines
657 B
Plaintext

// Module included in the following assemblies:
//
// * microshift_networking/microshift-firewall.adoc
:_mod-docs-content-type: Procedure
[id="microshift-firewall-add-services_{context}"]
= Adding services to open ports
On a {microshift-short} instance, you can open services on ports by using the `firewall-cmd` command.
.Procedure
. Optional: You can view all predefined services in firewalld by running the following command
+
[source,terminal]
----
$ sudo firewall-cmd --get-services
----
. To open a service that you want on a default port, run the following example command:
+
[source,terminal]
----
$ sudo firewall-cmd --add-service=mdns
----