- 论坛徽章:
- 0
|
有如下配置:
[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 开起后,客户端就没有任何反应,也不提示什么, 有人知道为什么吗? |
|