Block IP using iptables

In order to block an IP in our Linux server, we need to use iptables:

iptables -A INPUT -s IP-TO-BLOCK -j DROP
service iptables save

To view all our rules set in iptables:

iptables -S
Advertisements