Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Proxy Server Support => Topic started by: sathish on July 27, 2005, 06:35:26 PM

Title: squid - downloading not working
Post by: sathish on July 27, 2005, 06:35:26 PM
Hai Linux team !!!

I am using redhat 9.0 with masquerading and squid proxy server

In squid configuration i have given some extension files not to download like .exe, .bat, mp3 and few more....

i have put the configuration correctly not to download.. itz not working
acl bad url_regex -i "/etc/squid/download.ban"
http_access deny bad

in download.ban file.. i have put like this extensions
\.exe$ \.mp3$ \.mpeg$ \.bat$ and many more extension ...


but if i download a attachment of .mpeg files from yahoo mail itz downloading.. how to avoid.

Please let me know how to go through with this...

Thanks in advance.

Sathish
Title: squid - downloading not working
Post by: gauravbajaj on July 28, 2005, 06:44:12 AM
OK
Firs tell wheather others download exetnsions which u  put in download.ban file, is restriceted or u can download that also(means check whather other extensions i.e other than .mpeg files are restricted or  allowed???

Gaurav
Title: squid - download
Post by: sathish on July 28, 2005, 12:45:28 PM
Hai !!


yes it is restricted not to download those extensions in download.ban file
Title: squid - downloading not working
Post by: Ricky on July 30, 2005, 04:48:43 PM
its downloading b'coz when u download through yahoo it is not really having .exe or whatever in the end or after the "."  , So to to block u can simply add words like  
exe mpeg dat ,
not \.mpeg$

Hope i m clear and try that .. inform us.
Title: squid - ext downloading
Post by: sathish on July 31, 2005, 08:10:48 AM
Hi Ricky,

Thanks for u reply, i have done this earlier like dat mpeg mp2 mp3 in the list, but as earlier told i am working for medical related company, in our clients side we mainly use google as a search engine we used to words like exercsies [which is related to exe]  datum [which is related to dat] to search like this millions of words,  if u put like this in google it will be access denied from squid proxy.

here is the problem i am facing ?? how to rectify and how to bypass this things.

if any suggestions/answers plz let me know.

tx
Sathish....
Title: squid - downloading not working
Post by: Ricky on August 01, 2005, 04:48:55 PM
Umm.. this is really a problem, I am not finding any way around. ..
Well in this case you can do one thing, use delay pool and slow down the download of those files, that way they will be available but not eating the bandwidth that way.
But for delay pools you will have to work on your own as these days I am very bad at delay pools and also is not having time to learn / understand them again. (though its in my list to work on soon).
Title: squid - downloading not working
Post by: gauravbajaj on August 03, 2005, 09:52:30 AM
Hi Dear
In file make entries like this
.exe$
.tar$
.gz$

After that it will block only sites that are ending with above words

This will help u
gaurav
Title: squid - downloading not working
Post by: Ricky on August 06, 2005, 02:34:40 PM
when he downloads file from mail etc as attachement then they don't really end with those extension !! and that is the problem !