Social profiles

How to Limit download size in Squid

How to Limit download size in Squid

Scenario : You have two subnets and, Then you have to limit the Download size,  – 2 MB – 1 MB
Others – 5MB

Add the following line in the squid.conf file

$ su -
# vim /etc/squid/squid.conf

You can use IP based download limit (version squid-3.1 and higher)

acl Subnet1 src
acl Subnet2 src
reply_body_max_size 20480 KB Subnet1
reply_body_max_size 10240 KB Subnet2
reply_body_max_size 5120 KB all

Time Based Download Limit

acl WorkingHours time 08:00-17:00
reply_body_max_size 10240 KB WorkingHours

3 thoughts on “How to Limit download size in Squid”

  1. I simply want to say I am all new to blogs and seriously savored your web page. More than likely I’m planning to bookmark your website . You surely have remarkable articles. Thank you for sharing with us your website page.

Leave a Reply

Your email address will not be published. Required fields are marked *