ABHIONLINUX
Site useful for linux administration and web hosting

2009/08/20

How to block an IP using IPTABLES

To block a range of IPs :

iptables -A INPUT -p tcp --destination-port 80 -m iprange --src-range 192.168.0.0-192.168.0.255 -j DROP

1 comment: