if ! iptables-save | grep '^-' >/dev/null; then
echo "CN: Netfilter rules empty: importing SSH bruteforce rules"
. /usr/share/doc/iptables-cn/examples/ssh-bruteforce
- iptables-save > /var/lib/iptables/active
fi
+ echo "CN: Saving current Netfilter rules to /var/lib/iptables/active"
+ iptables-save > /var/lib/iptables/active
+fi
+
+# create inactive
+if [ ! -e /var/lib/iptables/inactive ]; then
+ touch /var/lib/iptables/inactive
fi
# dh_installdeb will replace this with shell code automatically