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

Multi WAN with wireguard confused

WireGuard
3
11
1.8k
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.
  • 4
    4o4rh
    last edited by 4o4rh Feb 26, 2023, 10:38 PM Feb 26, 2023, 10:37 PM

    I have two access providers;

    1. Local Provider 120/60Mbit/s - Fibre RTT 4.8ms RTTsd 0.6ms
    • speedtest results = 121/61Mbit/s
    • speedtest via ExpressVPN = 101/51Mbit/s RTT 14.9ms RTTsd 2.5ms
    • ProtonVPN Wireguard = 115/59Mbit/s RTT 4.6ms RTTsd 0.7ms
    1. Vodafone 250/50Mbit/s - Cable RTT 13.1ms RTTsd 1.6ms
    • speedtest results = 262/53Mbit/s
    • speedtest via ExpressVPN = 232/43Mbit/s RTT 25.8ms RTTsd 1.9ms
    • ProtonVPN Wireguard = 115/59Mbit/s

    I don't see how to tell wireguard which access to use.
    I guess it is the default gateway no?
    If that is correct, then in scenario 1) there would appear
    to be a slight performance benefit from wireguard right?

    I have two WAN gateway groups and two VPN gateway groups configured as Tier 1 + 2 based on Member Down

    Primary: WAN1 + WAN2 (VPN1 + VPN2)
    Secondary: WAN2 + WAN1 (VPN2 + VPN1)

    I am trying to figure out which is the most optimal configuration, when I set the gateways as follows;

    • PCs, Internal WiFi and Work PCs -> Primary
    • Multi-Media i.e. TVs, etc -> Secondary
    1 Reply Last reply Reply Quote 0
    • D
      Dobby_
      last edited by Feb 26, 2023, 11:02 PM

      • Built a Gateway group with Tier1 and Tier2.
      • Set the Ratio 1 for 120/60 and Ratio 2 for 250/50
      • Setup load balancing with failover rules
      • Choose load balancing method;
      • Session based load balancing
      • Service based load balancing
      • Policy based load balancing

      WAN - is WAN
      DMZ - for all the multimedia things such as smart TV,
      gaming console, internet radio, web server, mail server,...
      LAN - VLAN for servers VLAN for PCs
      WiFi - WiFi network, can be a LAN port from pfSense or
      a WiFi card internal depending on what you run
      WiFi VLAN for privat (family) - radius certificates
      WiFi VLAN for friends - radius certificates or vouchers
      WiFi VLAN for other guests - vouchers over sms

      Inside of the VLANs you may tray out traffic shaping
      and over the VLANs together you may work with QoS
      rules. But all depends on the other network equipment
      in the LAN.

      #~. @Dobby

      Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
      PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
      PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

      4 2 Replies Last reply Feb 27, 2023, 8:30 AM Reply Quote 0
      • 4
        4o4rh @Dobby_
        last edited by 4o4rh Feb 27, 2023, 8:36 AM Feb 27, 2023, 8:30 AM

        @dobby_ I had load balancing previously, but was having issues with different services. from memory i.e. was related to split paths causing issues with apps. I think from memory, it was because openvpn didn't like the balancing and i put everything over the vpn with only some exceptions

        That is why I adopted a dual failover type setup and just directed traffic to either primary or secondary based on importance.

        I switched the default route to the secondary (vodafone) and protonwireguard still gives me only 115Mbit/s, so it seems the limitation is for proton.

        D 1 Reply Last reply Feb 27, 2023, 9:15 AM Reply Quote 0
        • D
          Dobby_ @4o4rh
          last edited by Feb 27, 2023, 9:15 AM

          @gwaitsi

          It can be that proton is doing traffic shaping on their side for all customers.

          having issues with different services

          service based load balancing could be then do the trick
          for you.

          #~. @Dobby

          Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
          PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
          PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

          4 1 Reply Last reply Feb 28, 2023, 9:11 AM Reply Quote 0
          • 4
            4o4rh @Dobby_
            last edited by Feb 28, 2023, 9:11 AM

            protonvpn say they don't have any bandwidth limitation, how can i be sure which wan access the tunnel is going over?

            1 Reply Last reply Reply Quote 0
            • 4
              4o4rh
              last edited by Mar 1, 2023, 8:15 PM

              @dobby_ tried putting load balancing back. Before doing it;

              • i confirmed in the docs, that the wireguard tunnel goes through the default gateway
              • i speed tested the local provider net at 115Mbit/s
              • i speed tested the vodafone at 232Mbit/s
              • i then set the priority to 1 on the 100Mbit local provider and 2 on the 250Mbit vodafone connection.
              • i set the default gateway as the load balance gateway group (with both wan having tier 1 )

              with the load balancing, i get a significant drop in the speed.
              65Mbit using speedtest.net
              47Mbit using speedtest.vodafone

              1 Reply Last reply Reply Quote 0
              • 4
                4o4rh @Dobby_
                last edited by Mar 2, 2023, 8:33 AM

                @dobby_ did as you suggest.

                • setup load balancing on the wans again with the ratio you suggested.
                • setup wireguard as primary vpn with failure over to openvpn.

                So far, so good.

                Next challenge.
                How to setup multiple wireguard tunnels to different access points with protonvpn.
                I want to phase out expressvpn, and also run an independant vpn for my TVs to get the country programming of choice, as opposed to the general access to have the best performance.

                B 1 Reply Last reply Mar 2, 2023, 8:40 AM Reply Quote 0
                • B
                  Bob.Dig LAYER 8 @4o4rh
                  last edited by Bob.Dig Mar 2, 2023, 8:41 AM Mar 2, 2023, 8:40 AM

                  @gwaitsi said in Multi WAN with wireguard confused:

                  How to setup multiple wireguard tunnels with protonvpn.

                  Isn't proton using the same ip configuration for every tunnel? With that you can not have more than one tunnel reliably with pfSense, at least to my knowledge.

                  4 1 Reply Last reply Mar 2, 2023, 8:57 AM Reply Quote 0
                  • 4
                    4o4rh @Bob.Dig
                    last edited by Mar 2, 2023, 8:57 AM

                    @bob-dig i think so.
                    The end point address is different, but the interface is 10.2.0.2 i believe.
                    so i probably have to migrate the expressvpn to nordvpn if i want to use wireguard and phase out openvpn

                    B 1 Reply Last reply Mar 2, 2023, 9:08 AM Reply Quote 0
                    • B
                      Bob.Dig LAYER 8 @4o4rh
                      last edited by Mar 2, 2023, 9:08 AM

                      @gwaitsi They might have the same problem and also I am not sure if they made Wireguard outside of their app accessible.

                      4 1 Reply Last reply Mar 2, 2023, 11:43 AM Reply Quote 1
                      • 4
                        4o4rh @Bob.Dig
                        last edited by Mar 2, 2023, 11:43 AM

                        @bob-dig I will use wireguard as the primary with failover to openvpn and setup a setup openvpn to deal with the country exception. shame, seems wireguard does perform better on the same h/w are access

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