connect through a reverse proxy

Post Reply
nem2k
OpenVpn Newbie
Posts: 6
Joined: Wed Jul 29, 2015 3:57 am

connect through a reverse proxy

Post by nem2k » Tue Jan 23, 2018 2:34 pm

I have an nginx reverse proxy set up to access the webgui. It looks something like this:

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;	
	}
}
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?

Post Reply