LinuxSir.cn,穿越时空的Linuxsir!

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

通过squid3不能访问http://www.debian.org/?

[复制链接]
发表于 2011-3-16 12:55:30 | 显示全部楼层 |阅读模式
提示如下:

ERROR
The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL: http://www.debian.org/

    Connection to www.debian.org failed.

The system returned: (101) Network is unreachable

The remote host or network may be down. Please try the request again.

Your cache administrator is webmaster.

Generated Wed, 16 Mar 2011 04:51:53 GMT by localhost (squid/3.1.6)

以前squid2.7的时候是好的,现在上不了了。
 楼主| 发表于 2011-3-16 12:58:26 | 显示全部楼层
squid3在**服务器192.168.1.1上,通过其他机器只是上不了http://www.debian.org/,其他网站没有问题。

我的配置文件如下,squid.conf:
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl localhost src ::1/128
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl to_localhost dst ::1/128
acl localnet src 192.168.1.0/24
acl SSL_ports port 443
acl SSL_ports port 563                # snews
acl SSL_ports port 873                # rsync
acl Safe_ports port 80                # http
acl Safe_ports port 21                # ftp
acl Safe_ports port 443                # https
acl Safe_ports port 70                # gopher
acl Safe_ports port 210                # wais
acl Safe_ports port 1025-65535        # unregistered ports
acl Safe_ports port 280                # http-mgmt
acl Safe_ports port 488                # gss-http
acl Safe_ports port 591                # filemaker
acl Safe_ports port 777                # multiling http
acl Safe_ports port 631                # cups
acl Safe_ports port 873                # rsync
acl Safe_ports port 901                # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 192.168.1.1:3128 transparent
hierarchy_stoplist cgi-bin ?
cache_mem 512 MB
cache_dir ufs /dev/shm/squid 1000 32 512
coredump_dir /var/spool/squid3
refresh_pattern ^ftp:                1440        20%        10080
refresh_pattern ^gopher:        1440        0%        1440
refresh_pattern -i (/cgi-bin/|\?) 0        0%        0
refresh_pattern .                0        20%        4320
refresh_pattern (Release|Package(.gz)*)$        0        20%        2880
dns_nameservers 61.139.2.69 202.98.96.68
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
acl apache rep_header Server ^Apache
hosts_file /etc/hosts
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-3-16 12:59:58 | 显示全部楼层
这个问题的奇怪部分在于,其他网站都没有问题,目前就发现上不了debian的这个官方网。
**服务器本机可以上这个网。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-3-16 13:04:19 | 显示全部楼层
另外一台服务器也安装了squid,只不过是2.7的,但是这个上http://www.debian.org/就没有问题,其配置如下:
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl localnet src 192.168.1.0/24
acl SSL_ports port 443                # https
acl SSL_ports port 563                # snews
acl SSL_ports port 873                # rsync
acl Safe_ports port 80                # http
acl Safe_ports port 21                # ftp
acl Safe_ports port 443                # https
acl Safe_ports port 70                # gopher
acl Safe_ports port 210                # wais
acl Safe_ports port 1025-65535        # unregistered ports
acl Safe_ports port 280                # http-mgmt
acl Safe_ports port 488                # gss-http
acl Safe_ports port 591                # filemaker
acl Safe_ports port 777                # multiling http
acl Safe_ports port 631                # cups
acl Safe_ports port 873                # rsync
acl Safe_ports port 901                # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 192.168.1.12:3128 transparent
hierarchy_stoplist cgi-bin ?
cache_dir ufs /dev/shm/squid 200 32 512
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp:                1440        20%        10080
refresh_pattern ^gopher:        1440        0%        1440
refresh_pattern -i (/cgi-bin/|\?) 0        0%        0
refresh_pattern (Release|Package(.gz)*)$        0        20%        2880
refresh_pattern .                0        20%        4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
dns_nameservers 61.139.2.69 202.98.96.68
hosts_file /etc/hosts
coredump_dir /var/spool/squid
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-3-18 11:11:01 | 显示全部楼层
沉了,自己顶一下。今天又在网上看了些文档,仍是一头雾水。难道真是灵异事件?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-3-18 12:49:11 | 显示全部楼层
可以ping:

ping www.debian.org
PING www.debian.org (206.12.19.7) 56(84) bytes of data.
64 bytes from bellini.debian.org (206.12.19.7): icmp_req=1 ttl=48 time=235 ms
64 bytes from bellini.debian.org (206.12.19.7): icmp_req=2 ttl=48 time=235 ms
64 bytes from bellini.debian.org (206.12.19.7): icmp_req=3 ttl=48 time=234 ms
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-3-18 12:52:34 | 显示全部楼层
可以访问这两个网址:

http://db.debian.org/

http://bellini.debian.org/

但就是不能访问http://www.debian.org/
回复 支持 反对

使用道具 举报

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

本版积分规则

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