reply_body_max_size to limit download size in squid

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat reply_body_max_size to limit download size in squid
# 1  
Old 11-24-2010
reply_body_max_size to limit download size in squid

Hi All

I m using squid 2.7 Stable 9 and Dansguardian 2.10.1.1, i have compiled both squid and dansguardian, i have enabled follow_x_forwarded_for in squid to make clients IPs visible to squid, i have also set x_forwarded_for=on in dansguardian, this is working fine and clients ips are visible to squid.

Now i want to set down-loadable file size limit upto 50 MB in squid by using the acl reply_body_max_size 52428800 allow mynetwork for every user except few users

the above acl is not working properly. mynetwork is our private network which is 192.168.0.0/16.
When i set the acl reply_body_max_size 52428800 allow localhost . it works fine but only for localhost. I want to allow upto 50 MB down-loadable file size to every user in my network except a few users whom will have access upto 500 MB down-loadable file size


Thanks in advance
# 2  
Old 12-02-2010
I have resolved the problem by these acls

acl localnet src 192.168.0.0/16
acl test2 src 192.168.1.20
reply_body_max_size 52428800 deny localnet !test2
http_access allow localnet


ip mention in acl test 2 will have full download access and the localnet will have download access upto 50 MB

Cheers
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using squid to block downloads by size and file type

Can someone tell me how I can use squid to block downloads by certain file types and/or by download size. I want to block people from downloading files of certain type e.g .mp3 and also files of sizes above 30MB. (1 Reply)
Discussion started by: bryanmuts2000
1 Replies

2. UNIX and Linux Applications

SQUID proxy : How do I limit internet connectivity to X hrs/day

Hi Everyone! A friend of mine is looking for a way to limit time his kids spent on the internet. I told him he should try out Squid proxy server. He now tries to find a way to limit total time spend on the internet to "X" hours a day, at any time during the day. I remember there are built-in... (3 Replies)
Discussion started by: togr
3 Replies

3. UNIX for Advanced & Expert Users

Limit Downloading + X_forwarded_for option in squid

Dear All I m using squid 2.7 Stable 9 and Dansguardian 2.10.1.1, i have compiled both squid and dansguardian, i want use follow_x_forwarded_for in squid make clients IPs visible to squid, but this option is not working correctly, i have also set x_forwarded_for=on in dansguardian and my squid... (0 Replies)
Discussion started by: surfer24
0 Replies

4. Shell Programming and Scripting

Limit on a File size.

Hi All, I want to store 32KB of file in Oracle DB into CLOB field. I am not able to insert more than 32KB of file into CLOB. So i want to put a limit on the file size. I am using k shell. My file size will dynamically increase its size, i want to check the file size if it is more than 32KB... (1 Reply)
Discussion started by: rajeshorpu
1 Replies

5. Web Development

Please till me how to stop or to limit some IP which download files for more than 10000

Please till me how to stop or to limit some IP which download .rm and .mp3 files for more than 10000 times ... I have two cases : 1. code 206 up to 20/second 5 GB or more than that ... 2. code 206 up to 20/second but less than 0.5 GB I used Ddos and mod_evasive20.so <IfModule... (0 Replies)
Discussion started by: nonowa
0 Replies

6. UNIX for Advanced & Expert Users

logrotate size limit

Hi i configured log rotate for a specific file. /var/log/sauer i configured create a file in logrotate.d # cat /etc/logrotate.d/sauer #this is a logrotate configuration file for msu_ng logs /var/log/sauer { rotate 5 size=1M daily compress ... (5 Replies)
Discussion started by: modcan
5 Replies

7. Linux

Download Limit with Linux Squid

hi dears 1) i am using squid proxy for internet sharing .. how can i allow users to download files of specific size say only 5 Mb how allow through squid.. 2) i want to trace all the user with system ip and system id (name) what are sites they are visited and how much MB they are user ... (2 Replies)
Discussion started by: surfer24
2 Replies

8. Linux

Limit directory size

Hello I want to limit the size of a directory; so a user cant copy more staff inside it then 5 Giga for example.. eg. /nfs/temp/jhon size can not increase more that 5Gb I havnt found anything on the net. Is there a way to do it? (2 Replies)
Discussion started by: jredx
2 Replies

9. AIX

file size limit

Can anybody help me? How to increase file size limit in aix 5.2? I have already specified in /etc/security/limits file : default: fsize = -1 core = 2097151 cpu = -1 data = -1 rss = -1 stack = -1 nofiles = 2000 (2 Replies)
Discussion started by: vjm
2 Replies

10. UNIX for Dummies Questions & Answers

Limit size of the file

How do I limit size of a file to 1 MB or something like that under Linux? (4 Replies)
Discussion started by: _hp_
4 Replies
Login or Register to Ask a Question