Friday, September 25, 2009

iptables

iptables is a administration tool for IPv4 packet filtering and NAT, it's mainly in UNIX like operating system including, of course Linux. Here my iptables commands collection based on my own purposes:

- List applied filters
#iptables -L

- Blocking specific IP address
#iptables -I INPUT -s <address> -j DROP

- Unblocking specific IP address
#iptables -D INPUT -s <address> -j DROP