Following the attack explained here : https://dev.to/mino_rand/maintenance-security-journey-in-2026-post-mortem-measures-in-ghost-compromised-websites-43bp
Some administration routes of the homelab were configured to use Traefik's ipAllowList middleware.β
But devices using mobile box internet in Madagascar doesn't have fixed IP adresses, so we needed to connect through a VPN and access these routes using the VPS public IP.
I got 403 Forbidden , even though the VPS public IP was already allowed.
Why?
When WireGuard accesses an external website, its traffic can leave through the VPS public IP.
However, when it accesses a website hosted on that same VPS , Docker can route the request back to Traefik through its bridge network.
The path was:
VPN client | v wg-easy container | | Destination: VPS_PUBLIC_IP:443 v Docker NAT | | Source becomes Docker gateway IP v Traefik | v 403 Forbidden
Enter fullscreen mode
Exit fullscreen mode
The VPN uses the VPS public IP as a destination, but Traefik receives theβ¦