-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geolocation Blocking #730
Comments
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? What line do I have to put? Thanks |
@Revan335 Did you manage to get this up and running? I've been reading through the document but can't seem to figure out the exact config I need to put in the Advance tab to explicitly allow/block certain countries. From my understanding, it should be as simple as adding
Or alternatively:
To the advanced tab, but that makes the host go Offline. |
what is written in your log? |
The docker logs say this when I apply the Advanced Configuration
Then the host is marked "Offline" in the UI. When I remove the configuration again:
And the status goes back to Online. This is the same for every host. The container is running as root and does have rights to create/delete files:
|
I think you need to put geoip2 and map into the cusatom/http_root file |
I think that was it! Placing the following in the custom/http_top.conf file:
And then placing the if statement in the Advanced Configuration. Or even better, in the server_proxy.conf file so it applies automatically to all hosts:
Seems to have done the trick... I am now seeing HTTP 444 in the access log after starting a VPN to Germany or France:
Many thanks! |
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
The text was updated successfully, but these errors were encountered: