Re: [squid-users] acl website block

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 08 Oct 2008 00:58:10 +1300

░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░ wrote:
> i have been use
> acl website dstdomain "/etc/website"
>
> to block some website
>
> but how to make exception to some PC ( client )
> eg :
>
> 192.168.1.100-200 <-- my client's ip
> i want only 192.168.1.100 and 192.168.1.110 that not have any blocked

acl clientsA src 192.168.1.100/32 192.168.1.110/32
http_access allow clientsA

> site ( free access )
> and i want 192.168.1.101 - 192.168.1.109 only can browse yahoo.com

acl clientsB src 192.168.1.101-192.168.1.109
acl yahoo dstdomain .yahoo.com
http_access allow clientsB yahoo

> and i want 192.168.1.111 - 192.168.1.120 only can browse google.com

acl clientsC src 192.168.1.111-192.168.1.120
acl google dstdomain .google.com
http_access allow clientsC google

> and i want 192.168.1.121 - 192.168.1.30 only can browse yahoo and google.com

(NP: I assume you typo and meant that last range to end at *.130)

acl clientsD src 192.168.1.121-192.168.1.130
http_access allow clientsD yahoo
http_access allow clientsD google

> and i want the rest cannot / doesnt have ant access

http_access deny all

Amos

-- 
Please use Squid 2.7.STABLE4 or 3.0.STABLE9
Received on Tue Oct 07 2008 - 11:58:17 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 07 2008 - 12:00:03 MDT