dperson / openvpn-client

GNU Affero General Public License v3.0
1.06k stars 587 forks source link

Multiple server behavior #363

Open somebody-somewhere-over-the-rainbow opened 3 years ago

somebody-somewhere-over-the-rainbow commented 3 years ago

First all thanks for the awesome container. I would like to better understand the behavior if I supply multiple ovpn config via the environment variable VPN_FILES (e.g. VPN_FILES=vpn1.ovpn;vpn2.ovpn;vpn3.ovpn).

As i can see the client connects to vpn1 at container startup (as expected). Would it try to connect to vpn2 if a connection fails to the vpn1 (and vpn3 if vpn2 fails as well)? If so what is the retry failure count before it tries vpn2? How does the entry resolv-retry infinite in a ovpn file impact the behavior?

thanks a lot in advance - again love what you have done!

bradmurray commented 3 years ago

I have always used the multiple configurations in my vpn.config file by having multiple remote entries and then an entry for remote-random

somebody-somewhere-over-the-rainbow commented 3 years ago

I have always used the multiple configurations in my vpn.config file by having multiple remote entries and then an entry for remote-random

I am aware of that function but I would like to specificially know what the behavior is like using the environment variable. I do not necessarily want to connect randonmly to a server but would like to provide a backup server to connect to in case the main server is unreachable