Re: confused about always_direct

From: Duane Wessels <[email protected]>
Date: Tue, 09 Feb 1999 09:43:27 -0700

Steve Reddel writes:

>i am trying to configure squid 2.2pre2 (and all previous version of squid
>2) to operate as i had squid 1.1 working with no success...
>what i am trying to achieve is going to a parent cache for all requests
>except 2 certain c-class address which should go directly.
>
>the lines i have in my configuration that apply here are as follows:
>
>---start----
>cache_peer proxy.intercoast.com.au parent 8080 3130
>
>acl steve src 203.32.99.0/255.255.255.0
>acl intercoast src 203.22.112.0/255.255.255.0
>always_direct allow steve intercoast
>---end---

Its a common mistake. ACL names after the "allow" are AND'ed together.
So, "steve AND intercoast" will never be true. Instead you want

always_direct allow steve
always_direct allow intercoast

Duane W.
Received on Tue Feb 09 1999 - 09:48:12 MST

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