Openvpn client using multiple Server address
-
My Openvpn server (Pfsense) has two external IPs for VPN connection.
Example:
External ip 01: 200.200.200.1 (Main)
External ip 02: 200.200.200.2 (secondary)In the vpn client configuration, I put the IP "200.200.200.1" in the field: "Server host or address" and the other ip in "Custom options".
To prioritize the connection to the first IP, ie for the client OpenVpn to try to connect more often to the main IP, I put it again in "Custom options".
Example "Custom options":
remote 200.200.200.1 50002; remote 200.200.200.2 50002
Is this the most elegant way to make openvpn client prioritize the connection to a remote IP?
-
It has no concept of "prioritization". It will keep trying the next server in the list if it gets disconnected or times out. Assuming it respects multiple duplicate entries, that may help, but ultimately it means that it will try the first one twice and then the second if the first two tries timeout.