|
|
|
|
| squid帮忙看看什么问题,上不了网(配置文件和log都附上了) |
 squid帮忙看看什么问题,上不了网(配置文件和log都附上了) - KonKoli [ 2005-09-05 18:24 | 1,777 byte(s)]
 Re: squid帮忙看看什么问题,上不了网(配置文件和log都附上了) - KonKoli [ 2005-09-13 12:02 | 1,252 byte(s)]
 Re: squid帮忙看看什么问题,上不了网(配置文件和log都附上了) - chouchen_zj [ 2005-09-15 20:18 | 472 byte(s)]
 Re: squid帮忙看看什么问题,上不了网(配置文件和log都附上了) - chouchen_zj [ 2005-09-13 11:45 | 164 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]
|
|
[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]
|
|
[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]
|
|
|