Comment on How do I point a reverse proxy to a VPN client on my VPS?
catloaf@lemm.ee 1 year agoYou’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 year 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 year ago
Right. How are you routing traffic from nginx?
jws_shadotak@sh.itjust.works 1 year ago
For the services already hosted by the VPS, I just point service.web.site to the appropriate localhost:port.
My hiccup is that the VPN software (pivpn) gives me an internal IP for the clients but pointing Nginx to that IP doesn’t work.
catloaf@lemm.ee 1 year ago
The nginx host is the VPN client in this case, so it’d be connecting to itself. You need to point it to the host on the VPN server side network.