Small blog about system administration.

HOWTO: Block IP using Iptables



The following command will drop any packet coming from the IP address 1.2.3.4:

#iptables -I INPUT -s {IP-HERE} -j DROP 
#iptables -I INPUT -s 1.2.3.4 -j DROP

To list the chains:

#iptables -L -v -n

No comments :

Post a Comment