Block IP Using IPTABLES
To block a single host, or a range of hosts from accessing a server you can use the following command(s): ## iptables -I INPUT -s 1.2.3.4 -j DROP ## iptables -I INPUT -s 1.2.0.0/16 -j DROP Those are temporary rules and if the server is rebooted they will not be present.