Saturday, June 8, 2013

Block a specific IP in IPCop

SSH into IPCop and type this (replace x.x.x.x with the IP). The /32 provides a subnet for that particular IP. Should work instantaneously.

/sbin/iptables -I FORWARD -s x.x.x.x/32 -j DROP

If you made a mistake or if you want to delete the entry, type this:

/sbin/iptables -D FORWARD -s x.x.x.x/32 -j DROP 

No comments:

Post a Comment