Cleanup
- No need to apply IPTables rules for Ubuntu/Debian
This commit is contained in:
parent
54d0d9d37d
commit
fab5d51d78
@ -419,7 +419,6 @@ fi
|
||||
|
||||
bigecho "Enabling services on boot..."
|
||||
|
||||
# Check for iptables-persistent
|
||||
IPT_PST="/etc/init.d/iptables-persistent"
|
||||
IPT_PST2="/usr/share/netfilter-persistent/plugins.d/15-ip4tables"
|
||||
ipt_load=1
|
||||
@ -492,9 +491,6 @@ sysctl -e -q -p
|
||||
chmod +x /etc/rc.local
|
||||
chmod 600 /etc/ipsec.secrets* /etc/ppp/chap-secrets* /etc/ipsec.d/passwd*
|
||||
|
||||
# Apply new IPTables rules
|
||||
iptables-restore < "$IPT_FILE"
|
||||
|
||||
# Restart services
|
||||
mkdir -p /run/pluto
|
||||
service fail2ban restart 2>/dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user