1
0
mirror of synced 2025-02-19 21:43:17 +03:00
- No need to apply IPTables rules for Ubuntu/Debian
This commit is contained in:
hwdsl2 2020-05-23 17:57:38 -05:00
parent 54d0d9d37d
commit fab5d51d78

View File

@ -419,7 +419,6 @@ fi
bigecho "Enabling services on boot..." bigecho "Enabling services on boot..."
# Check for iptables-persistent
IPT_PST="/etc/init.d/iptables-persistent" IPT_PST="/etc/init.d/iptables-persistent"
IPT_PST2="/usr/share/netfilter-persistent/plugins.d/15-ip4tables" IPT_PST2="/usr/share/netfilter-persistent/plugins.d/15-ip4tables"
ipt_load=1 ipt_load=1
@ -492,9 +491,6 @@ sysctl -e -q -p
chmod +x /etc/rc.local chmod +x /etc/rc.local
chmod 600 /etc/ipsec.secrets* /etc/ppp/chap-secrets* /etc/ipsec.d/passwd* chmod 600 /etc/ipsec.secrets* /etc/ppp/chap-secrets* /etc/ipsec.d/passwd*
# Apply new IPTables rules
iptables-restore < "$IPT_FILE"
# Restart services # Restart services
mkdir -p /run/pluto mkdir -p /run/pluto
service fail2ban restart 2>/dev/null service fail2ban restart 2>/dev/null