connect through a reverse proxy
Posted: Tue Jan 23, 2018 2:34 pm
I have an nginx reverse proxy set up to access the webgui. It looks something like this:
when I direct my web browser to vpn.example.com I'm taken to the web gui and it all works fine. I'd like to set up ovpn-as so that clients can connect using that address without me having to open port 9453 on my router. currently clients have to connect through vpn.example.com:9453, but I want to find a way to make this work without that port being open. possible to initially direct vpn traffic to 443, and then go internally to the ovpn-as ip:port?
is there a sensible way to do this in the webgui settings, or changing my router/nginx config?
Code: Select all
server {
listen 443 ssl;
root /config/www;
index index.html index.htm index.php;
server_name vpn.*;
location / {
include /config/nginx/proxy.conf;
proxy_pass https://192.168.187.10:9453;
}
}
is there a sensible way to do this in the webgui settings, or changing my router/nginx config?