免费注册 查看新帖 |

Chinaunix

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

[proxy] 为什么配置透明代理后,一些被禁网站可被访问到? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-22 09:08 |只看该作者 |倒序浏览
大家好,小弟最近用iptables+Squid做了一个透明代理,主要用于提高WEB页面打开的速度,效果很明显,但无意中发现一个问题,启用透明代理后,原来不可以访问的一些网站,比如:365论坛(是一个色情站点)竟然可以打开了,取消Squid后,就不可以访问了,哪位知道,要如何解决呢?
附Squid配置文件squid.conf
icp_port 0
cache_store_log none
cache_access_log none
cache_log /usr/local/squid/var/logs/cache.log
emulate_httpd_log on
pid_filename /usr/local/squid/var/squid.pid
cache_effective_user squid
cache_effective_group squid
visible_hostname cache.xxxx.net
cache_mgr xxxxx@163.com
http_port 3128
cache_mem 1024 MB
cache_dir aufs /cache0 8000 16 256
cache_dir aufs /cache1 8000 16 256
cache_dir aufs /cache2 8000 16 256
cache_dir aufs /cache3 8000 16 256
#reference_age 5 days
acl mynet1 src x.x.x.x/255.255.0.0
acl mynet2 src x.x.x.x/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
http_access allow mynet1
http_access allow mynet2
http_access deny all
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
half_closed_clients off
cache_swap_high 100%
cache_swap_low 80%
maximum_object_size 8192 KB
refresh_pattern -i .html 1440 100% 129600 reload-into-ims
refresh_pattern -i .shtml 1440 100% 129600 reload-into-ims
refresh_pattern -i .hml 1440 100% 129600 reload-into-ims
refresh_pattern -i .gif 1440 100% 129600 reload-into-ims
refresh_pattern -i .swf 1440 100% 129600 reload-into-ims
refresh_pattern -i .jpg 1440 100% 129600 reload-into-ims
refresh_pattern -i .png 1440 100% 129600 reload-into-ims
refresh_pattern -i .bmp 1440 100% 129600 reload-into-ims
refresh_pattern -i .js 1440 100% 129600 reload-into-ims

论坛徽章:
0
2 [报告]
发表于 2008-02-22 15:55 |只看该作者
你原来的限制是针对客户机的,并没有针对服务器


签名
---
请体会,代理服务这四个字的真谛
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP