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

    HTTP randomly blocked?

    Scheduled Pinned Locked Moved Firewalling
    11 Posts 3 Posters 5.2k 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.
    • C Offline
      cmb
      last edited by

      Might be states getting closed too quickly. Under Advanced, change Firewall Optimization to conservative and see if that changes anything.

      1 Reply Last reply Reply Quote 0
      • I Offline
        Itwerx
        last edited by

        @cmb:

        Might be states getting closed too quickly. Under Advanced, change Firewall Optimization to conservative and see if that changes anything.

        That seems to have made it worse.  Trying it at "Aggressive" now to see what happens.

        1 Reply Last reply Reply Quote 0
        • C Offline
          cmb
          last edited by

          Conservative definitely wouldn't make it worse if it were states timing out too quickly. Aggressive would make it worse if that were the case.

          I think it's time to evaluate some packet captures and see what's really happening on the wire.

          1 Reply Last reply Reply Quote 0
          • I Offline
            Itwerx
            last edited by

            @cmb:

            Conservative definitely wouldn't make it worse if it were states timing out too quickly. Aggressive would make it worse if that were the case.

            I think it's time to evaluate some packet captures and see what's really happening on the wire.

            Aggressive made no difference.  Haven't had a chance to do packet captures yet but did have somebody unplug one line for awhile.  As soon as they did that it started working fine.  They're going to switch which line is plugged in tomorrow.  If it still works well then we'll know it's a load-balancing issue.  (Speaking of which, forgot to mention we have "sticky" connections enabled).

            1 Reply Last reply Reply Quote 0
            • S Offline
              sullrich
              last edited by

              Almost sounds like you are running out of states.  Try increasing the defeault 10K state limit to something higher depending on ram.  Roughly 2K per state.

              1 Reply Last reply Reply Quote 0
              • I Offline
                Itwerx
                last edited by

                @sullrich:

                Almost sounds like you are running out of states.  Try increasing the defeault 10K state limit to something higher depending on ram.  Roughly 2K per state.

                I did consider that, (forgot to mention, sorry!).  They've never gone over a couple hundred states.  It's a very small office.
                  However, we did go ahead with the connection switch mentioned above and both lines work fine independently, it's only when in LB/failover mode that we're getting the issue.  (Is there a way to move an entire thread to a different forum?  :)
                  Checked the build dates between this one and the one that works and discovered they are slightly different, even though both are "RC2", so we're next going to try the new RC3 and also duplicating the CD from the working unit and see if either of those works better.
                  Stay tuned…

                1 Reply Last reply Reply Quote 0
                • I Offline
                  Itwerx
                  last edited by

                  So we swapped CDs for an RC1 that's been working fine for months and it's still happening!
                    I would say it's a hardware problem were it not for the fact that each connection on its own works flawlessly.  It's only when in LB mode that the issue occurs.
                    Interestingly, I did compare the config.xml files and noticed that there was a monitorip set on the load balance entry for the one that's having problems, with that setting being blank, (i.e. "<monitorip>"), on the good one.  Would this make any difference?  (Can't test it until later). </monitorip>

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sullrich
                    last edited by

                    Yes it could.  You need a working monitorip.

                    1 Reply Last reply Reply Quote 0
                    • I Offline
                      Itwerx
                      last edited by

                      @sullrich:

                      Yes it could.  You need a working monitorip.

                      Even outside of the per-connection monitor IP? 
                      I don't know how it ended up this way, (and we'll manually editing the config.xml tonight to test), but here's the settings from the good(!) unit's load-balancing entry:

                      <lbpool><type>gateway</type>
                      <behaviour>balance</behaviour>
                      <monitorip><name>W1LBW2</name>
                      <desc>Normal round robin</desc>
                      <port><servers>wan|4.2.2.5</servers>
                      <servers>opt1|4.2.2.6</servers></port></monitorip></lbpool>

                      And here's the bad one:

                      <lbpool><type>gateway</type>
                      <behaviour>balance</behaviour>
                      <monitorip>4.2.2.5</monitorip>
                      <name>W1LBW2</name>
                      <desc>Normal round robin</desc>
                      <port><servers>wan|4.2.2.5</servers>
                      <servers>opt1|4.2.2.6</servers></port></lbpool>

                      Will post back with tweak results tomorrow…

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        Itwerx
                        last edited by

                        Removing that extraneous monitor IP in the LB config seems to have fixed it.  Also bumped states up to 20k as my feeble attempt at a stress test managed to occupy just over 1000 states (approx. 20 simultaneous browser page loads).  Will post back again if any more weirdness happens…

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