This link is a very comprehensive and quick guide on how to block IP addresses on your Linux server using Iptables.
Gist:
View all blocked IPs
$ sudo /sbin/iptables -L INPUT -v -n
Block an IP
$ sudo /sbin/iptables -I INPUT -s 11.22.33.44 -j DROP
Unblock an IP
$ iptables -D INPUT -s 11.22.33.44 -j DROP
Gist:
View all blocked IPs
$ sudo /sbin/iptables -L INPUT -v -n
Block an IP
$ sudo /sbin/iptables -I INPUT -s 11.22.33.44 -j DROP
Unblock an IP
$ iptables -D INPUT -s 11.22.33.44 -j DROP
No comments:
Post a Comment