Re: [squid-users] deny all and allow just one

From: Michael Young <youngmw@dont-contact.us>
Date: Wed, 10 Apr 2002 14:35:52 -0400

Samuel Alves Vieira wrote:

> Hi all,
>
> I think you should use this :
>
> acl all src 0.0.0.0/0.0.0.0
> acl osvaldo src 127.0.0.1/255.255.255.255
> acl deny-list url_regex www.uol.com.br
> http_access allow osvaldo !deny-list
> http_access deny all
>

this would allow to osvaldo and not the site(everything but the site)
remove the not on the access line and this should work for a single site to a
single client.

>
> >>> Osvaldo Mundim Junior <osvaldo@arcom.com.br> 10/04/02 14:43 >>>
> Hi all,
>
> How must I do at my squid.conf to block all sites and allow just one to a
> client?
>
> I'm doing this:
>
> acl osvaldo src 127.0.0.1/255.255.255.255
> acl deny-list url_regex www.uol.com.br
> #
> #
> http_access deny osvaldo !deny-list
>
> thanks in advance
>
> Osvaldo

--
Michael Young
System Administration / NC-Programming Dept.
Burr Oak Tool & Gauge Co., Inc.
Mailto:youngmw@burroak.com
Ph:(616)651-9393 ext. 419
Fax:(616)651-4324
Received on Wed Apr 10 2002 - 12:35:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:31 MST