LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-17-2006, 03:32 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Smile Block web address using SquidGuard


Boss,

Suppose i have a network 192.168.110.1/24 , and it has 5 clients . and their Ip is
192.168.110.5 , 6 , 7 , 8 , 9. Now i want these clients get access only the following
websites :

yahoo.com
hotmail.com
google.com
gmail.com

They cannot access any other websites in the World .For this reason i have configured
SQUIDGUARD. Now my question is:

Is there any way to do the above thing using SquidGuard ? If it is possible How
can do this ?

Without SquidGuard if any way to do this , Then plz inform me . I will grateful to u .


THx...............
 
Old 03-17-2006, 03:40 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by shipon_97
Boss,

Suppose i have a network 192.168.110.1/24 , and it has 5 clients . and their Ip is
192.168.110.5 , 6 , 7 , 8 , 9. Now i want these clients get access only the following
websites :

yahoo.com
hotmail.com
google.com
gmail.com

They cannot access any other websites in the World .For this reason i have configured
SQUIDGUARD. Now my question is:

Is there any way to do the above thing using SquidGuard ? If it is possible How
can do this ?

Without SquidGuard if any way to do this , Then plz inform me . I will grateful to u .


THx...............
you can do this with squid without having to add any other programs... you just need to put the appropriate ACLs in your squid.conf... google about the dstdomain and src ACLs if you haven't used them before...

what you want would probably look something like this:
Code:
acl group1 src 192.168.110.5-192.168.110.9
acl yahoo dstdomain .yahoo.com
acl hotmail dstdomain .hotmail.com
acl google dstdomain .google.com
acl gmail dstdomain .gmail.com
http_access allow yahoo hotmail google gmail group1
http_access deny all
http_reply_access allow all

Last edited by win32sux; 03-19-2006 at 03:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squidguard doesn't block anything? taiwf Linux - Software 3 03-19-2006 07:36 PM
block mac address Ammad Linux - General 1 09-11-2005 01:00 PM
block yahoo messenger by ip address gsr_kashyap Linux - Software 3 11-10-2004 12:13 AM
get Squidguard to block entire countries web sites? Possible? Pcghost Linux - Software 3 09-19-2004 02:25 PM
block ip address/hosts sohmc Linux - Security 3 09-19-2004 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration