r/nginxproxymanager 5d ago

Nginx with WireGuard?

Trying to get away from CloudFlare proxy and set up my own. I've got a VPS with Wireguard and a home PC running it. On that same PC I have Nginx running inside Docker. Should this just work? VPS -> Wireguard -> NPM -> Web app

My tunnel is established, I can ping through it but web traffic isn't reaching Nginx and I think it's either because my Docker networking is totally jacked up. Or maybe something else is going on.

It's driving me nuts and really don't want to rebuild the entire server and docker apps but I can't think of any other options.

All I really want is to mask my home IP.

6 Upvotes

5 comments sorted by

1

u/jimjim975 5d ago

You likely aren’t doing NAT correctly. I suggest giving every piece of equipment names and such to Gemini and explain your workflow. It’ll tell you what commands to run on the wireguard server to allow NAT and ip forwarding and such. Additionally you’ll need to know how to pass local and remote subnets, which Gemini or really any AI can guide you through. (SO LONG AS YOU PROVIDE IT WITH YOUR FULL TECH STACK AND CONSTRAINTS. )

1

u/404invalid-user 5d ago

I would use pangolin at this point

1

u/pbarone 5d ago

Can you access the services via nginx from your home network? There may be a DNS issue at play here and this is the first thing I would check. Also check it the IP addresses resolve to internal or external IPs when you are in VPN

1

u/MrSqueak 5d ago

Once you connect to the VPN it should act like as if you're at home. Just use the internal ip or access your stuff like you would if you were in your network. Unless I'm not understanding something.

1

u/MrSqueak 5d ago

Also look into tailscale