免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3422 | 回复: 1
打印 上一主题 下一主题

[proxy] squid配置完成后检查配置警告掩码不正确怎么回事 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-07-28 20:02 |只看该作者 |倒序浏览
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

论坛徽章:
0
2 [报告]
发表于 2011-07-28 20:03 |只看该作者
请各位朋友,高手帮帮忙,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP