M
M
mr_mescaline2016-12-22 17:49:34
Nginx
mr_mescaline, 2016-12-22 17:49:34

Is there a bug in nginx geoip?

you need to ban (more precisely, a broken connection) some ip ranges using nginx.
in the main conf.
geo $geoip {
default 0;
include /etc/nginx/dir/ip.conf;
}
in conf. site
if ($geoip = "1") {
return 444;
}
ip.conf itself in this form
11.11.128.0/17 1;
11.11.224.0/24 1;
11.11.222.0/24 1;
is there an error somewhere? for some reason it skips, in the logs I see all the addresses that I entered into ip.conf
, let 's say I entered
11.11.64.0/19,
such ip passed by
11.11.69.218

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question