Chinaunix
标题:
刚开始弄,错误中长大(Squid)
[打印本页]
作者:
tiansky
时间:
2008-07-18 13:47
标题:
刚开始弄,错误中长大(Squid)
有如下配置:
[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 开起后,客户端就没有任何反应,也不提示什么, 有人知道为什么吗?
作者:
badb0y
时间:
2008-07-18 14:53
你要做什么代理?? 是普通代理吗?
作者:
tiansky
时间:
2008-07-18 15:10
是的,
最起码的上网功能.
作者:
badb0y
时间:
2008-07-18 16:30
运行有出错吗,,
如果没出错的话,你可以在IE里面设置一下,就可以通过它代理上网了
作者:
dexter_yccs
时间:
2008-07-18 16:39
客户端怎么设置的?不会没有任何反应吧?
作者:
tiansky
时间:
2008-07-18 17:23
客户端设置:工具---->选项---->连接---->LAN 设置---->代理服务器:172.17.5.1 3128
浏览器显示"不能显示网页"
网卡IP为:
[root@runtop ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1D:7D:C5:A1:4F
inet addr:172.17.5.1 Bcast:172.17.5.255 Mask:255.255.255.0
inet6 addr: fe80::21d:7dff:fec5:a14f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17975 errors:0 dropped:0 overruns:0 frame:0
TX packets:13326 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1609719 (1.5 MiB) TX bytes:2094397 (1.9 MiB)
Interrupt:17 Base address:0xe000
eth1 Link encap:Ethernet HWaddr 00:14:BF:5D:6E:15
inet addr:192.168.1.88 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:bfff:fe5d:6e15/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21606 errors:0 dropped:0 overruns:0 frame:0
TX packets:508 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1387120 (1.3 MiB) TX bytes:61130 (59.6 KiB)
Interrupt:21 Base address:0x8000
192.168.1.88 是外网
作者:
tiansky
时间:
2008-07-19 12:36
防火墙,没关,
关了就可以,,,
作者:
ahsiao
时间:
2008-07-22 16:39
原帖由
tiansky
于 2008-7-19 12:36 发表
防火墙,没关,
关了就可以,,,
什么防火墙?iptables吗?
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2