Mihle c7d3981943
Added the possible continent options to dbip.conf
Signed-off-by: Mihle <git@mihle.dev>
2025-08-15 11:07:20 +02:00

38 lines
999 B
Plaintext

geoip2 /config/geoip2db/dbip-country-lite.mmdb {
auto_reload 1w;
$geoip2_data_continent_code continent code;
$geoip2_data_country_iso_code country iso_code;
}
# Country Codes: https://en.wikipedia.org/wiki/ISO_3166-2
map $geoip2_data_country_iso_code $geo-whitelist {
default yes;
# Example for whitelisting a country, comment out 'default yes;' above and uncomment 'default no;' and the whitelisted country below
# default no;
# GB yes;
}
map $geoip2_data_country_iso_code $geo-blacklist {
default yes;
# Example for blacklisting a country, uncomment the blacklisted country below
# GB no;
}
# Continents:
# Options: AF, AS, EU, NA, OC, SA, AN
map $geoip2_data_continent_code $continent-blacklist {
default yes;
# Example blacklisting a continent, uncomment the blacklisted continent bellow
# SA no; # South America
}
geo $lan-ip {
default no;
10.0.0.0/8 yes;
172.16.0.0/12 yes;
192.168.0.0/16 yes;
127.0.0.1 yes;
}