Multiple VPN's in a go

How to customize and extend your OpenVPN installation.

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

Post Reply
hellcry
OpenVpn Newbie
Posts: 4
Joined: Thu May 19, 2022 8:23 am

Multiple VPN's in a go

Post by hellcry » Thu May 19, 2022 8:31 am

Hello,

I am using openvpn from some time now. I work on windows 10 and use openvpn-gui with --connect opetion

What I want to do is connect 2 vpn's at start so i edited the shortcut when I lunch it it connects both vpn's but only is openvpn-gui is not already started.

for example:

if i use "C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --command connect vpn1 --command connect vpn2 both vpn connect correctly only if openvpn-gui is not started in windows sys try.
OR
if i use "C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect vpn1.ovpn --connect vpn2.ovpn both vpn connect correctly only if openvpn-gui is not started in windows sys try.

Anybody can help with this figure out why this happens?
Can anything be done about it?

Maybe the commands are not correct ?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Multiple VPN's in a go

Post by TinCanTech » Thu May 19, 2022 9:35 am

Both VPNs connect as you want .. what is the issue ?

hellcry
OpenVpn Newbie
Posts: 4
Joined: Thu May 19, 2022 8:23 am

Re: Multiple VPN's in a go

Post by hellcry » Thu May 19, 2022 10:32 am

"vpn connect correctly only if openvpn-gui is not started in windows sys try"

If openvpn-gui is started only one vpn connects the other one not!

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Multiple VPN's in a go

Post by TinCanTech » Thu May 19, 2022 11:19 am

https://community.openvpn.net/openvpn/w ... w#gui-help

I don't know if the way you are doing it now is correct.

hellcry
OpenVpn Newbie
Posts: 4
Joined: Thu May 19, 2022 8:23 am

Re: Multiple VPN's in a go

Post by hellcry » Thu May 19, 2022 11:46 am

I used this help but there is no example for 2 or more vpns, I assume both of those are correct since it works when openvpn-gui is not lunched.
--command connect vpn1 --command connect vpn2
--connect vpn1.ovpn --connect vpn2.ovpn

The issue is only one of the vpn's lunch happens if openvpn-gui is lunched already and has no vpn's connected.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Multiple VPN's in a go

Post by TinCanTech » Thu May 19, 2022 2:43 pm

If you think there is a bug then please report it.

https://github.com/OpenVPN/openvpn-gui/

hellcry
OpenVpn Newbie
Posts: 4
Joined: Thu May 19, 2022 8:23 am

Re: Multiple VPN's in a go

Post by hellcry » Thu May 19, 2022 2:52 pm


Post Reply