Page 1 of 1

Multiple VPN's in a go

Posted: Thu May 19, 2022 8:31 am
by hellcry
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 ?

Re: Multiple VPN's in a go

Posted: Thu May 19, 2022 9:35 am
by TinCanTech
Both VPNs connect as you want .. what is the issue ?

Re: Multiple VPN's in a go

Posted: Thu May 19, 2022 10:32 am
by hellcry
"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!

Re: Multiple VPN's in a go

Posted: Thu May 19, 2022 11:19 am
by TinCanTech
https://community.openvpn.net/openvpn/w ... w#gui-help

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

Re: Multiple VPN's in a go

Posted: Thu May 19, 2022 11:46 am
by hellcry
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.

Re: Multiple VPN's in a go

Posted: Thu May 19, 2022 2:43 pm
by TinCanTech
If you think there is a bug then please report it.

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

Re: Multiple VPN's in a go

Posted: Thu May 19, 2022 2:52 pm
by hellcry