open http ports in firewalld
This commit is contained in:
parent
f9bbdeddc2
commit
6bf7c44560
10
install.sh
10
install.sh
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user