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

    Multiwan and outgoing traffic from pfSense

    Routing and Multi WAN
    3
    6
    6.3k
    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.
    • L
      laurentl
      last edited by

      Hello,

      i have setup a multiwan configuration by following this tutorial: http://doc.pfsense.org/index.php/MultiWanVersion1.2.
      i have test the failover by unpluging the WAN connection, and everything works fine for the LAN clients behind the pfSense, they still have internet.

      but i have some problem with local outgoing traffic from the pfsense:
      since the default route is always set to WAN's gateway, when the WAN connection is down i no longer have outgoing traffic from pfSense.
      i need to delete manually this default route to add a new one for the WAN2's gateway.

      i dont understand why the default route is always set on WAN's gateway and it is not a multipath route when the 2 wan connection are alive and automaticaly set to the good gateway when a wan connection is done.

      i think i have miss something.

      thanks in advance for your helps.

      1 Reply Last reply Reply Quote 0
      • S
        sai
        last edited by

        the gateway in the firewall rules should be the one of the load balancer pools.

        1 Reply Last reply Reply Quote 0
        • GruensFroeschliG
          GruensFroeschli
          last edited by

          pfSense itself uses the local routing table which has only one default gateway.

          The loadbalancer for the clients does not use the routing table on pfSense but forces the traffic directly to the gateways you specify in the balancing pools.

          What exactly is you problem?
          What kind of server do you need to have access to from WAN1 and WAN2 on pfSense itself?

          We do what we must, because we can.

          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

          1 Reply Last reply Reply Quote 0
          • L
            laurentl
            last edited by

            @GruensFroeschli:

            pfSense itself uses the local routing table which has only one default gateway.

            The loadbalancer for the clients does not use the routing table on pfSense but forces the traffic directly to the gateways you specify in the balancing pools.

            What exactly is you problem?
            What kind of server do you need to have access to from WAN1 and WAN2 on pfSense itself?

            my problem is that i have configured an openvpn client on the pfsense and if i lose the WAN connection i cant re-connect my vpn on WAN2 because the default route still stay on WAN's gateway.
            i need to change the default route to the WAN2's gateway to remount my openvpn tunnel.

            1 Reply Last reply Reply Quote 0
            • GruensFroeschliG
              GruensFroeschli
              last edited by

              So you basically want OpenVPN failover.
              This is not possible through the gui.

              You could search the forum for other threads that deal with failover of services on pfSense itself.
              I know there are such threads around that dont deal with OpenVPN but lead to the same thing.

              We do what we must, because we can.

              Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

              1 Reply Last reply Reply Quote 0
              • L
                laurentl
                last edited by

                @GruensFroeschli:

                So you basically want OpenVPN failover.
                This is not possible through the gui.

                You could search the forum for other threads that deal with failover of services on pfSense itself.
                I know there are such threads around that dont deal with OpenVPN but lead to the same thing.

                ok but another example, i cant list available package on the pfsense interface since the default gateway is wrong and output traffic is no longer routed.
                is there any reason to not switch the default gateway to the current available connection ?

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