免费注册 查看新帖 |

Chinaunix

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

[proxy] squid+iptables的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-10 22:35 |只看该作者 |倒序浏览
客户端有几十台机器,不知道为什么有很多网页都是打到一半就打不开了。
还有有些机器能直接上qq,有些机器只能设置了代理才好上qq!
以下是我squid.conf里边的内容,还请大家指点一,二!


http_port 3128
cache_mem 128 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 1024 KB
cache_dir ufs /tmp/squid/cache 60000 16 256
cache_access_log /var/log/squid/access.log
cache_log /dev/null
cache_store_log none
debug_options ALL,1
visible_hostname proxy

acl snmppublic snmp_community public
snmp_port 3401
#snmp_access allow snmppublic all

#icp_access allow all
icp_port 0
cache_effective_user squid
cache_effective_group squid
cache_swap_high 100%
cache_swap_low 80%
half_closed_clients off
maximum_object_size 1024 KB

hierarchy_stoplist cgi-bin ?
hierarchy_stoplist -i ^https:\\ ?
acl QUERY urlpath_regex -i cgi-bin \? \.asp \.php \.jsp \.cgi
acl denyssl urlpath_regex -i ^https:\\
no_cache deny QUERY
no_cache deny denyssl

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
acl all src 0.0.0.0/0
acl our_networks src 172.16.0.0/16
http_access allow our_networks
http_access deny all

#acl QUERY urlpath_regex -i cgi-bin \? \.exe$ \.zip$ \.mp3$ \.mp2$ \.rm$ \.avi$
acl QUERY urlpath_regex -i \.torrent$
no_cache deny QUERY
quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95
connect_timeout 60 seconds
read_timeout 3 minutes
request_timeout 30 seconds
client_lifetime 30 seconds
half_closed_clients off
pconn_timeout 60 seconds
#ident_timeout 10 seconds
shutdown_lifetime 10 seconds
memory_pools off
memory_pools_limit 0

reload_into_ims on
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP