Skip to content

Commit

Permalink
Merge branch '123.09beta01'
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Jan 30, 2017
2 parents 2b2b8de + d9e03a9 commit 141f887
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions inc/csfinstall.inc
Expand Up @@ -187,6 +187,10 @@ if [[ "$CENTOS_SEVEN" = '7' ]]; then
fi
fi

if [ -f /usr/local/src/centminmod/tools/csfcf.sh ]; then
/usr/local/src/centminmod/tools/csfcf.sh auto
fi

echo "*************************************************"
cecho "* CSF firewall installed " $boldgreen
echo "*************************************************"
Expand Down
6 changes: 4 additions & 2 deletions tools/csfcf.sh
Expand Up @@ -131,8 +131,10 @@ csfadd() {
if [[ "$(awk -F '= ' '/^IPV6 =/ {print $2}' /etc/csf/csf.conf | sed -e 's|\"||g')" = '1' ]]; then
for ip in $CFIP6S;
do
csf -a "$ip" cloudflare
echo "ip" >> /etc/csf/csf.ignore
if [[ "$(grep "$ip" /etc/csf/csf.allow >/dev/null 2>&1; echo $?)" = '1' ]]; then
csf -a "$ip" cloudflare
echo "ip" >> /etc/csf/csf.ignore
fi
done
fi
}
Expand Down

0 comments on commit 141f887

Please sign in to comment.