|
请问如何在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 |
|