Openvpn client using multiple Server address

  • My Openvpn server (Pfsense) has two external IPs for VPN connection.
    External ip 01: (Main)
    External ip 02: (secondary)

    In the vpn client configuration, I put the IP "" 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 50002; remote 50002

    Is this the most elegant way to make openvpn client prioritize the connection to a remote IP?

  • Rebel Alliance Developer Netgate

    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.

Log in to reply