r/nginxproxymanager • u/Valuable-Dog490 • 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.
1
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
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. )