URN Logo
UNIX Resources » Linux » China Linux Forum » Linux防火墙和代理服务器应用 » 5 » squid帮忙看看什么问题,上不了网(配置文件和log都附上了)
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
squid帮忙看看什么问题,上不了网(配置文件和log都附上了)
 
 
 
 
Subject: squid帮忙看看什么问题,上不了网(配置文件和log都附上了)
Author: KonKoli    Posted: 2005-09-05 18:24    Length: 1,777 byte(s)
[Original] [Print] [Top]
#Recommended minimum configuration:
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 192.168.16.26/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
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 CONNECT method CONNECT
acl work_time time [S M T W A H] [08:30-19:30}#TEST BY GANGLI
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access allow localhost
# Deny requests to unknown ports
http_access allow !Safe_ports
# Deny CONNECT to other than SSL ports
http_access allow CONNECT !SSL_ports
#
http_access allow work_time


log_file
1125913484.577 229 192.168.16.26 TCP_DENIED/403 1343 GET http://192.168.16.26:10000/? - NO
NE/- text/html
1125913490.294 710 192.168.16.26 TCP_DENIED/403 1325 GET http://www.163.com/ - NONE/- text
/html
1125913490.397 102 192.168.16.26 TCP_DENIED/403 1347 GET http://www.163.com/favicon.ico -
NONE/- text/html
----

孩儿立志出乡关,学不成linux誓不还
[Original] [Print] [Top]
Subject: Re: squid帮忙看看什么问题,上不了网(配置文件和log都附上了)
Author: chouchen_zj    Posted: 2005-09-13 11:45    Length: 164 byte(s)
[Original] [Print] [Top]
你的客户端被拒绝了,你的客户端IP地址应该被允许,但现在你的设置里没有这个。

还有要看看你的客户端的错误代码,也就是返回客户端浏览器的网页提示是什么
[Original] [Print] [Top]
Subject: Re: squid帮忙看看什么问题,上不了网(配置文件和log都附上了)
Author: KonKoli    Posted: 2005-09-13 12:02    Length: 1,252 byte(s)
[Original] [Print] [Top]
可是我有设呀,我把他设在localhost控制列表中,错误就是常见的什么访问拒绝,我记不大清楚,等下贴上来
#Recommended minimum configuration:
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 192.168.16.26/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
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 CONNECT method CONNECT
acl work_time time [S M T W A H] [08:30-19:30}#TEST BY GANGLI
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access allow localhost
# Deny requests to unknown ports
http_access allow !Safe_ports
# Deny CONNECT to other than SSL ports
http_access allow CONNECT !SSL_ports
#
http_access allow work_time


----

孩儿立志出乡关,学不成linux誓不还
[Original] [Print] [Top]
Subject: Re: squid帮忙看看什么问题,上不了网(配置文件和log都附上了)
Author: chouchen_zj    Posted: 2005-09-15 20:18    Length: 472 byte(s)
[Original] [Print] [Top]
#acl localhost src 127.0.0.1/255.255.255.255 192.168.16.26/255.255.255.255

acl localhost src 127.0.0.1/255.255.255.255

#http_access allow !Safe_ports

http_access deny !Safe_ports #你这里有问题,反了

# local network could access the cache
acl our_networks src x.x.x.x/24
http_access allow our_networks

你可以看看以上几点,对照一下,祝你好运

[Original] [Print] [Top]
« Previous thread
squid 執行出錯﹐請幫忙﹗
Linux防火墙和代理服务器应用
5
Next thread »
请教个squid2.5+NTLM认证的问题。
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2008-07-17 02:58:42, cost 0.073851823806763 ms.