Skip to content

Commit 84004cc

Browse files
committed
Open ports only for default services
1 parent 2f80b67 commit 84004cc

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

guides/common/modules/proc_opening-required-ports.adoc

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ endif::[]
4242
----
4343
endif::[]
4444
ifeval::["{context}" == "{project-context}"]
45-
. Allow access to services on {ProjectServer}:
45+
. Allow access to services on {ProjectServer}.
4646
endif::[]
4747
ifeval::["{context}" == "{smart-proxy-context}"]
48-
. Allow access to services on {SmartProxyServer}:
48+
. Allow access to services on {SmartProxyServer}.
4949
endif::[]
50+
The exact list of services that must be accessible depends on the services you want to enable on the server.
5051
+
52+
To allow access to the services that are enabled by default:
53+
+
54+
ifdef::satellite[]
5155
[options="nowrap"]
5256
----
5357
# firewall-cmd \
@@ -56,11 +60,38 @@ endif::[]
5660
--add-service=tftp \
5761
--add-service=http \
5862
--add-service=https \
59-
ifndef::katello,satellite,orcharhino[]
6063
--add-service=foreman-proxy \
64+
----
65+
endif::[]
66+
ifdef::katello[]
67+
[options="nowrap"]
68+
----
69+
# firewall-cmd \
70+
--add-service=http \
71+
--add-service=https \
72+
--add-service=foreman-proxy \
73+
----
74+
endif::[]
75+
ifdef::orcharhino[]
76+
[options="nowrap"]
77+
----
78+
# firewall-cmd \
79+
--add-service=http \
80+
--add-service=https \
81+
--add-service=foreman-proxy \
82+
--add-service=puppetmaster
83+
----
6184
endif::[]
85+
ifdef::foreman-deb,foreman-el[]
86+
[options="nowrap"]
87+
----
88+
# firewall-cmd \
89+
--add-service=http \
90+
--add-service=https \
91+
--add-service=foreman-proxy \
6292
--add-service=puppetmaster
6393
----
94+
endif::[]
6495
. Make the changes persistent:
6596
+
6697
[options="nowrap", subs="+quotes,verbatim,attributes"]

0 commit comments

Comments
 (0)