Navigation Menu

Skip to content

Commit

Permalink
update inc/csfinstall.inc for firewalld
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Jul 10, 2014
1 parent 6fec341 commit e24482e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions centmin.sh
Expand Up @@ -204,6 +204,10 @@ fi

ENABLE_MENU='y'

#####################################################
# CentOS 7 specific
FIREWALLD_DISABLE='n'

#####################################################
# CCACHE Configuration
CCACHEINSTALL='y'
Expand Down
19 changes: 19 additions & 0 deletions inc/csfinstall.inc
Expand Up @@ -4,6 +4,25 @@ csfinstalls() {
if [[ "$CSFINSTALLOK" = [yY] ]];
then

# if CentOS 7 is detected disable firewalld in favour
# of iptables ip6tables for now
if [[ "$CENTOS_SEVEN" = '7' ]]; then
if [[ "$FIREWALLD_DISABLE" = [yY] ]]; then
# disable firewalld
systemctl disable firewalld
systemctl stop firewalld

# install iptables-services package
yum -y install iptables-services

# start iptables and ip6tables services
systemctl start iptables
systemctl start ip6tables
systemctl enable iptables
systemctl enable ip6tables
fi
fi

echo "*************************************************"
cecho "* Installing CSF firewall... " $boldgreen
echo "*************************************************"
Expand Down

0 comments on commit e24482e

Please sign in to comment.