bunkerity / bunkerweb

🛡️ Open-source and next-generation Web Application Firewall (WAF)
https://www.bunkerweb.io
GNU Affero General Public License v3.0
6.12k stars 339 forks source link

[BUG] Error opening GeoIP DB #139

Closed jonathantjm closed 3 years ago

jonathantjm commented 3 years ago

Description When running the bunkerized nginx docker container, an error occurs when opening the GeoIP DB.

How to reproduce Run docker command with country in WHITELIST_COUNTRY or BLACKLIST_COUNTRY:

docker run -p 80:8080 -v ~/Desktop/folder:/www:ro -e WHITELIST_COUNTRY=US bunkerity/bunkerized-nginx

The latest image was used, as of time of writing.

Logs The logs generated by bunkerized-nginx.

[*] Starting bunkerized-nginx ...
[*] Configuring bunkerized-nginx ...
[*] Generation done !
[*] Downloading bad user-agent list (in background) ...
[*] Downloading bad referrer list (in background) ...
[*] Downloading tor exit nodes list (in background) ...
[*] Downloading proxies list (in background) ...
[*] Downloading abusers list (in background) ...
[*] Running nginx ...
2021/06/08 15:02:39 [emerg] 119#119: MMDB_open("/etc/nginx/geoip.mmdb") failed - Error opening the specified MaxMind DB file in /etc/nginx/geoip.conf:1
nginx: [emerg] MMDB_open("/etc/nginx/geoip.mmdb") failed - Error opening the specified MaxMind DB file in /etc/nginx/geoip.conf:1
[*] bunkerized-nginx stopped
fl0ppy-d1sk commented 3 years ago

Hello @jonathantjm,

Thanks for your report. I will investigate into this when I have time.

fl0ppy-d1sk commented 3 years ago

Hello @jonathantjm,

I've added a fix into the dev branch. Let's close the issue when it's integrated into the next version. Thanks again !

fl0ppy-d1sk commented 3 years ago

Hey @jonathantjm,

Fix has been integrated into the v1.2.7. Feel free to open a new issue if needed.