Automatically apply iptables rules