Re: [SQU] Peers selections

From: Robert Collins <robert.collins@dont-contact.us>
Date: Wed, 13 Dec 2000 10:06:12 +1100

Unless you want your squid server to /only/ access the two urls (and not sub urls), you need to change your regex's.

Secondly, unless the regexs allow all the requests you wnat, squid will only use the matching requests via those parents, and will
go direct for everything else.

I suggest changing your
cache_peer_access lines to go
allow !virus_url
and
allow !magnesium url
respectively. Unless of course, what you really want is all requests to the squid parent (with the exception of, magnesium/virus
requests which should go to the AV parent.)
in which case
allow !virus_url
and
allow virus_url
deny all

should do you fine
Rob

----- Original Message -----
From: "François GRATIOLET/Security/Operations/NET2S-SA" <fgratiolet@net2s.com>
To: <squid-users@ircache.net>
Sent: Wednesday, December 13, 2000 3:11 AM
Subject: [SQU] Peers selections

> Hi guys,
>
> I have a problem when configuring a hierarchy of proxies. I have a squid
> proxy and 2 parents;
> 1 antivirus proxy and 1 Squid proxy. When http://magnesium/virus is
> requested by a browser,
> I want the request to be forwarded to the antivirus proxy. When
> http://magnesium is
> requested, I want the request to be forwarded to the second Squid proxy.
>
> I have written the following lines in the squid.conf file:
>
> acl virus_url url_regex ^http://magnesium.i2bd.edpdep.vdf.socgen.com/virus/
> acl magnesium_url url_regex ^http://magnesium.i2bd.edpdep.vdf.socgen.com/
> acl all src 0.0.0.0/0.0.0.0
>
> cache_peer 172.16.96.10 parent 3128 7 no-query
> cache_peer_access 172.16.96.10 allow virus_url
> cache_peer_access 172.16.96.10 deny all
>
> cache_peer 172.16.32.3 parent 3128 3130
> cache_peer_access 172.16.32.3 allow magnesium_url
> cache_peer_access 172.16.32.3 deny all
>
> 172.16.96.10 is the antivirus proxy
> 172.16.32.3 is the second Squid proxy
>
> Of course it doesn't work.
>
> Thank you for your help.
>
> Best regards,
>
> Francois.
>
> --
> To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
>
>

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Tue Dec 12 2000 - 15:59:44 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:56:56 MST