| Linux | Security | Debian | Slax | Tiny Core | Health |
|
Iptables 1 Iptables 3 Iptables 4 Iptables 9 Erase Everything from a Hard Drive |
SecurityIptables SummaryCheck Iptables Set UpTo view the Iptables set up, type:
To see verbose details, type:
To view just the INPUT chain, type:
When rules are used containing IP addresses, Iptables looks up the name of each IP address if it can find it, which may take some time if many rules are used containing IP addresses. To skip this, use "-n" for numeric:
To view line numbers at the beginning of each line, type:
Start Iptables AutomaticallyFor Iptables to start automatically each time the computer is turned on, insert the following line in the Iptables rules, right at the end.
Also add the following to "/etc/network/interfaces."
Save RulesRules can be saved using the following:
Save Rules When Shutting DownTo save the rules when the computer is turned off, add the following to "/etc/network/interfaces."
Log IptablesInclude rules in Iptables about logging. To log to "/var/log/iptables.log," add the following to "/etc/syslog.conf."
You need to restart your computer for this to take effect. Change Policy to DropTo change the policy to DROP, use the following:
Add ChainsTo create a new chain, use the following:
Example of Iptables Rules
Additional informationYou can do much more with Iptables. For help, open the terminal and type:
For the Iptables manual, open the terminal and type:
© Copyright Guy Shipard 2008 - 2009 |