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

    two tunnels one wan

    Scheduled Pinned Locked Moved WireGuard
    7 Posts 3 Posters 1.5k 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.
    • G
      galt007
      last edited by

      Hi
      New to pfsense. Have it up and running, have a wg tunnel up and running with mullvad, will replace my pepwave router as soon as my new 16g managed switch comes in. I plan on using wg on the lan interface to the wan. so whole house VPN, DoT, add blocking tracker blocking. Can I setup 2 WG tunnels to the same WAN interface so that if one VPN connection fails the other picks up automatically? I would of course choose 2 different VPN servers.

      Thanks in advance.

      G 1 Reply Last reply Reply Quote 0
      • G
        galt007 @galt007
        last edited by

        ok I have 2 WG tunnels to mullvad. They are both working. I can select either one as the default gateway under system/routing/gateways.

        Is it as simple as making a gateway group from the 2 tunnels and using the gateway group as the default gateway?

        N 1 Reply Last reply Reply Quote 0
        • N
          netblues @galt007
          last edited by

          @galt007 Either that, or just policy routing with rules on your lan, selecting gateway groups as needed

          G 1 Reply Last reply Reply Quote 1
          • G
            galt007 @netblues
            last edited by galt007

            So when i create two WG tunnels to Mullvad. I cant have them both listen on port 51820. I have to set one to 51821.

            Then use the "51821" tunnel on LAN policy based routing and set the default gateway to the same tunnel and the mullvad VPN check green lights it - even though I'm listening on 51821

            N 1 Reply Last reply Reply Quote 0
            • N
              netblues @galt007
              last edited by

              @galt007 No
              Your listening port is irrelevant.
              There is an interface and a gateway created for each vpn
              I don't remember if wg automaticaly creates an interface
              If it doesn't you need to assign one

              G 1 Reply Last reply Reply Quote 0
              • G
                galt007 @netblues
                last edited by

                @netblues Thank You. All the testing I'm doing seems to be working. Just odd that the mullvad conf file says the port for the end point is 51820

                thebabufrikT 1 Reply Last reply Reply Quote 0
                • thebabufrikT
                  thebabufrik @galt007
                  last edited by

                  @galt007 You have to create/ add interface with ip address from mullvad (/32), make them as gateway, create gateway groups, routing, nat, and rules for lan. for illustration: https://forum.netgate.com/topic/169466/multi-wan-multi-tunnels-peers-wireguard-vpn-load-balancing-failover

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