# iptables -t filter -Lshow all chains of filtering table [man]
# iptables -t nat -Lshow all chains of nat table [man]
# iptables -t filter -Fclear all rules from filtering table [man]
# iptables -t nat -Fclear all rules from table nat [man]
# iptables -t filter -Xdelete any chains created by user [man]
# iptables -t filter -A INPUT -p tcp --dport telnet -j ACCEPTallow telnet connections to input [man]
# iptables -t filter -A OUTPUT -p tcp --dport http -j DROPblock HTTP connections to output [man]
# iptables -t filter -A FORWARD -p tcp --dport pop3 -j ACCEPTallow POP3 connections to forward chain [man]
# iptables -t filter -A INPUT -j LOG --log-prefixLogging on input chain [man]
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEconfigure a PAT (Port Address Traslation) on eth0 masking outbound packets [man]
# iptables -t nat -A PREROUTING -d 192.168.0.1 -p tcp -m tcp --dport 22 -j DNAT --to-destination 10.0.0.2:22redirect packets addressed to a host to another host [man]