Setup firewall rules on CentOS 7. (#4329)

This commit is contained in:
tiagom62 2017-10-27 21:27:44 -04:00 committed by snipe
parent 2d758be0e1
commit 24211cb674

View file

@ -526,6 +526,12 @@ case $distro in
installsnipeit installsnipeit
if [ "$(firewall-cmd --state)" == "running" ]; then
echo "* Configuring firewall."
log "firewall-cmd --zone=public --add-port=http/tcp --permanent"
log "firewall-cmd --reload"
fi
#Check if SELinux is enforcing #Check if SELinux is enforcing
if [ "$(getenforce)" == "Enforcing" ]; then if [ "$(getenforce)" == "Enforcing" ]; then
echo "* Configuring SELinux." echo "* Configuring SELinux."