Re: [linux] SQUID Help

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Yajith Ajantha Dayarathna | යජිත් අජන්ත දයාරත්න
Date:  
To: Chammika Gunathilake
CC: Linux Help, linux
Subject: Re: [linux] SQUID Help
Hi,

Something similar to below should work.
Assuming local network is 192.168.10.0/24,

acl mynetworks src 192.168.10.0/24
acl block_web dstdomain .facebook.com
http_access deny block_web
http_access allow mynetworks

LHN has a good article with the basics in the following link.
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch32_:_Controlling_Web_Access_with_Squid

There are many more configuration examples on squid wiki and on the web.

Hope this helps.

Cheers!

On Tue, Jul 5, 2011 at 3:26 PM, Chammika Gunathilake <
> wrote:


> Hi Friends,
>
> I am using SQUID for proxy. I want to block somw web sites. so I used
> following commands,
>
> acl block_web url_regex "/etc/squid/blockweb.squid"
> http_access deny block_web
>
> in the blockweb.squid file as follows;
> .facebook.com
>
> It is not work. when I try command "dstdomain" it's give error
>
> Tell me how can I do this
>
> Thanks
>
> Best Regard;
>
> Chammika
>
> _______________________________________________
> linux-raw mailing list
>
> https://secure.lug.lk/mailman/listinfo/linux-raw
>




--
Yajith Ajantha | යජිත් අජන්ත