Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Please, help with always_direct/never_direct

10 views
Skip to first unread message

Kendall Lister

unread,
Feb 25, 2000, 3:00:00 AM2/25/00
to Squid Users Mailing List
On Thu, 24 Feb 2000, Sergey Solyanik wrote:

> Here is my rules, but it didn't work ;(
>
> # Solik's stuff
> acl locl0 dstdomain solik.net
> acl locl1 dstdomain tdgu.sumy.ua
> acl locl2 dstdomain sumy.net
> acl locl3 dstdomain sumy.com
> acl locl4 dstdomain sim.net.ua
>
> always_direct allow locl0 locl1 locl2 locl3 locl4
> always_direct deny all
> never_direct allow all

The problem is in your logic - the first always_direct line only allows
sites that match _all_ of the domains, not _any_ of them. Try this:

acl local_sites dstdomain solik.net tdgu.sumy.ua sumy.net sumy.com
always direct allow local_sites
always_direct deny all
never_direct allow all

--
Kendall Lister, Systems Operator for Charon I.S. - ken...@charon.net.au
Charon Information Services - Friendly, Cheap Melbourne ISP: 9589 7781


Henrik Nordstrom

unread,
Mar 5, 2000, 3:00:00 AM3/5/00
to Miquel van Smoorenburg
Miquel van Smoorenburg wrote:

> This should keep requests for local domains local, right ?
>
> acl local-servers urlpath_regex cistron.nl mbit.nl cistron.net
> always_direct allow local-servers
>
> Well, it still asks the parent for URLs containing these domains ..

Well.. urlpath_regex mathes only the part AFTER the host name.. so your
acl would match something like
http://www.example.com/jumbit.lnid/index.html
or
http://jumpgate.example.com/goto/www.cistron.nl
but NOT
http://www.cistron.nl/

What you want is
acl local-servers dstdomain .cistron.nl
acl local-servers dstdomain .mbit.nl
acl local-servers dstdomain .cistron.net

--
Henrik Nordstrom
Squid hacker


0 new messages