Comment on How do I point a reverse proxy to a VPN client on my VPS?
catloaf@lemm.ee 1 week ago
VPN setup on VPS with successful routing of containers. Confirmed by using a CLI IP check within the container which returned the VPS IP
If you want to route traffic from the VPS over the VPN, and the check returned the IP address of the VPS, this confirms it is not working. You need to configure your VPS to route traffic over the VPN. Personally, I’ve done this in the reverse direction (routing local qbittorrent to a public VPN) with gluetun.
jws_shadotak@sh.itjust.works 1 week ago
I think you got it reversed. I want the container traffic to go through the VPN to the VPS and I want the reverse proxy on the VPS to point to that container.
I want the website (hosted at my house) to be accessible through the VPS so my IP isn’t directly exposed.
catloaf@lemm.ee 1 week ago
You’ve confirmed I’ve understood it correctly. Someone on the Internet requests your site. They reach your VPS with nginx. So far so good. Now, how does nginx know how to reach the upstream service?
jws_shadotak@sh.itjust.works 1 week ago
The goal is to route the services through the VPN and point Nginx to them… but it doesn’t work.
catloaf@lemm.ee 1 week ago
Right. How are you routing traffic from nginx?