# Here is the simple iptables rule that deny access to our server for some IP adress# All you have to do is change the IP adress 12.154.157.147 to i.e. some attacker's address
iptables -A INPUT -s 12.154.157.147 -j DROP