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

    Port 3128 has been block in LAN…what happen?

    Scheduled Pinned Locked Moved Firewalling
    20 Posts 5 Posters 7.8k 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.
    • N
      Nachtfalke
      last edited by

      I think this has nothing to do with routing problems.
      I have these log, too just with port 80 (tranparent proxy).

      Jim-p posted in other threads that this a behaviour of SPI (Stateful Packet Inspection) firewalls. The firewall only allows packets/traffic if there is an active state in the firewall table. If there isn't any traffic for a firewall state the the firewall reset this state. if then the website is answering to this "old" connection then the firewall is blocking this because there is no active state in the firewall anymore.

      Perhaps this will help you:
      http://en.wikipedia.org/wiki/Stateful_firewall

      1 Reply Last reply Reply Quote 0
      • S
        syedadi
        last edited by

        @Nachtfalke:

        I think this has nothing to do with routing problems.
        I have these log, too just with port 80 (tranparent proxy).

        Jim-p posted in other threads that this a behaviour of SPI (Stateful Packet Inspection) firewalls. The firewall only allows packets/traffic if there is an active state in the firewall table. If there isn't any traffic for a firewall state the the firewall reset this state. if then the website is answering to this "old" connection then the firewall is blocking this because there is no active state in the firewall anymore.

        Perhaps this will help you:
        http://en.wikipedia.org/wiki/Stateful_firewall

        Nice one….so this happens when user open a browser/80 port traffic, then he/she leave it idle for long time? is that what it mean? Thanks

        1 Reply Last reply Reply Quote 0
        • N
          Nachtfalke
          last edited by

          @syedadi:

          @Nachtfalke:

          I think this has nothing to do with routing problems.
          I have these log, too just with port 80 (tranparent proxy).

          Jim-p posted in other threads that this a behaviour of SPI (Stateful Packet Inspection) firewalls. The firewall only allows packets/traffic if there is an active state in the firewall table. If there isn't any traffic for a firewall state the the firewall reset this state. if then the website is answering to this "old" connection then the firewall is blocking this because there is no active state in the firewall anymore.

          Perhaps this will help you:
          http://en.wikipedia.org/wiki/Stateful_firewall

          Nice one….so this happens when user open a browser/80 port traffic, then he/she leave it idle for long time? is that what it mean? Thanks

          Yes, this is how I understad it from the text and from reading in the forum.
          And port 3128 is squid because squid opend the connection for the user.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            This can also be caused by asymmetric routing as JimP said in the post I linked to.
            If, for instance, you have outgoing http requests going via Squid but incoming replies going directly to the client then pfSense will see those replies unrequested, no state exists for them, and will block them.
            This should never happen if you have Squid configured correctly.

            Steve

            1 Reply Last reply Reply Quote 0
            • N
              Nachtfalke
              last edited by

              @stephenw10:

              This can also be caused by asymmetric routing as JimP said in the post I linked to.
              If, for instance, you have outgoing http requests going via Squid but incoming replies going directly to the client then pfSense will see those replies unrequested, no state exists for them, and will block them.
              This should never happen if you have Squid configured correctly.

              Steve

              Of yourse you are right! But I think this would mean that the client cannot browse the web (correctly).
              But browsing the web works - as far as I understand him.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                I agree. I can't see how this would happen, I can't even think of a way to do it deliberately!  ::)
                However since it seems to be related to Squid it probably shouldn't be ruled out completely.

                Steve

                Edit: Perhaps with multiwan, do you have more than one WAN?

                1 Reply Last reply Reply Quote 0
                • N
                  Nachtfalke
                  last edited by

                  @stephenw10:

                  I agree. I can't see how this would happen, I can't even think of a way to do it deliberately!  ::)
                  However since it seems to be related to Squid it probably shouldn't be ruled out completely.

                  Steve

                  Edit: Perhaps with multiwan, do you have more than one WAN?

                  The firewall rules are showing just the default gateway ( * ) and no gateway group.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    @Nachtfalke:

                    The firewall rules are showing just the default gateway ( * ) and no gateway group.

                    Good point!
                    Well if it's not a multiwan with squid setup, which seems to be a common source of problems then I would suggest:
                    Squid setup incorrectly?
                    Bad web application?
                    Something really obscure!

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • N
                      Nachtfalke
                      last edited by

                      Take a look at this thread and the first few posts of "cmb"

                      http://forum.pfsense.org/index.php/topic,39632.0.html

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Useful post.
                        It doesn't answer the original question though.
                        The firewall is blocking FIN ACK packets, perhaps legitemately. Why?
                        It looks like the clients are sending FIN ACK packets to Squid expecting an ACK packet in return but are being blocked.
                        Since this is only used for gracefully finishing a TCP session the clients are still able to see webpages.
                        Odd that more Squid users aren't complaining.  :-\

                        Steve

                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          Squid may be closing the connections early, and pf may be removing the states due to that. The blocks you are seeing are just traffic that arrives after the state has already been removed. Not really necessary for normal operation, people wouldn't even notice that in most cases.

                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

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