Add to the squid.conf of the backend side:
cache_peer <host-frontend> parent http_port icp_port no-query
acl all src 0.0.0.0/0.0.0.0
never_direct allow all
always_direct deny all
where http-port is the http-port of the parent cache and
icp-port is the icp-port of the parent cache.
To forcibly use the parent cache, user never_direct allow all and
always_direct deny all
To not ICP-query the parent-cache, whether the element is in (performance!,
one
query less) and instead request to get the element directly from the cache,
use
the parameter no-query.
Greetings,
Martin Stolle
-----Ursprüngliche Nachricht-----
Von: Riccardo Gentilucci [mailto:riccardo.gentilucci@blixer.it]
Gesendet: Donnerstag, 31. Mai 2001 11:36
An: squid-users@squid-cache.org
Betreff: [squid-users] Who can answer me?
Hi VRBDS,
i "must" :0) understand if i can realize the following cache hierarchy:
- i have a squid in a server HP-UX 11.00 (in the Backend side) that it can't
reach internet and i want it to go with its parent cache for every proxy
query (i've configured in the squid.conf this kind of line:
"cache_peer <host-frontend> parent http_port icp_port [options]"
Obviously in the http_port i've put down the correct port where the squid
works and for the icp_port the default that i've not changed
- in the frontend, another HP-UX 11 server, (there's a firewall, now
completely open.., between the backend and the frontend systems) i've
installed squid with a standard configuration and all seem to work fine!!
(i've tested it with the client application and with a commercial browser).
- the two systems can make dns query to a public dns server.
If in the backend server i run:
client -p http_port -h <cache-parent-host> http://www.squid-cache.org (for
example :0))
all seems to work ok but if i run
client -p http_port http://www.squid-cache.org
I receive an errore that tell me that the host is down or the net is
unreachable (this make me understand that something is wrong in the routing
plan!)
The question is:
I must create the route to reach internet from the server in the backend?
Why don't the two caches speak between them?
I've read all the FAQ etc... but i haven't found nothing that can make me
understand...
Any Idea is sicurely appreciated...
Best regards
Received on Thu May 31 2001 - 03:54:14 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:21 MST