- 论坛徽章:
- 0
|
2011/07/29 03:28:56| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2011/07/29 03:28:56| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2011/07/29 03:28:56| WARNING: For now we will assume you meant to write /16
这个说我子网掩码有问题,出错了。
以下是我的配置:
http_port 3128 transparent
acl localnet src 172.168.0.0/16
# RFC1918 possible internal network
##### allow unique access #####
#acl othernet src 172.168.5.6
#http_access allow othernet
##### allow domain access #####
acl allow_domain dstdom_regex -i youku\.com
http_access allow allow_domain
##### deny file access #####
acl dont_download urlpath_regex -i \.avi \.wmv \.rm \.ram \.mpg \.mpeg \.rmvb \.mp3
cache deny dont_download
http_access deny dont_download
##### allow other domain access #####
acl allow_domain1 dstdom_regex -i baidu\.com sina\.com\.cn thebeijingnews\.com bbtnews.com\.cn morningpost\.com\.cn bjyouth\.ynet\.com bjnews\.com\.cn anjuke\.com anjukestatic\.com xinhuanet\.com ce\.cn hexun\.com chinanews\.com\.cn mz16\.cn 12306\.cn z6\.cn fang\.taobao\.com
http_access allow allow_domain1
##### deny domain access #####
acl deny_domain dstdom_regex -i baidu\.com kaixin001\.com kaixin\.com ku6\.com tudou\.com 6\.cn xunlei\.com pps\.tv pplive\.com xiaonei\.com taobao\.com 360buy\.com alisoft\.com sanguosha\.com
http_access deny deny_domain
##### manager #####
acl manager proto cache_object
acl localhost src 127.0.0.1 172.168.0.0/16
http_access allow manager localhost
http_access deny manager
cachemgr_passwd 110119 all
cache_mgr lijianfeilong@163.com
##### cache purge #####
acl purge method PURGE
http_access allow purge localhost
http_access deny purge
##### allow 172.168.0.0/16 access ######
visible_hostname gateway-t1.soufun.com
http_access allow localnet
http_access deny all
always_direct allow localnet
strip_query_terms off
client_db off
negative_ttl 0 seconds
forwarded_for on
#no cache file
acl nocache urlpath_regex \.flv$
cache deny nocache
refresh_pattern . 0 0% 0
#cache
cache_effective_user squid
cache_effective_group squid
cache_store_log none
cache_log /opt/squid3/logs/cache.log
# logging
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h"
access_log /opt/squid3/logs/access.log combined |
|