Artikel Tagged ‘Squid’

How to run Squid proxy with ClamAV virus scanner

2. Juli 2011 Keine Kommentare

First you have to compile and install the latest version of Squid, ClaimAV and HAVP

./configure –prefix=/usr/local/squid_3/
make install

vi /usr/local/squid.conf

cache_peer parent 8080 0 no-query no-digest no-netdb-exchange default
cache_peer_access allow all
#Only HTTP traffic should go through HAVP
acl Scan_HTTP proto HTTP
never_direct allow Scan_HTTP

acl none_HAVP  proto HTTPS FTP
always_direct allow none_HAVP

./configure –prefix=/usr/local/clamav/
make install

./configure –prefix=/usr/local/HAVP/
make install

Now it should work!
/usr/local/squid_3/squid start

Categories: Linux, Squid Tags: , , , , ,

How to limit squid bandwidth for YouTube & Co

15. Juni 2009 Keine Kommentare

vi /etc/squid/squid.conf

#Stream & Download Limit

#URL based
acl stream_1 url_regex -i .googlevideo .myvideo .youtube
acl stream_2 urlpath_regex -i .flv$ .swf$ .mp3$ .mpg$ .wmv$ .rm$ .asf$

#Mime-Type based
acl stream_3 req_mime_type -i video/x-flv$ video/flv$ video/x-swf$ video/x-swf$ application/x-fcs$

#Header based
acl stream_4 req_header -i video/x-flv$ application/x-fcs$ video/flv$ video/x-swf$ video/x-swf$

delay_pools 1
delay_class 1 1

#Up-Down limit
delay_parameters 1 99999/99999

delay_access 1 allow stream_1
delay_access 1 allow stream_2
delay_access 1 allow stream_3
delay_access 1 allow stream_4
delay_access 1 deny all

Categories: Linux, Squid Tags: , ,