Cheat Sheet Iptables

Export rules

sudo iptables-save > iptables-export 

Import and apply rules (in between you may modify the rules in the file)

sudo iptables-restore < /tmp/iptables-export 
comments powered by Disqus