Professional Documents
Culture Documents
Ip Tables
Ip Tables
Iptables provides packet filtering, network address translation (NAT) and other packet mangling. Two of
the most common uses of iptables is to provide firewall support and NAT.Configuring iptables manually
is challenging for the uninitiated. Fortunately, there are many configuration tools (wizards) available to
assist: e.g., fwbuilder, bastille, ferm (wiki page), ufw (Uncomplicated Firewall, from Ubuntu).
iptables –L
Once you are happy, save the new rules to the master iptables file:
To make sure the iptables rules are started on a reboot we'll create a new file:
pico /etc/network/if-pre-up.d/iptables
#!/bin/sh
/sbin/iptables-restore < /etc/iptables.up.rules
chmod +x /etc/network/if-pre-up.d/iptables