Search squid archive

Re: acl website block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



░▒▓ ɹɐ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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux