mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
25 lines
657 B
Plaintext
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
|
|
---- |