Skip to content

NPM and OpenVPN #274

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
axiom00 opened this issue Jan 16, 2020 · 6 comments
Closed

NPM and OpenVPN #274

axiom00 opened this issue Jan 16, 2020 · 6 comments
Labels

Comments

@axiom00
Copy link

axiom00 commented Jan 16, 2020

Hi @jc21,

I have OpenVPN running on my home network for those times I need to remote back into my network. OpenVPN is configured to tunnel on port 1194/upd and 443/tcp. For the most part, I tunnel on port 1194 but on occasion I am at a client site that blocks port 1194 and have to resort to port 443 to exit their network.

Before installing NPM, both 1194 and 443 were forwaded to OpenVPN.
Now that NPM is installed, 1194 is still forwarded to OpenVPN, but 80/443 to NPM.

Any suggestions on configuring NPM and OpenVPN to share port 443?

Thanks.

@axiom00 axiom00 added the bug label Jan 16, 2020
@jc21
Copy link
Member

jc21 commented Jan 16, 2020

I had a big response prepared to basically say "TCP doesn't share like that" but then a simple google has led me to this:

https://medium.com/bob-kfir-tech/how-to-have-openvpn-and-ssl-on-the-same-port-f0c8df2b2cc2

I don't use openvpn so I can't give it a go.

@axiom00
Copy link
Author

axiom00 commented Jan 16, 2020

Thanks! I'll give it a try.

From my research, it seems you can only accomplish this by putting something in front of NPM to split the traffic. sshl or haproxy.

Out of curiosity, what VPN are you using to remote back to your home network if you're using one?

@jc21
Copy link
Member

jc21 commented Jan 16, 2020

I'm not. My domains are public and I use http method for letsencrypt verification.

@axiom00
Copy link
Author

axiom00 commented Jan 16, 2020

Got it. Thanks for the info.

@axiom00 axiom00 closed this as completed Jan 16, 2020
@gartenbauer
Copy link

@axiom00 Did you find a solution?

@axiom00
Copy link
Author

axiom00 commented Jan 30, 2020

@gartenbauer Unfortunately no. I tried running HAProxy on my pfsense firewall to split VPN and https but was unsuccessful. I'll make sure to update this issue if I end up figuring out a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants