open http ports in firewalld

This commit is contained in:
Matthew Saunders Brown 2022-11-16 15:10:52 -08:00
parent f9bbdeddc2
commit 6bf7c44560

View File

@ -235,3 +235,13 @@ cp bin/* /usr/local/bin/
chmod 755 sbin/* chmod 755 sbin/*
cp sbin/* /usr/local/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