ZoeyVid / NPMplus

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://hub.docker.com/r/zoeyvid/npmplus
MIT License
291 stars 13 forks source link

Geolocation Blocking #730

Open Revan335 opened 3 months ago

Revan335 commented 3 months ago

Hello,

how can I use Geolocation Blocking? For example only from Germany, USA, Austria ... can I access to the Docker Container ... and Access/Connections from others are blocked.

This can increase the Security and lower Risk of Hacking ...

NPM don't have this Feature. Have SWAG this? I don't know.

Can you add this?

Many Thanks!

Greetings

Revan335

Zoey2936 commented 3 months ago

Hello, I will add this with the PHP rewrite (see #731). But until then: You can mount geo databases into the NPMplus container and configure geoblocking in the advanced tab. (The nginx geoip module and the maxmind module are compiles into NPMplus)

viriatusX commented 2 months ago

Hello, I will add this with the PHP rewrite (see #731). But until then: You can mount geo databases into the NPMplus container and configure geoblocking in the advanced tab. (The nginx geoip module and the maxmind module are compiles into NPMplus)

How i can configure in Advanced tab? I have already mapped the Geo2Ip DBs in /data/geo2ip.

What line do I have to put? Thanks

Zoey2936 commented 2 months ago

see https://github.com/leev/ngx_http_geoip2_module and https://freenginx.org/en/docs/http/ngx_http_geoip_module.html and https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-by-geoip/