Iptables: how to block bunch of countries to attack your server

This weekend a friend of mine, owner of  a web site dev-hosting company told me about cPanel regular emails alerts regarding recurrent SSH failed login attempts on one of his customers servers from few IPs located in 3 countries.

He asked me about a way to block certain countries via iptables.  I wrote something that did the trick Lire la suite

Publicités