0

Diagram

I have:

  • Client behind a nat
  • VPS(AWS)
  • OpenVPN server installed in a different nat

I want to connect from my client to the OpenVPNServer trough the VPS.

I have been able to create a reverse ssh tunnel from the openvpn server to the VPS and expose some ports (web, ftp, ssh) and access them from my client succesfully.

ssh -R 9352:localhost:80 user@vps.com

This is not working if I try to expose the OpenVPN port and connect from my client, the connection just get reset and there are no logs of any attempted connection in the OpenVPN Server.

What I'm probably missing?

  • 1
    Easier solution would be just run the VPN server on the VPS, or run another VPN server on the VPS and chain. The performance of tunneling OpenVPN inside SSH is going to seriously suck. – Zoredache May 22 at 21:11
  • If I do it that way, It will allow me to be in the same lan as the first client? – user5526722 May 23 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.