Adds iptables state logic