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

    How to limit Upstream with squid

    Scheduled Pinned Locked Moved pfSense Packages
    8 Posts 3 Posters 4.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.
    • Y
      yellowhat89
      last edited by

      have been running pfsense for a year, and suddenly have something very strange.
      If I uploaded a file, my download speed drstically down, and even "dead" no one in my network can't browsing if there are one active upload.

      What happen to my pfSense? is anyone know how to limit the upstream bandwidth with squid?

      I'm very appreciate u'r help.

      Regards

      Stay hungry, Stay Foolish

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

        Is this an ADSL line?

        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
        • Y
          yellowhat89
          last edited by

          @GruensFroeschli:

          Is this an ADSL line?

          yes it is…
          anybody please remove this to package forum. because it is caused by squid configuration...

          especially by zph and tos

          Stay hungry, Stay Foolish

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

            So you could pinpoint the problem?

            Because one of the problems with ADSL is, that if you saturate one of the streams (be it upstream or downstream) you basically make the other stream unusable.
            Today some ISPs connect the enduser physically with the maximum their modem can do and shape the speed on their side, thus circumventing the problem of stream saturation.

            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
            • Y
              yellowhat89
              last edited by

              you're right about it, but should it's not making my download become 0.
              because my ADSL download speed is 1Mb and upload is only 0.1Mb.

              Before it happened I set my pfsense with cacheboy, the feature of this custom "package" is very good about caching include video stream, but make me experience a slow connection when I upload something. but if I'm not uploading, the performance is awsome. very love with this.

              After looking into the squid configuration there is some line like this:

              …
              acl images urlpath_regex .((jp(e?g|e|2)|gif|png|tiff?|bmp|ico)(?.*)?)$
              ...
              tcp_outgoing_tos 0x00 video
              tcp_outgoing_tos 0x10 html
              tcp_outgoing_tos 0x08 images
              tcp_outgoing_tos 0x02 all

              zph_mode tos
              zph_local 0x04

              on that I give example of images, so when I upload jpg file to the net, my download speed absolutely 0. solved whit comment at every line.
              so any one can give me a good config on that script. I've try the squid, but no clear explanation about the value 0x00,0x10,etc

              thank you
              regards

              Stay hungry, Stay Foolish

              1 Reply Last reply Reply Quote 0
              • E
                ermax
                last edited by

                If you consume all of your upstream then you have no room left to request incoming data. Servers don't just randomly send data to you. You have to ask them for it and if your out of out bandwidth then how are you going to ask for it? With TCP each and every packet has to be acknowledged before the next packet comes. Having 1Mb down and only 100Kb up is your problem. You have very little outgoing bandwidth and it is very easy to eat it all up. You can cap file uploads with QoS to something bellow your providers cap giving you a little reserve for outgoing requests.

                1 Reply Last reply Reply Quote 0
                • Y
                  yellowhat89
                  last edited by

                  yeah, you're right. It's my ISP damn fault.
                  so, it's not related to cacheboy. so please the moderator or anyone who could change the topic, to delete [squid, cacheboy] from the title and change all to how to limit upstream in squid.

                  Thank you.

                  Stay hungry, Stay Foolish

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

                    You created the topic, you can change the title ;)
                    I just gave it this name when i moved it here :)

                    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.