[GH-ISSUE #866] OpenVPN Configuration #733

Closed
opened 2026-02-26 06:34:11 +03:00 by kerem · 3 comments
Owner

Originally created by @bwees on GitHub (Feb 4, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/866

What is troubling you?

I am trying to put an OpenVPN server with only port 1194 exposed behind NPM. I would like to be able to set my ovpn client to vpm.domain.com instead of my public IP address. This is so I am not exposing port 1194 on my router and instead am only exposing 80 and 443 which NPM is listening on. What configuration do I have to do inside of NPM to allow the client to point to vpn.domain.com and it goes through Nginx and onto the VPN server. I know that this is similar to #274 but, I could not discern a clear configuration. I have tried to do a simple proxy where vpn.domain.com forwards to 10.0.1.51:1194 (the ovpn server) but the connection fails and from what I can tell, the server is not seeing any traffic trying to connect to it

Originally created by @bwees on GitHub (Feb 4, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/866 **What is troubling you?** I am trying to put an OpenVPN server with only port 1194 exposed behind NPM. I would like to be able to set my ovpn client to vpm.domain.com instead of my public IP address. This is so I am not exposing port 1194 on my router and instead am only exposing 80 and 443 which NPM is listening on. What configuration do I have to do inside of NPM to allow the client to point to vpn.domain.com and it goes through Nginx and onto the VPN server. I know that this is similar to #274 but, I could not discern a clear configuration. I have tried to do a simple proxy where vpn.domain.com forwards to 10.0.1.51:1194 (the ovpn server) but the connection fails and from what I can tell, the server is not seeing any traffic trying to connect to it
kerem 2026-02-26 06:34:11 +03:00
Author
Owner

@dixi83 commented on GitHub (Nov 20, 2021):

I found this topic on the Nginx forums:
https://forum.nginx.org/read.php?11,260587
It seems to be possible. But I don't see how to configure this in NPM...

<!-- gh-comment-id:974646361 --> @dixi83 commented on GitHub (Nov 20, 2021): I found this topic on the Nginx forums: https://forum.nginx.org/read.php?11,260587 It seems to be possible. But I don't see how to configure this in NPM...
Author
Owner

@chaptergy commented on GitHub (Nov 20, 2021):

Proxying both http and non-http protocols on the same port is non-trivial and relies on SNI, which apparently is NOT provided by most OpenVPN clients. So it seems you need specific clients for this to work anyways.
If it were possible you would have to use the image from PR https://github.com/jc21/nginx-proxy-manager/pull/1479 (jc21/nginx-proxy-manager:github-pr-1479) and add it as an ssl passthough host as described here.

<!-- gh-comment-id:974649536 --> @chaptergy commented on GitHub (Nov 20, 2021): Proxying both http and non-http protocols on the same port is non-trivial and relies on SNI, which apparently is NOT provided by most OpenVPN clients. So it seems you need specific clients for this to work anyways. If it were possible you would have to use the image from PR https://github.com/jc21/nginx-proxy-manager/pull/1479 (`jc21/nginx-proxy-manager:github-pr-1479`) and add it as an ssl passthough host as described [here](https://github.com/jc21/nginx-proxy-manager/blob/70163a66fbe524856df64b83252e3b26244ac0d0/docs/advanced-config/README.md#ssl-passthrough).
Author
Owner

@github-actions[bot] commented on GitHub (Mar 20, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:2008552272 --> @github-actions[bot] commented on GitHub (Mar 20, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#733
No description provided.