2012年3月14日

squid限學生端流量

vi /etc/squid/squid.conf內容

acl sjjhlan src 192.168.1.0/24
acl dropdomain dstdomain "/etc/squid/dropdomain.txt"
acl dropip dst "/etc/squid/dropip.txt"
acl dropsex urlpath_regex -i "/etc/squid/dropsex.txt"
acl dropsexweb url_regex -i "/etc/squid/dropsexweb.txt"
http_access deny dropdomain
http_access deny dropip
http_access deny dropsex
http_access deny dropsexweb
#宣告使用1個delay_pools
delay_pools 1
#delay_pools 1 定義為 Class 2
delay_class 1 2
#允許sjjhlan做delay access
delay_access 1 allow sjjhlan
#該delay class的總頻寛不設限,而每個點的最大頻寛為31.25 KB/s
delay_parameters 1 -1/-1 32000/32000
http_access allow sjjhlan
http_access deny all
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl denyphp urlpath_regex \.php$
cache deny denyphp

沒有留言:

張貼留言