
2 June 2026
Migrating from NPM to NPMplus with CrowdSec and MaxMind
After using Nginx Proxy Manager to expose several self-hosted services, I wanted to strengthen the reverse proxy layer without losing ease of management. I therefore migrated to NPMplus, a fork of Nginx Proxy Manager, and then added CrowdSec and geographical restriction based on MaxMind. The whole setup is deployed with Docker Compose to keep the stack reproducible and easy to update.
Why leave NPM
Nginx Proxy Manager did a good job managing domains, certificates and redirects. NPMplus builds on this foundation as a fork, with a familiar interface, whilst opening up more possibilities on the security side. Above all, I wanted better integration with CrowdSec, more control over access and a configuration better suited to my current usage.
- Keep an interface close to NPM for managing proxy hosts.
- Add CrowdSec remediation directly at the reverse proxy level.
- Restrict certain access by country of origin using a MaxMind GeoIP database.
Docker Compose architecture
I kept Docker Compose as the single entry point. The idea is to be able to restart or move the stack without rebuilding each service by hand. The volumes hold the NPMplus configuration, the logs analysed by CrowdSec and the GeoIP database used for geographical restrictions.
- NPMplus: reverse proxy, certificates and proxy hosts.
- CrowdSec: log analysis and creation of blocking decisions.
- Remediation component: enforcement of CrowdSec decisions on the proxy side.
- MaxMind / GeoIP: mapping IP addresses to a country to apply geographical rules.
Simplified Compose diagram: NPMplus receives traffic and writes logs, CrowdSec analyses them, and the remediation component enforces the decisions. The MaxMind database is mounted as a volume to enable geographical restrictions.
Firewalling architecture

The architecture separates public traffic from the administration plane. NPMplus remains the entry point for exposed services: it terminates TLS, applies MaxMind-based GeoIP rules and uses CrowdSec decisions to block sources deemed malicious. Administration, meanwhile, goes through a Teleport bastion with strong authentication rather than through management interfaces exposed directly on the Internet.

Migrating proxy hosts
The migration was done service by service. I first took over the existing proxy hosts, checked the internal destinations, and then verified the certificates and access rules. This step is important: an error in the reverse proxy can make a service inaccessible or, worse, expose something that shouldn't be.
- Checking ports and internal destinations.
- Verifying certificates before the switchover.
- Testing services from the local network and then from outside.

Adding CrowdSec
CrowdSec adds a detection layer on top of the reverse proxy. It reads the logs, recognises certain suspicious behaviours, and produces blocking decisions. In the console, I can monitor the engine's status, active scenarios, blocklists used, and the remediation component linked to NPMplus.
The interesting point is that protection no longer relies solely on hand-written rules. Community blocklists and CrowdSec scenarios make it possible to filter out some of the opportunistic traffic: web scans, IPs already known for attacks, or repeated behaviour on non-existent routes.

Geographic restriction with MaxMind
For some services, I don't need to accept global traffic. I therefore added a geographic restriction based on MaxMind. The principle is simple: the GeoIP database identifies the country associated with an IP, and then the plugin applies an allow or block rule depending on the proxy host concerned. Updating this database is automated in Docker Compose, which avoids having a manual maintenance step to manage.
It is not absolute protection: a VPN or a relay can bypass this type of filter. However, it is a good reduction in the attack surface for services intended for personal or family use, especially when combined with CrowdSec and strong authentication where necessary.
Points to watch
- Keep the real client IPs in the logs, otherwise CrowdSec and GeoIP lose part of their usefulness.
- Mount the log and configuration volumes explicitly in Docker Compose.
- Test geographic restrictions from several networks before considering the configuration reliable.
- Automate the MaxMind database update with a dedicated container.
Summary
This migration allowed me to keep the simplicity of NPM while strengthening the security of the reverse proxy. NPMplus centralises host management, CrowdSec filters out a portion of malicious traffic, and MaxMind adds a useful geographical restriction for services that are not intended to be accessible everywhere. At the same time, Teleport isolates the administration plane behind a bastion with strong authentication. Keeping the reverse proxy and security stack in Docker Compose makes it clearer and simpler to redeploy.