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

    How to Multi-WAN setup as Loadbalancing and route all traffic over VPN-Provider like mullvad?

    Routing and Multi WAN
    2
    13
    1.2k
    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.
    • I
      ihrewerbung @DaddyGo
      last edited by ihrewerbung

      @DaddyGo
      Hi
      Thank you very much! I did as you told me and did manage that now everything is running as desired.

      But:
      I already had set for all my configured VPN client(s) as Gateway my gateway group (multi-WAN load balanced) before.

      • So then i first updated the pfsense ( i am at 2.50 dev) to latest as for yesterday. But no changes.

      • After that I saved all the vpn-client settings again chosing again my specific Gateway-group (load balanced). Saved all and applied the changes.

      After that i hade the the bandwidth of both ISP and still had the outgoing LAN-Traffic loadbalaned between the vpn-servers.

      What i did not understand was what you have suggested with the printscreen of the firewall rules:

      I guess that you suggested with that printscreen that i should add a rule for each VPN-Interface to route the traffic explicit through my loadbalanced WAN-Gateway Group or what was your suggestion?

      Best Regards
      Santo

      DaddyGoD 1 Reply Last reply Reply Quote 0
      • DaddyGoD
        DaddyGo @ihrewerbung
        last edited by DaddyGo

        @ihrewerbung said in How to Multi-WAN setup as Loadbalancing and route all traffic over VPN-Provider like mullvad?:

        i am at 2.50 dev

        Hi,

        for now, I don't recommend 2.5 -dev in the production environment... https://redmine.pfsense.org/projects/pfsense/roadmap

        stay with 2.4.5-p1 if you want more serious stability...

        @ihrewerbung "What i did not understand was what you have suggested with the printscreen of the firewall rules:

        I guess that you suggested with that printscreen that i should add a rule for each VPN-Interface to route the traffic explicit through my loadbalanced WAN-Gateway Group or what was your suggestion?"

        YES ๐Ÿ˜‰
        I use multi-port NICs (I350-T4 and I350-F4) so I can have VPNs on a separate interface and handle them separately according to firewall rules

        ++++edit:
        this is good for the deep network segmentation

        Cats bury it so they can't see it!
        (You know what I mean if you have a cat)

        I 2 Replies Last reply Reply Quote 1
        • I
          ihrewerbung @DaddyGo
          last edited by

          @DaddyGo

          Hi

          Thank you for your fast reply. Now I perfectly understand this with your suggestion (I use multi-port NICs (I350-T4 and I350-F4) so I can have VPNs on a separate interface and handle them separately according to firewall rules). I must admit that I never thought about that but now i see some potential for optimazing!

          Of course you are right with 2.5 -dev and 2.4.5-p1 - at the time i switched i had not much of a choice as the issue with the slow Web-Gui forced me to do something. But you are right, i should have switched back by now - but as this is not done as fast as an update i hesitated :-) but it is no excuse.

          Once again thank you! You helped me a lot.

          Best regards
          santo

          1 Reply Last reply Reply Quote 0
          • I
            ihrewerbung @DaddyGo
            last edited by ihrewerbung

            @DaddyGo Hi,

            Update:

            I will re-try it on version 2.4.5-p1 as on 2.5 -dev its no working consistently. I would even say its "randomly" if it loadbalances my two WAN-Gateway or not.

            Allways after I change settings in Gatewaygroup (even do i dont make any changes) save it and apply it, it will balance and sum up the bandwidth and balance it through my vpn-clients. Same if I save again the OPENVPN-Client-Settings (without changing them and letting my Grouped-WAN in the Interface-settings.) it works for a short while as desired and then falls back to my "primary" WAN-interface.

            I could not figure out why this happens. Might eventually be a bug in version 2.50 -dev or just something I messed up in my settings. For now I dont find the problem on my side.

            best regards
            santo

            DaddyGoD 1 Reply Last reply Reply Quote 0
            • DaddyGoD
              DaddyGo @ihrewerbung
              last edited by

              @ihrewerbung said in How to Multi-WAN setup as Loadbalancing and route all traffic over VPN-Provider like mullvad?:

              on 2.5 -dev its no working consistently.

              2.5 is a development snapshot. YES ๐Ÿคž
              there is still work to be done on it, as the "road map" shows, so I recommended 2.4.5-p1,

              if you still insists to 2.5, many have experience with this version here in the forum and can help

              but I do not recommend it for production environments yet, although the date is approaching.....๐Ÿ˜‰

              Cats bury it so they can't see it!
              (You know what I mean if you have a cat)

              I 2 Replies Last reply Reply Quote 0
              • I
                ihrewerbung @DaddyGo
                last edited by ihrewerbung

                @DaddyGo

                No, no, i dont insist on the development version.

                I am now on a fresh 2.4.5-p1 and testet all the settings again. no change. That means loadbalanced WAN and balanced VPN does not work.

                My settings:

                Here some traffic is routet through WAN (ISP DSL-Cable and some over 4G-LTE):
                vpn_client_01.PNG
                ...
                Here: all traffic goes over WAN (ISP DSL-Cable), nothing over 4GLTE Modem. its not balanced or sum up of both).
                vpn_client_02.PNG
                ...
                LAN-Firewall rules:
                Firewall_LAN_01.PNG

                ..
                Example of one VPN-Client-Interfaces. It does not change anything if protocol is UDP or any and IPV4-6.
                Firewall_VPNx_interface_01.PNG

                ...
                Here you can see that i route my LTE/4G-Modem with VLAN-Tag on igb0
                Interfaces_01.PNG
                Interfaces_02.PNG

                ...
                VPN-Interfaces:
                Interfaces_03.PNG

                ...
                Gateway generell:
                routing_Gateways_01.PNG
                routing_Gateways_011.PNG

                ...
                Gateway-Group for DSL-Modem and LTE/4G-Modem (Trigger is "meber down"):
                routing_Gateways_02.PNG

                ...
                Gateway-Group for Balancing VPN-Interfaces:(Trigger is "meber down"):
                routing_Gateways_03.PNG
                ...
                any suggestions? do see where i messed up, if ever? I apperciate any idea.

                Best regards
                santo

                1 Reply Last reply Reply Quote 0
                • I
                  ihrewerbung @DaddyGo
                  last edited by

                  @DaddyGo
                  Hi

                  Any ideas/suggestions?

                  Best Regards
                  santo

                  1 Reply Last reply Reply Quote 0
                  • I
                    ihrewerbung
                    last edited by

                    hi all

                    the official description says clearly, there is no loadbalancing in Gateway Groups on openvpn clients:

                    OpenVPN assigned to a Gateway Group
                    A Gateway Group (Gateway Groups) may be selected as the Interface for an OpenVPN instance. Such a gateway group must be configured for failover only, not load balancing. Failover groups only have one gateway per tier. When creating the gateway group, a VIP may also be chosen for use with a specific gateway. When selected for a VPN server, the interface or VIP of the Tier 1 gateway in the group will be used first. If that gateway goes down, it will move to tier 2, and so on. If the tier 1 gateway comes back up, the VPN will resume operating on that WAN immediately. When used for a VPN server, this means that the server is only active on one WAN at a time. Some of the other methods described below may be better for most common circumstances, such as needing both WANs usable concurrently with the VPN. When used with OpenVPN clients, the outbound interface will be switched according to the gateway group tiers.

                    best regards
                    santo

                    DaddyGoD 1 Reply Last reply Reply Quote 0
                    • DaddyGoD
                      DaddyGo @ihrewerbung
                      last edited by

                      @ihrewerbung

                      Can you make a purposeful plan, your scribbled PRTSC is very opaque? ๐Ÿ˜‰

                      I look forward to........ and may be able to help, I donโ€™t understand the complicated VPN either

                      what is the goal? exactly?

                      Cats bury it so they can't see it!
                      (You know what I mean if you have a cat)

                      I 1 Reply Last reply Reply Quote 0
                      • I
                        ihrewerbung @DaddyGo
                        last edited by ihrewerbung

                        @DaddyGo said in How to Multi-WAN setup as Loadbalancing and route all traffic over VPN-Provider like mullvad?:

                        Can you make a purposeful plan, your scribbled PRTSC is very opaque?

                        Hi

                        Its a pitty my printscreens did not help but confused. You state my setting as too complex / complicated what might be true.

                        However now for me everything is fine. I know now what for a Gatewaygroup in Interface at VPN-Client is ment for. So far all good.

                        My goal was to have VPN-balanced (to more then one server) which functions great and get the bandwidth of two ISP (multi wan balanced) which also works fine with a workaround i made by adding to each VPN Client another "(ISP)-Interface".

                        Maybe a Floating rule would be another workaround?

                        Best regards
                        Santo

                        DaddyGoD 1 Reply Last reply Reply Quote 0
                        • DaddyGoD
                          DaddyGo @ihrewerbung
                          last edited by

                          @ihrewerbung said in How to Multi-WAN setup as Loadbalancing and route all traffic over VPN-Provider like mullvad?:

                          Maybe a Floating rule would be another workaround?

                          worth a try ๐Ÿ˜‰

                          Cats bury it so they can't see it!
                          (You know what I mean if you have a cat)

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