Hi, I am trying to block IPs from a few different countries. Can someone help and tell me where I would be able to find all IPs that come from for example, China? I would like to block all the traffic that comes in to my sites from a few different countries. Thanks!
Using mod_geoip you can block a country at the Apache level and not the server level. The subnets assigned to each country are listed at: http://www.countryipblocks.net/ Select the country and click "Choose Countries". You can easily block all the subnets of a country using "csf -d <subnet>" command.
Yes, though IPtables is fine for just blocking country based IP's mod_geoip should work how you want it.