- 论坛徽章:
- 0
|
各位,请教一个问题squid2.6做的透明代理,打开tom.com时如图片有些图片不显示.用不限制的用户可以访问.不知道是在那埋限制.知道的说一下.一开始以为是acl conncount maxconn 6的关系,可以我禁用了还是会有同样问题,只是其它网站的连接不问题,就tom就问题.
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#user
acl supuser src 192.168.100.2-192.168.100.50
acl netuser src "/usr/local/squid/etc/acl/user"
acl msnuser src 192.168.100.103-192.168.100.119 192.168.100.60 192.168.100.221 192.168.100.56
acl cwuser src 192.168.100.71-192.168.100.79
acl jbcuser src 192.168.100.214
acl pbuser src 192.168.100.151
acl zjuser src 192.168.100.64
acl officeuser src "/usr/local/squid/etc/acl/officeuser"
acl mmsfile urlpath_regex \.(exe|mp3|mp4|mpeg|mpg|rm|avi|wmv|wma|scr|zip|rar|pif|vbs|eml|bat|td|bt|torrent)$
#acl mmsfile urlpath_regex \.mp3$ \.exe$
acl worktime time D 07:45-22:45
acl usertime time D 07:30-17:30
acl zjtime time D 12:00-23:50
acl pbtime time D 12:30-17:30
#acl xctime time D 7:30-17:35
acl jbctime time D 14:00-22:00
#acl conncount maxconn 20
acl qq dstdomain .qq.com
acl no_sites url_regex -i "/usr/local/squid/etc/acl/no_sites.list"
#http_access deny d_port
#http_access deny supuser CONNECT
#http_access
http_access allow supuser
http_access deny mmsfile
reply_body_max_size 10240000 deny supuser
http_access deny !worktime msnuser
http_access deny !worktime officeuser
http_access deny !usertime netuser
http_access deny !zjtime zjuser
http_access deny !pbtime pbuser
http_access deny !jbctime jbcuser
http_access deny !worktime cwuser
#http_access deny conncount !supuser
http_access deny qq
http_access deny no_sites
#http_access deny all CONNECT
http_access allow netuser
http_access allow msnuser
http_access allow officeuser
http_access allow zjuser
http_access allow pbuser
http_access allow jbcuser
http_access allow cwuser
http_reply_access allow all
icp_access allow all
http_access deny all
cache_mgr zszx@hontex.cn
cache_effective_user squid
coredump_dir /usr/local/squid/var/cache
visible_hostname gateway
logfile_rotate 20
error_directory /usr/local/squid/share/errors/Simplify_Chinese |
|