Re: Squid Access Controls

From: Duane Wessels <wessels>
Date: Sun, 18 Aug 96 19:45:48 -0700

Benarson.Behajaina@swh.sk writes:

> Hello everyone,
>
> Has someone tried to define an access list based on
>the combination of ip-address and domain ?
>
> i.e let's say my local network address is 192.108.125.0
> and one host called host1 has an ip-address 192.108.125.10
> let's say a domain dommfoo is .com
>
> So, what to do if I want to allow all hosts except the
>host1 (192.108.125.10) for accessing the domain .foo.com ?
>(i.e deny host1 if wants to access the domain .com,
>but allow host1 if it wants to access domain other than .com)
>
>I've tried something like this :
>==========================================
>acl host1 192.108.125.10/255.255.255.255
>acl domfoo .com
>http_access allow all !host1 domfoo
>==========================================

acl host1 src 192.108.125.10/255.255.255.255
acl domfoo domain foo.com

http_access deny host1 domfoo
http_access allow all

Duane W.
Received on Sun Aug 18 1996 - 19:45:50 MDT

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