Skip to content

OpenVPN Configuration #866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bwees opened this issue Feb 4, 2021 · 3 comments
Closed

OpenVPN Configuration #866

bwees opened this issue Feb 4, 2021 · 3 comments

Comments

@bwees
Copy link

bwees commented Feb 4, 2021

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

@dixi83
Copy link

dixi83 commented 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...

@chaptergy
Copy link
Collaborator

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 #1479 (jc21/nginx-proxy-manager:github-pr-1479) and add it as an ssl passthough host as described here.

Copy link

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

@github-actions github-actions bot added the stale label Mar 20, 2024
@bwees bwees closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants