Search squid archive

Re: delay_access and rep_mime_type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




The best place for such requests is the wiki, and discussing it on
squid-dev to draw attention.

   http://wiki.squid-cache.org/

Regards
Henrik


Dear Henrik,

Where on the wiki? Can I not add that request as an anonymous user, ie do I have to get an account to edit whatever page is required? Couldn't find anything yet.

BTW I've been running 2-HEAD in production for 3 days now and it seems quite stable and is indeed doing what I require with this set of acls/rules:

acl important_groups external nt_group "/etc/squid/acls/important"
acl fastweb proxy_auth FOODOM\blah FOODOM\grah etc
acl IEOK2 dstdomain .important.site.uk

acl streaming_media rep_mime_type ^application/vnd.ms.wms-hdr.asfv1
acl streaming_media rep_mime_type ^application/x-fcs
acl streaming_media rep_mime_type ^application/x-mms-framed
acl streaming_media rep_mime_type ^video/x-ms-asf
acl streaming_media rep_mime_type ^audio/mpeg
acl streaming_media rep_mime_type ^audio/x-scpls
acl streaming_media rep_mime_type ^video/x-flv
acl streaming_media rep_mime_type ^video/mpeg4
acl streaming_media2 req_mime_type ^application/x-fcs

acl slowurls dstdomain skysports.com
acl slowregex url_regex -i worldcup
acl slowregex url_regex -i world_cup
acl slowregex url_regex -i world-cup
acl slowregex url_regex -i football

# Posh people get 9Mbits all the time
delay_pools 3
delay_class 1 1
delay_access 1 allow fastweb
delay_access 1 allow important_groups
delay_access 1 deny all
delay_parameters 1 900000/900000

# Make it moderately painful for some defined sites/mime-types apart from company whitelisted
delay_class 2 3
delay_access 2 deny IEOK2
delay_access 2 allow slowweb
delay_access 2 allow slowurls
delay_access 2 allow slowregex
delay_access 2 allow streaming_media2 !fastweb !important_groups
delay_client_reply_access 2 allow streaming_media !fastweb !important_groups
delay_access 2 deny all
delay_parameters 2 128000/256000 128000/256000 20000/48000

# Default for all other users, about 5Mbit overall, 2M per net, 1Mbps burst per user, 640kbps guaranteed.
delay_class 3 3
delay_access 3 allow all
delay_parameters 3 512000/512000 256000/256000 65536/131072

In the delay group 2 I had to add the ! entries otherwise video for the fastweb/important_groups got slowed - I presume that is because rep/req_mime type will always match before those external (wbinfo_group.pl) groups even if the matching order is in order by pool number. Yes, I did add dummy "allow" rules for the wbinfo_group acls to get them cached.

BTW, I hate to have to do this kind of crap to people but my first request was to "just block everything remotely footy-related". How vague is that?

Cheers

Alex


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux