LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2008, 05:39 AM   #1
saran_sai
Member
 
Registered: Aug 2008
Posts: 93
Blog Entries: 1

Rep: Reputation: 15
squid blocklist


Dear Friends

how to block some unwanted website in squid2.6 stable version.
and how to some special users to allow access to particular websites in squid2.6 stable.
i am using centos 5

bye
 
Old 12-04-2008, 09:09 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,319

Rep: Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470
Quote:
Originally Posted by saran_sai View Post
Dear Friends

how to block some unwanted website in squid2.6 stable version.
and how to some special users to allow access to particular websites in squid2.6 stable.
i am using centos 5

bye
There are several threads on this site that have covered this, and alot of information on Google. This site

http://linux.ittoolbox.com/groups/te...-squid-1612404

Has info on how to do it, using Squid directives. Reading the Squid manual would help, too. TO allow other users to get to the blocked sites, you'll have to set up multiple authentication groups.
 
Old 12-06-2008, 02:55 AM   #3
saran_sai
Member
 
Registered: Aug 2008
Posts: 93
Blog Entries: 1

Original Poster
Rep: Reputation: 15
squid

Quote:
Originally Posted by TB0ne View Post
There are several threads on this site that have covered this, and alot of information on Google. This site

http://linux.ittoolbox.com/groups/te...-squid-1612404

Has info on how to do it, using Squid directives. Reading the Squid manual would help, too. TO allow other users to get to the blocked sites, you'll have to set up multiple authentication groups.

hai

thank u for u r reply.

i already tried this option in squid . but its not working.
my squid version is 2.6 stable
my distribution is centos5

thank u

bye
 
Old 12-06-2008, 04:37 AM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by saran_sai View Post
Dear Friends

how to block some unwanted website in squid2.6 stable version.
and how to some special users to allow access to particular websites in squid2.6 stable.
i am using centos 5

bye
Example (from squid.conf):
Code:
...

acl blocked_sites dstdomain .www.linuxquestions.org
acl blocked_sites dstdomain .icanhascheezburger.com

...

http_access deny blocked_sites
Works for me in 2.6stable13 version.
Try O'Reily's book about squid ("Squid the definitive guide"). All this is explained there.

Last edited by ErV; 12-06-2008 at 09:23 AM.
 
Old 12-08-2008, 12:23 AM   #5
saran_sai
Member
 
Registered: Aug 2008
Posts: 93
Blog Entries: 1

Original Poster
Rep: Reputation: 15
squid problem

Quote:
Originally Posted by ErV View Post
Example (from squid.conf):
Code:
...

acl blocked_sites dstdomain .www.linuxquestions.org
acl blocked_sites dstdomain .icanhascheezburger.com

...

http_access deny blocked_sites
Works for me in 2.6stable13 version.
Try O'Reily's book about squid ("Squid the definitive guide"). All this is explained there.


hai

thank u for ur reply . suppose i want to block n number of sites then i type each sites like this . its too hard. any other way pls help me.
and one more thing my client user remove proxy setting with out information. and they browse directly . is any idea once the client remove proxy then internet not working . is there any options in sqiud.conf file. pls tel me any suggestions.




thank u
bye

Last edited by saran_sai; 12-08-2008 at 12:32 AM.
 
Old 12-08-2008, 10:52 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,319

Rep: Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470Reputation: 4470
Quote:
Originally Posted by saran_sai View Post
hai

thank u for ur reply . suppose i want to block n number of sites then i type each sites like this . its too hard. any other way pls help me.
Building a site list is the only way to do it. You can use wildcards, as the documentation states, to block ranges.

Quote:
and one more thing my client user remove proxy setting with out information. and they browse directly . is any idea once the client remove proxy then internet not working . is there any options in sqiud.conf file. pls tel me any suggestions.
That makes no sense. If you bypass Squid, you're not using it, so whatever options you put in don't apply.

The only way to make sure users are blocked, is to change your network, and make the only route out to the internet go through your proxy.
 
  


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
Squid 2.6 Reverse Proxy from Squid(3128) to OrginServer(80) Not working rraj Linux - Server 0 06-06-2008 03:29 PM
LDAP authentication for squid squid 2.6.STABLE16 release 2.fc8 farrukhndm Linux - Security 2 04-03-2008 02:57 AM
reatime or dns blacklist or blocklist how-to elfoozo Linux - Software 4 07-08-2006 02:17 AM
Protowall/Peer Guardian blocklist in linux? Ace2005 Linux - Security 3 11-26-2005 04:41 PM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration