LinuxSir.cn,穿越时空的Linuxsir!

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

[问题]关于用squid开设二级代理

[复制链接]
发表于 2005-12-10 12:44:27 | 显示全部楼层 |阅读模式
请问如何在squid中并行的使用多个父代理

贴自己的squid.conf如下

Gcache_mgr haile.yu@gmail.com     
visible_hostname Groove            

cache_peer 10.212.43.101 parent 6666 3130 default no-query
cache_peer 10.212.43.200 parent 6666 3130 default no-query                           
cache_peer 10.212.43.100 parent 6666 3130 default no-query
cache_peer 10.14.111.213 parent 6666 3130 login=groove:groove default no-query
cache_peer hauy.8866.org parent 8080 3130 default no-query

#hierarchy_stoplist cgi-bin ?           
  
#acl QUERY urlpath_regex cgi-bin \?
#no_cache deny QUERY
#auth_param basic program /usr/lib/squid/pam_auth -o
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hour
#authenticate_ip_ttl 2 hour
#acl password proxy_auth REQUIRED
#acl max_ip max_user_ip -s 1
#acl max_conn maxconn 16

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 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 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 CONNECT method CONNECT
acl lan-a src 222.205.54.19
acl lan-b src 10.212.43.0/24
acl lan-c src 10.14.111.213
acl lan-d src 222.205.54.18

http_access allow lan-a
http_access allow lan-b
http_access allow lan-c
http_access allow lan-d
#http_access allow password
#http_access allow max_ip
#http_access allow max_conn
http_access allow manager localhost
#http_access deny manager
#http_access deny !Safe_ports
#http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
icp_access allow all
never_direct allow all
发表于 2009-1-17 11:36:11 | 显示全部楼层
我只知道可以开设多个用户群,每个群可以用不同的上级代理
回复 支持 反对

使用道具 举报

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

本版积分规则

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