Minor clean up
This commit is contained in:
parent
ba0fbb3860
commit
ad8295721d
@ -151,6 +151,7 @@ if grep -qs "release 6" /etc/redhat-release; then
|
|||||||
yum -y install libevent2-devel || exiterr2
|
yum -y install libevent2-devel || exiterr2
|
||||||
else
|
else
|
||||||
yum -y install libevent-devel systemd-devel || exiterr2
|
yum -y install libevent-devel systemd-devel || exiterr2
|
||||||
|
yum -y install iptables-services || exiterr2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print_status "Installing Fail2Ban to protect SSH..."
|
print_status "Installing Fail2Ban to protect SSH..."
|
||||||
@ -382,9 +383,8 @@ if grep -qs "release 6" /etc/redhat-release; then
|
|||||||
chkconfig iptables on
|
chkconfig iptables on
|
||||||
chkconfig fail2ban on
|
chkconfig fail2ban on
|
||||||
else
|
else
|
||||||
systemctl --now mask firewalld
|
systemctl --now mask firewalld 2>/dev/null
|
||||||
yum -y install iptables-services || exiterr2
|
systemctl enable iptables fail2ban 2>/dev/null
|
||||||
systemctl enable iptables fail2ban
|
|
||||||
fi
|
fi
|
||||||
if ! grep -qs "hwdsl2 VPN script" /etc/rc.local; then
|
if ! grep -qs "hwdsl2 VPN script" /etc/rc.local; then
|
||||||
if [ -f /etc/rc.local ]; then
|
if [ -f /etc/rc.local ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user