Skip to content

Commit

Permalink
Setup firewall rules on CentOS 7. (#4329)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagom62 authored and snipe committed Oct 28, 2017
1 parent 2d758be commit 24211cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions snipeit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,12 @@ case $distro in

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
if [ "$(getenforce)" == "Enforcing" ]; then
echo "* Configuring SELinux."
Expand Down

0 comments on commit 24211cb

Please sign in to comment.