How do I block an IP address from my server ? * Login to server command prompt by as root
Just consider that the attacking IP is 192.168.56.210.Type the following command.Here replace the IP with the IP you want to block.
iptables -A INPUT -s 192.168.56.210/32 -j DROP
/etc/init.d/iptables save |