How to reconnect to vpn using Batch file commands?

How to customize and extend your OpenVPN installation.

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

Post Reply
robertdbuckley
OpenVpn Newbie
Posts: 1
Joined: Thu Aug 14, 2014 11:31 am

How to reconnect to vpn using Batch file commands?

Post by robertdbuckley » Tue Jan 27, 2015 10:28 am

Hi,

I want to use a batch file to reestablish a connection whilst OpenVPN is running. Is this possible? I can start OpenVPN with a batch file and autoconnect using my config file, but I can´t figure out how to reconnect once the connection is down.

Any help would be super,

thanks,

Rob

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: How to reconnect to vpn using Batch file commands?

Post by Traffic » Tue Jan 27, 2015 12:08 pm

Do you want OpenVPN to automatically reconnect if the current session is dropped ?

Have you seen --keepalive ?

comeback1106
OpenVpn Newbie
Posts: 3
Joined: Wed Mar 04, 2015 7:17 am

Re: How to reconnect to vpn using Batch file commands?

Post by comeback1106 » Wed Mar 04, 2015 7:18 am

robertdbuckley wrote:Hi,

I want to use a batch file to reestablish a connection whilst OpenVPN is running. Is this possible? I can start OpenVPN with a batch file and autoconnect using my config file, but I can´t figure out how to reconnect once the connection is down.

Any help would be super,

thanks,

Rob
Hi you. Can you share me this batch file to connect OpenVPN. Thanks alots.

vincent49
OpenVpn Newbie
Posts: 2
Joined: Sun Jul 24, 2016 11:04 pm

Re: How to reconnect to vpn using Batch file commands?

Post by vincent49 » Wed Jul 27, 2016 11:14 am

I would love a script of this batch file )

Post Reply