You probably find out find that your server is being attacked by brute force SSH attacks, port scanning, viruses scanning for the ability to spread, things like that or for some other reason  you want to block a specific IP on your server. In this article, I’ll show you how to block an IP address on Linux server using IPTables. First, I’ll assume you are already using iptables. You can check that using this command line: iptables -V Second, you have to create 2 shell script files in /etc/init.d folder. So go in the folder with cd /etc/init.d and create the first file: vi blockip.sh press “i” paste this script inside #!/bin/bash #blocking iptables /sbin/iptables -A INPUT -s $1 -j DROP #saving iptables /sbin/iptables-save > /etc/sysconfig/iptables save the[…]