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

    opvevpn client to site on secondary wan

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 173 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.
    • M
      miami71it
      last edited by

      hello everyone i wanted to ask a question.
      i have a vpn configured with various servers, one is used with external clients (windows pc) so it is a client to site.
      the others are to connect various external locations where there is another pfsense server (site to site)
      all enter via WAN interface with ports from 1194 onwards, 1194 is only used for client to site.
      the question was, is it possible to make sure that if the data line on the WAN interface is faulty the vpn is connected to another interface? if so how do i do it? given how different static public ip?
      thanks

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

        @miami71it
        OpenVPN is a typical client to server connection. So it's on the client, which IP it connects to.

        If you run the server with multiple WANs, just forward the OpenVPN traffic from the others to the one the server is listening on.

        On the client you can add multiple remote lines to the config to switch over to the next one if the current one fails.
        A remote generally looks like this:

        remote <IP> <port> <protocol
        e.g. remote 198.19.34.56 1194 udp
        

        If you use the client export utility to export your road warrior configs you can add this line in the "custom options" box there.

        However, consider that the client will not fail back automatically to the primary WAN after it's coming online again.

        M 1 Reply Last reply Reply Quote 0
        • M
          miami71it @viragomann
          last edited by

          @viragomann ok thanks I'll do some tests

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