Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-17-2006, 03:32 AM
|
#1
|
Member
Registered: Oct 2005
Location: Bangladesh
Posts: 504
Rep:
|
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...............
|
|
|
03-17-2006, 03:40 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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.
|
|
|
All times are GMT -5. The time now is 02:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|