best method for country IP blocking?
running ubuntu trusty and am wondering what the best method is for blocking certain countries from accessing my server including email, web, listserv, etc. thanks in advance!
1 Reply
I did this once with iptables, which is a barebones firewall program that's considered more difficult than others to use, but it is extensible. I used this guide successfully to block whole country's IP ranges for a personal server:
https://www.dghost.com/techno/internet/banning-an-entire-country-with-iptablesipset
Hope this helps!