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

    Does squid throttling work?

    Scheduled Pinned Locked Moved pfSense Packages
    12 Posts 3 Posters 4.9k 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
      crni
      last edited by

      Well I set filters for throttling and I set throtlle speed , but nothing seams to be hapening, it allways uses my full bandwidth.
      My shaping works really fine, but i wanted to throttle certain type of files even further by fixed amount but it doesen't seam to be working, if there is some special kind of procedure of setting this up, could you please share it here :).

      Thanks.

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

        Please take a screen shot of the Squid settings screen and also show your /usr/local/etc/squid.conf file

        1 Reply Last reply Reply Quote 0
        • C
          crni
          last edited by

          I'm sorry but when i try to load file "/usr/local/etc/squid.conf" form edit in web interface i get file not found. :(

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

            Woops, that is suppsoed to be /usr/local/etc/squid/squid.conf

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by

              Incidentally, the delay pools and "throttling" settings for squid are really notoriously hard to test unless you know what you're doing and how squid works.  I recommend taking a look at the squid mailing list for some recommendations on the best ways to ensure that this stuff is working for you because there's a lot of really weird entropy that can come into play.

              1 Reply Last reply Reply Quote 0
              • C
                crni
                last edited by

                Here is my sqid config, in gui I set it to 30 kilovayts per sec, but i dont see it anyware in config file.

                =========================================================================
                http_port 192.168.1.1:3128
                icp_port 0

                pid_filename /var/run/squid.pid
                cache_effective_user proxy
                cache_effective_group proxy
                error_directory /usr/local/etc/squid/errors/English
                visible_hostname localhost
                cache_mgr admin@localhost

                cache_access_log /dev/null
                cache_log /var/squid/log/cache.log
                cache_store_log none
                acl localnet src  192.168.1.0/255.255.255.0

                cache_dir diskd /var/squid/cache 500 16 256
                cache_mem 8 MB
                maximum_object_size 4 KB
                minimum_object_size 0 KB
                cache_replacement_policy heap LFUDA
                memory_replacement_policy heap GDSF
                offline_mode off

                No redirector configured

                acl all src 0.0.0.0/0
                acl localhost src 127.0.0.1
                acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 1025-65535
                acl sslports port 443 563
                acl manager proto cache_object
                acl purge method PURGE
                acl connect method CONNECT
                acl dynamic urlpath_regex cgi-bin ?
                no_cache deny dynamic
                http_access allow manager localhost
                http_access deny manager
                http_access allow purge localhost
                http_access deny purge
                http_access deny !safeports
                http_access deny CONNECT !sslports

                http_access allow localhost

                request_body_max_size 0 KB
                reply_body_max_size 0 allow all
                delay_pools 1
                delay_class 1 2
                delay_parameters 1 -1/10485760 30720/10485760
                delay_initial_bucket_level 100%
                acl throttle_exts url_regex -i "/var/squid/acl/throttle_exts.acl"delay_access 1 allow throttle_exts
                delay_access 1 deny all

                http_access allow localnet
                http_access deny all

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by

                  Strange, I do:

                  delay_parameters 1 -1/10485760 30720/10485760

                  1 Reply Last reply Reply Quote 0
                  • C
                    crni
                    last edited by

                    @submicron:

                    Strange, I do:

                    delay_parameters 1 -1/10485760 30720/10485760

                    Damn pwned. :)

                    But that still doesent change the fact that there is no throttling. :D

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by

                      Have you read any of the threads in the squid mailing list about throttling and delay_pools?  What exactly are you using to determine that they aren't working?

                      1 Reply Last reply Reply Quote 0
                      • C
                        crni
                        last edited by

                        Been busy last couple of days, gonna check that out.

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