Refactors iptables to be persistent