Hello,
i've set up squid about 2 month ago with poorly configured settings just
to set things going ( i admit it wasnt the right thing to do thoguh time
were of the essence )
at the moment i decided that it's about time to take a look at each rule
i've made and fix it to the best i could. so i'm sending this email
hoping someone would show any mistake i might have done :
I. Info:
1. Our working hours are from 8 am to 6 pm
2. One ISP link that's dedicated for squid/browsing has a 2 mb shared
bandwidth with 8 GB of quota
II. Required:
1. spread the bandwidth equally among users at all times (if there;s 2
ppl online than they should share the 2 mb hence having a faster
connection than usual (Not Working)
2. Opening websites should have a little burst though downloading files
should be shaped
III. What i've done:
##################################################################################working
Hours
acl work_hours time MTWHF 08:00-20:00
##################################################################################subnet
that's shaped
acl limitedto8 src 192.168.75.0/255.255.255.0
##################################################################################Site's
that should have a very low bandwidth
acl slowsites url_regex -i "/etc/squid/slowsites.txt"
##################################################################################Destination
that should not be shaped
acl mySubnet dstdom_regex 192.168.75
##################################################################################Destinations
that should never be shaped.
acl NoShape url_regex "/etc/squid/NoShape.txt"
##################################################################################For
users would temporary would be allowed to gain higher bandwidth
acl download src 192.168.75.138
delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow NoShape download
delay_class 2 3
###################################################################################limiting
every user in the subnet 192.168.75.0/24 and allowing NoShape and
download acl to use the bandwidth freely
delay_access 2 allow limitedto8 !NoShape !download
delay_access 2 deny all
###################################################################################Bandwidth
for this delay pool is 512 KB where each user can download at a speed of
10 KB
delay_parameters 2 512000/512000 -1/-1 10000/512000
Received on Tue Dec 08 2009 - 15:14:07 MST
This archive was generated by hypermail 2.2.0 : Wed Dec 09 2009 - 12:00:01 MST