Hello,
I'm trying to figure out why Nginx's geoip modules doesn't seem to filter out certain ip's from a banned country. I manually tested the GeoIP.dat using 'geoiplookup' against a few ips that successfully connected but were in a banned country. GeoIP.dat was fine, it wasn't the problem. Maybe its a config problem? Wondering if you guys can help.
i have the following lines in config:
geoip_country /usr/share/GeoIP/GeoIP.dat;
server {
...
if ($geoip_country_code = CN) {
return 444;
}
....
}
Please help!