home.

tagged: unix-iptables

Unix: Using iptables

First create a ipfilters firewall file. Call it ipfilter.firewall.rules for example. Here's an example: http://library.linode.com/securing-your-server#sph_creating-a-firewall
You can then set it as your firewall like so:
 
iptables-restore < iptables.firewall.rules

Then you can list all the added rules via
 
iptables -L

unix-iptables unix

Page 1 of 1