Skip to content

Commit

Permalink
Fix firewall commands for ports & services - Proxy
Browse files Browse the repository at this point in the history
This applies to Proxy Server as well:
theforeman#2630
  • Loading branch information
mjivraja authored and Lennonka committed Jan 23, 2024
1 parent faa197d commit 05e68cf
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions guides/common/modules/proc_enabling-connections-to-capsule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,18 @@ On the base operating system on which you want to install {SmartProxy}, you must
include::snip_firewalld.adoc[]

.Procedure

. On the base operating system on which you want to install {SmartProxy}, enter the following command to open the ports for {ProjectServer} and clients communication to {SmartProxyServer}:
ifdef::katello,satellite,orcharhino[]
. Open the ports for clients on {SmartProxyServer}:
+
[options="nowrap"]
----
# firewall-cmd \
--add-port="5647/tcp" \
--add-port="8000/tcp" \
--add-port="9090/tcp"
----
endif::[]
. Allow access to services on {SmartProxyServer}:
+
[options="nowrap"]
----
Expand All @@ -19,20 +29,15 @@ include::snip_firewalld.adoc[]
ifdef::katello,satellite,orcharhino[]
--add-service=http \
--add-service=https \
--add-port="5647/tcp" \
endif::[]
--add-service=puppetmaster \
ifndef::katello,satellite,orcharhino[]
--add-service=foreman-proxy
endif::[]
ifdef::katello,satellite,orcharhino[]
--add-port="8000/tcp" \
--add-port="9090/tcp"
--add-service=foreman-proxy \
endif::[]
--add-service=puppetmaster
----

. Make the changes persistent:
+
[options="nowrap"]
----
# firewall-cmd --runtime-to-permanent
----
Expand Down

0 comments on commit 05e68cf

Please sign in to comment.