LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1163|回复: 4

Squid 低级问题

[复制链接]
发表于 2008-7-18 14:03:02 | 显示全部楼层 |阅读模式
有如下配置:
[root@runtop ~]# more /etc/squid/squid.conf
http_port 3128
cache_mgr admin@runtop.com

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache


cache_dir ufs /var/spool/squid/var 4096 16 256
cache_mem 320 MB
cache_swap_low 90
cache_swap_high 95
cache_effective_user squid
cache_effective_group squid
cache_access_log /var/spool/squid/logs/access.log squid
cache_log /var/spool/squid/logs/cache.log
cache_store_log /var/spool/squid/logs/store.log
#dns_nameservers 61.152.86.18 202.96.209.6 61.152.82.18
error_directory /usr/share/squid/errors/Simplify_Chinese

visible_hostname Runtop.Server

client_netmask 255.255.255.255

refresh_pattern ^ftp:   1440    20%  10080
refresh_pattern ^gopher:  1440  0%   1440
refresh_pattern .       0   20% 4320

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
#acl allow_all arp 00:16:36:31:3b:4b
acl deny_url dstdomain .qq.com .tencent.com
#acl deny_qq dst "/root/qq.txt"
acl deny_file urlpath_regex -i \.mp3$ \.avi$ \.exe$ \.rar$ \.rm$ \.rmvb$ \.wmv$
\.mp4$ \.3gp$ \.iso$ \.mds$

#acl allow_group_a arp "/root/a.txt"
#acl allow_group_b arp "/root/b.txt"
#acl allow_group_c arp "/root/c.txt"

acl deny_time_a time SMTWHFA 00:00-10:00 13:00-16:00 20:00-23:59
acl deny_time_b time SMTWHFA 00:00-12:00 13:00-16:00 20:00-23:59


#http_access allow allow_all

http_access allow manager localhost
http_access deny manager

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny deny_url

#http_access deny deny_qq
http_access deny deny_file

#http_access allow allow_group_a
#http_access deny deny_time_a
#http_access allow allow_group_b
#http_access deny deny_time_b
#http_access allow allow_group_c

http_access allow all

http_reply_access allow all
icp_access allow all

coredump_dir /var/spool/squid/var
[root@runtop ~]#
[root@runtop ~]#


redhat 5.0  squid 2.6

squid 开起后,客户端就没有任何反应,也不提示什么, 有人知道为什么吗?
发表于 2008-7-19 10:26:38 | 显示全部楼层
客户端是如何设置的?
回复 支持 反对

使用道具 举报

发表于 2008-7-20 19:24:27 | 显示全部楼层
什么叫客户端没有任何反应?搞的squid的像病毒的一样的....你要用squid作什么?希望达到什么效果,客户端出现什么反应而使你认为不正确?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-22 19:05:17 | 显示全部楼层
空白页,连接图标在转,一直转,一直转.
回复 支持 反对

使用道具 举报

发表于 2008-7-29 15:48:55 | 显示全部楼层
Post by teaandpen;1877383
空白页,连接图标在转,一直转,一直转.


客户端配置代理服务器了吗?

如果配置了,看一下Squid的日志文件,在/var/log/squid下,默认
回复 支持 反对

使用道具 举报

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

本版积分规则

快速回复 返回顶部 返回列表