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

    DualWAN set-up Still continues to not work… [ my x-mas wish]

    Scheduled Pinned Locked Moved Routing and Multi WAN
    20 Posts 11 Posters 9.3k 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.
    • F
      fvter
      last edited by

      Sorry getting back to this so late but I've been very busy and haven't had time to get back to this…

      now I admit that I may have been a bit harsh, but I've been faced with this situation now since I switched to pfSense! one of the reasons I switched was because @SUllrich on twitter specifically said that HW support on pfSense was more generic that some of the other solutions out there. But I find this is not the case. Let me go back to some of what's been said:

      • The first time I installed and report (these similar issues), the same group said «its a hardware problem». So I completely changed the hardware and still having problems. And now once again I am being told its a hardware problem. So if pfSense isn't hardware agnostic then maybe it should say so and restrict the hardware… I turned off the checksum in the advanced options and that hasn't changed anything. This weekend I even swapped in a DGe530T to stop using the realtek and still having the same problems. So again my question is how to i get this to work properly, both my DSL lines have matching speeds so its less than likely a speed/response problem…

      • The only special set-up that i use for AON is because that is what was written in alot of the howtos and even in this forum to get better performance and compatibility with xbox-live and other gaming instances. I don't see how that would really affect the problem since I am only doing it for specific IPs and ports.

      • As for the general load-balancing issues, it has been mentioned to me at least a couple of times on this same forum, that certain things don't perform the way they should and more specifically when talking about link-failures. It just happens that right now I am facing intermittent link failures on one of my lines. Sure enough the dual-wan system doesn't work, it doesn't do as expected when the link goes down all traffic stops instead of rerouting to the other line! I don't understand why this should be the case.

      It's actually a shame, because this is whole situation has become a saw spot! There were alot of things appealing to me to switch to pfSense including some good feedback, the open nature and support for both dual-wan and ipv6.

      But overall, I find that the performance on the dual-wan just isn't there. I spent sometime looking through past posts on this forum and I get the impression that most users are using dual-wan in a more simple set-up as a network separation and backup solution and less the situation I am looking for LAN going out to outgoing WANs. All I asking the set-up to do is (and really not much at that):

      • balance all traffic outbound except for specific protocols going out on one link only
      • failover to a single link if one goes down

      I was hoping to get a little more insight on to how to trouble shoot this than just the typical - its your hardware! Honestly I have to deal with these types of issues everyday at work and don't particularly want to have to deal with them when at home! I would like to just have a working platform!

      1 Reply Last reply Reply Quote 0
      • D
        databeestje
        last edited by

        FYI: you can not access embedded youtube properly or n% of the time when using a default round robin method of load balancing.

        I have a alias, something along these lines.
        ext_youtube  64.15.112.0/20, 208.65.152.0/20, 208.117.224.0/20, 208.65.152.0/20, 64.233.167.99/20, 64.233.187.99/20, 72.14.207.99/20, 74.125.8.167/20

        Basically a summary for Youtube netblocks. I do my load balancing by having 2 failover pools and sending a number of things out one link, and other sites out the other.
        I do have a balance all rule, but I rarely use that for rules. There are just too many frigging sites that always expect you to come from the same site.

        1 Reply Last reply Reply Quote 0
        • F
          fvter
          last edited by

          So granted that there are restrictions on how the target site may handle incoming traffic, i've never actually denied that. but this is essentially true of almost all environments.

          My issue is more on how the load-balancer engine handles this, why do I have to specifically create rules to manage the load-balancing/exclude badly responding sites: doesn't that break the whole principal of having a load-balancing engine?

          I don't understand why the engine can't just have enough intelligence to say:

          • internal_ip starting a session to subnet x.y.z.u
          • route traffic internal_ip to subnet x.y.z.u on outgoing int-1
          • keep routing that traffic for n time (secs, minutes)

          I've set up load-balancing on cisco routers and this type of performance issues didn't play a role!

          I am also still perplexed on why would the load-balancing/fail-over completely fail when one link goes down it doesn't make sense!

          just my 0.02€ worth

          1 Reply Last reply Reply Quote 0
          • A
            althornin
            last edited by

            @fvter:

            I am also still perplexed on why would the load-balancing/fail-over completely fail when one link goes down it doesn't make sense!

            just my 0.02€ worth

            This means your config is wrong.
            I use dual wan with failover, and it works fine.  Including when a link fails.

            1 Reply Last reply Reply Quote 0
            • A
              althornin
              last edited by

              I looked at your config, and here is where you have fubared it:

              <lbpool><type>gateway</type>
              <behaviour>balance</behaviour>
              <monitorip>208.67.220.220</monitorip>
              <name>WANLoadB</name>
              <desc>Load Balancing on the WAN Links</desc>
              <port><servers>wan|RRR.TTT.UUU.254</servers>
              <servers>wan|208.67.222.222</servers>
              <servers>opt1|XXX.YYY.ZZZ.1</servers>
              <servers>opt1|208.67.220.220</servers></port></lbpool>

              Why are your interfaces in there twice?

              The monitor IPs you have in there are wrong - because any interface can ping either 208.67.222.222 or 208.67.220.220, pfsense can't tell if a link is down.
              remove those extra items from the pool list for all of your lbpools - you have them in all of the pools.

              1 Reply Last reply Reply Quote 0
              • F
                FieroGT
                last edited by

                ok, here is all u have to do, this should fix 90% of the probs you are having… very simple. i experienced alot of the probs u have also. and everything works great now!
                goto SYSTEM -> ADVANCED , then ENABLE  Use sticky connections.

                that should help alot with the timeouts, and vids not loading/playing correctly…
                give it a shot, and see how that works 4 u...

                btw, i'm running 3 modems, 2 are load balanced....

                -r0b

                1 Reply Last reply Reply Quote 0
                • Cry HavokC
                  Cry Havok
                  last edited by

                  @fvter:

                  So granted that there are restrictions on how the target site may handle incoming traffic, i've never actually denied that. but this is essentially true of almost all environments.

                  My issue is more on how the load-balancer engine handles this, why do I have to specifically create rules to manage the load-balancing/exclude badly responding sites: doesn't that break the whole principal of having a load-balancing engine?

                  I don't understand why the engine can't just have enough intelligence to say:

                  • internal_ip starting a session to subnet x.y.z.u
                  • route traffic internal_ip to subnet x.y.z.u on outgoing int-1
                  • keep routing that traffic for n time (secs, minutes)

                  And how is it going to know what that subnet is - you have nothing to tell you whether that's a /8, /15, /30 etc without performing lookups (probably WhoIs), which take non trivial amounts of time and may not even provide you accurate information.  I know a number of very large load balancing setups that do nothing more advanced than push a single internal unit (whether that's an IP, subnet or whatever) through a single external IP, attempting to balance the load that way, not dynamically.

                  1 Reply Last reply Reply Quote 0
                  • F
                    fvter
                    last edited by

                    @althornin:

                    I looked at your config, and here is where you have fubared it:

                    <lbpool><type>gateway</type>
                    <behaviour>balance</behaviour>
                    <monitorip>208.67.220.220</monitorip>
                    <name>WANLoadB</name>
                    <desc>Load Balancing on the WAN Links</desc>
                    <port><servers>wan|RRR.TTT.UUU.254</servers>
                    <servers>wan|208.67.222.222</servers>
                    <servers>opt1|XXX.YYY.ZZZ.1</servers>
                    <servers>opt1|208.67.220.220</servers></port></lbpool>

                    Why are your interfaces in there twice?

                    The monitor IPs you have in there are wrong - because any interface can ping either 208.67.222.222 or 208.67.220.220, pfsense can't tell if a link is down.
                    remove those extra items from the pool list for all of your lbpools - you have them in all of the pools.

                    I thought about that as well! the original intention was to have to addresses to ping in case of failure but even when I removed the openDNS servers from the config, it still doesn't work.
                    The other ip addresses are the nexthop (ie. gateway) of each DSL connection.

                    1 Reply Last reply Reply Quote 0
                    • A
                      althornin
                      last edited by

                      Your interfaces should not be in there twice.

                      1 Reply Last reply Reply Quote 0
                      • M
                        marrandy
                        last edited by

                        @cmb:

                        That's not what I'm saying. When you browse a site, you have multiple HTTP connections out, some of each of them are going to get routed out different public IPs. It's round robin on a per-connection basis. That breaks some websites.

                        You don't have round robin by source IP address ?

                        What I mean by that is that all traffic from e.g.  source IP 192.168.1.100  will go via one route, and 192.168.1.101 will then be routed to a different public IP and so on.

                        How does that work with FTP or VOIP then, as they both use control and data multiple paths.  Wouldn't they also get routed to different Public IP's which would break them.

                        I don't get that.  Round Robin by source IP would fix that issue.

                        Or am I missing something ?

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

                          You just described why FTP and voip are such problematic protocols….
                          It is usually solved by forcing these protocols
                          to only one WAN and not balance them.

                          The other possibility is to use sticky connections.

                          Use sticky connections
                          Successive connections will be redirected to the servers in a round-robin manner with connections from the same source being sent to the same web server. This "sticky connection" will exist as long as there are states that refer to this connection. Once the states expire, so will the sticky connection. Further connections from that host will be redirected to the next web server in the round robin.

                          however i dont know what the status of that feature is.
                          The last i know is, that it doesn't work like it should.

                          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
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.