From 6bf7c44560b9eea44192ee0a149acc30f6a1c088 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 16 Nov 2022 15:10:52 -0800 Subject: [PATCH] open http ports in firewalld --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.sh b/install.sh index 458de8e..6b23fcf 100755 --- a/install.sh +++ b/install.sh @@ -235,3 +235,13 @@ cp bin/* /usr/local/bin/ chmod 755 sbin/* cp sbin/* /usr/local/sbin/ +# enable http (port 80) and https (port 443) in the firewall +[[ -d /etc/firewalld/ ]]; then + firewall-cmd --zone=public --add-service=http + firewall-cmd --permanent --zone=public --add-service=http + firewall-cmd --zone=public --add-service=https + firewall-cmd --permanent --zone=public --add-service=https +else + echo "firewalld not installed, not opening http ports in firewall." +fi +