I have to connect to two OpenVPN servers at once. How do I configure NetworkManager to connect as a client to both?
-- <OpenVPN1> -- <Resource 1> <laptop> - -- <OpenVPN2> -- <Resource 2>
I think it is impossible using only Network Manager. But you can use a little trick:
First export your OpenVPN2 settings from Network Manager to some file, say
Find your OpenVPN1 connection UUID:
Write script below, and put it under
Don't forget to give
That's it, now you only need to connect OpenVPN1, and OpenVPN2 will connect automatically. Also if you close OpenVPN1, OpenVPN2 will close.
Please let me know if something goes wrong, because I did not test script