Leaving home network

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
zkab
OpenVpn Newbie
Posts: 19
Joined: Sat Jul 20, 2013 2:39 pm

Leaving home network

Post by zkab » Tue May 03, 2022 10:11 am

I have installed OpenVPN in Windows11 at my notebook ... if works OK.
Want to start OpenVPN when I leave my home network and terminate OpenVPN when I return.
I have Googled alot but can't find any solution.
I can't be the only one who have this common problem.
Appreciate your input.

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: Leaving home network

Post by openvpn_inc » Wed May 04, 2022 2:26 pm

Hi zk,

If you are talking about OpenVPN Connect, it is not designed to work that way; it is designed to try to always remain connected. Perhaps you'd have better luck trying with the community (open source) client? I think you should be able to script something in PowerShell to check the connection and start or stop it as appropriate, when the home network is detected?

I'm not a Windows user, so I don't know details, but I do know that PowerShell has lots of cmdlets and extensive documentation.

regards, rob0
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply