Quick way to create iptables rules

I like to keep my system clean and secured. Unfortunately, the GUI interface for iptables isn’t really matching my expectations. So I would like to create simple bash script which will execute iptables rules with every system boot-up. By default it blocks all incoming AND outgoing traffic also, so be careful :-) If you want to open another port – you just need to add it to the INPUT_OUTPUT list. Take a look at the source of the script:...

March 20, 2009 · 2 min