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

    OpenVPN Client Dial Secondary External IP Address

    Scheduled Pinned Locked Moved OpenVPN
    10 Posts 2 Posters 817 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.
    • B
      Braidwood
      last edited by

      HI, Just wondering if it's possible to have an OpenVPN Client automatically connect to a second PFSENSE OpenVPN Server's External IP Address if the first servers IP Address goes down, so I have 2 gateways on the server PFSENSE, can the client be set to dial a second gateway on the same servers hosts if the first one goes down?

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

        @braidwood said in OpenVPN Client Dial Secondary External IP Address:

        Just wondering if it's possible to have an OpenVPN Client automatically connect to a second PFSENSE OpenVPN Server's External IP Address if the first servers IP Address goes down

        Is this one server with two external IPs or two servers?

        B 1 Reply Last reply Reply Quote 0
        • B
          Braidwood @viragomann
          last edited by

          Thanks for the reply @viragomann So the server is 1 Pfsense which has 2 WAN Interfaces to 2 seperate ISP's

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

            @braidwood
            The question is, if you are running a single server with two external IPs forwarded or are you running two server, one on each IP?

            B 1 Reply Last reply Reply Quote 0
            • B
              Braidwood @viragomann
              last edited by

              @viragomann said in OpenVPN Client Dial Secondary External IP Address:

              ingle server with two external IP

              Sorry, yes, 1 server listening on any interface for incoming clients, but how do i get the client ( on a pfsense as well ) to dial the second ip if the first goes down

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

                @braidwood
                With a single server you can simply add a second remote line to the client config file with the second IP.
                If the client is a pfSense you can enter the line into the advanced options box.

                B 2 Replies Last reply Reply Quote 1
                • B
                  Braidwood @viragomann
                  last edited by

                  @viragomann said in OpenVPN Client Dial Secondary External IP Address:

                  nter the line into the advanced options box.

                  thanks mate, I'll give this a go

                  1 Reply Last reply Reply Quote 0
                  • B
                    Braidwood @viragomann
                    last edited by

                    @viragomann said in OpenVPN Client Dial Secondary External IP Address:

                    e you can enter the line into the advanced options box.

                    Hi, Sorry to bother you, is this in the custom options, would you know where I can find code if this is where I put it

                    3298a133-0e2c-4201-8a1b-c7ac0ec10744-image.png

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

                      @braidwood

                      remote <IP> <port> <protocol>
                      

                      You have to enter the correct values for your server.

                      Edit:
                      w/o the angle brackets!
                      e.g.

                      remote 1.1.1.1 1194 UDP
                      
                      B 1 Reply Last reply Reply Quote 1
                      • B
                        Braidwood @viragomann
                        last edited by

                        @viragomann Awesome, thanks so much for that, I really appreciate your help

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