Tunneling or pre-connect / post-disconnect scripts

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
steffen.heil
OpenVpn Newbie
Posts: 2
Joined: Thu Sep 13, 2018 5:33 am

Tunneling or pre-connect / post-disconnect scripts

Post by steffen.heil » Thu Sep 13, 2018 5:41 am

Hi

I am using openvpn via tcp but I have to tunnel the Connection through an ssh connection. I know that this is not recommended for performance reasons, but my environment does not allow otherwise and it is actually working quite good.

However I always have to start my ssh client (putty) first, then connect with openvpn. If the ssh connection breaks, I have to shut down everything and start everything again.
I would prefer to have a pre-connect script to start an ssh client and a post-disconnect script to stop that again.

Or even better, not use tcp but instead connect the two openvpn processes directly using ssh. (Using stdin and stdout instead of tcp read/write.)

Is there any way to archieve one of those ideas?

Best regards,
Steffen

Post Reply