LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-26-2009, 10:26 PM   #1
asliyanage
Member
 
Registered: Jul 2009
Location: Sri Lanka
Distribution: ubuntu 9.0
Posts: 43

Rep: Reputation: 15
Using Squid to restrict access to sites


canc we use squid in our personall computer ?
 
Old 07-26-2009, 10:34 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 asliyanage View Post
canc we use squid in our personall computer ?
Yes, definitely. BTW, why have you posted your question in the Security forum? Are you trying to use Squid for security-related matters on your PC or something like that? Please elaborate.
 
Old 07-26-2009, 10:46 PM   #3
asliyanage
Member
 
Registered: Jul 2009
Location: Sri Lanka
Distribution: ubuntu 9.0
Posts: 43

Original Poster
Rep: Reputation: 15
reply

no , i just heard that squid can restrict some site to visit.so i think it is relavant to security forum.
 
Old 07-26-2009, 10:49 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by asliyanage View Post
no , i just heard that squid can restrict some site to visit.so i think it is relavant to security forum.
Sure, that would be a context suitable for this forum. Your question, however, is whether or not one can use Squid on a PC. That is not in itself a security issue. Therefore, unless you would like to follow-up with some Squid questions relevant to access restrictions or similar, I'll go ahead and move this to the Software forum for more adequate exposure.

Last edited by win32sux; 07-26-2009 at 10:50 PM.
 
Old 07-26-2009, 10:54 PM   #5
asliyanage
Member
 
Registered: Jul 2009
Location: Sri Lanka
Distribution: ubuntu 9.0
Posts: 43

Original Poster
Rep: Reputation: 15
security

no, i need to know how to use squid to restrict some sites.
can anyone give me any link for tutorials or any reference.
 
Old 07-26-2009, 11:12 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by asliyanage View Post
no, i need to know how to use squid to restrict some sites.
can anyone give me any link for tutorials or any reference.
A quick search will provide you with tons of good tutorials.

Once you've got Squid up and running, you'll need to decide whether you want to do whitelisting (deny access to all sites, with certain exceptions) or blacklisting (allow access to all sites, with certain exceptions). Doing this sort of thing is basically just a matter of using an ACL built with the dstdomain type, along with an accompanying ACL rule.

Example whitelist:
Code:
acl good_sites dstdomain .linuxquestions.org
acl good_sites dstdomain .freshmeat.net
acl good_sites dstdomain .reuters.com
http_access allow good_sites
http_access deny all
This would mean only those three sites would be accessible.

Example blacklist:
Code:
acl bad_sites dstdomain .microsoft.com
acl bad_sites dstdomain .msn.com
acl bad_sites dstdomain .bing.com
http_access deny bad_sites
http_access allow all
This would mean all sites would be accessible, except those three.

The links/examples I provided should give you an idea of what this involves. Depending on what your situation is (you haven't really elaborated on it), a more complex configuration might be necessary. Also, it's quite common to use additional tools (such as iptables, for example) in order to obtain a more reasonable level of security.

EDIT: I've taken the liberty of giving this thread a more descriptive title.

Last edited by win32sux; 07-27-2009 at 12:33 AM.
 
Old 07-27-2009, 12:29 AM   #7
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Dansguardian, Squidguard etc these also more helpful tool with squid for content filtering
http://dansguardian.org/
http://www.squidguard.org/
 
Old 07-27-2009, 06:53 AM   #8
sigey
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Rep: Reputation: 1
the documentation (the squid.conf) file that comes with the squid package is a very good source for references. It gives clues on how to use various features of squid and how to enable/disable them.
 
  


Reply



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
Squid Problem (squid restrict some trusted sites.). jpmaxyusuf Linux - Networking 3 01-01-2009 11:33 AM
Can't access ssl sites via squid linuxgurusa Linux - Server 4 09-30-2008 08:17 AM
restrict and allow my clients to access my squid services on the bases of MAC add. shahg_shahg Linux - Security 1 04-14-2006 01:46 AM
Squid- restrict access to url jocast Linux - Software 0 03-10-2006 01:59 PM
restrict access using squid, iptables? jgnasser Linux - Networking 3 04-13-2005 07:21 AM

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

All times are GMT -5. The time now is 07:12 PM.

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