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

    OpenVPN Connect

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 2 Posters 632 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.
    • I
      Ilya.V
      last edited by

      Good afternoon friends!
      I need your advice again.
      There are two machines with Pfsense.
      OVPN server is configured on one, OVPN client on the other.
      On Pfsense, two links are connected to the server, one gigabit, the other 20Mb/s; the connection is configured for both addresses.
      Tell me how to set up automatic client switching to another address?
      That is, link # 1 fell - the client switched to link # 2, link # 1 (gigabit) went up - the client switched to it.
      Are there any solutions in Pf?

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @Ilya.V
        last edited by

        @ilya-v
        The most simple way to switch to the other on connection failure is to add a second remote line to the client config. You can do this in the custom options like this:

        remote <IP / hostname> <port> <protocol>
        

        e.g.
        remote 1.1.1.1 1194 udp4

        However, with this the client will not switch back to link1 as long as link2 is available or restart the service.

        I 1 Reply Last reply Reply Quote 0
        • I
          Ilya.V @viragomann
          last edited by

          @viragomann Is it possible to somehow set the connection priority?

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @Ilya.V
            last edited by

            @ilya-v
            The first server in the config file (this is that one youve entered in the GUI) is probed first. If it replies the client establishes the connection to it.
            But there is not option that it drops the connection to the secondary and reconnects to the primary when the link comes back.

            I 1 Reply Last reply Reply Quote 0
            • I
              Ilya.V @viragomann
              last edited by

              @viragomann thanks for answers!

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