Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Openvpn client using multiple Server address

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 335 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jcorreajr
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.