LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-15-2006, 11:55 PM   #1
depam
Member
 
Registered: Sep 2005
Posts: 829

Rep: Reputation: 30
Squid NCSA


Hi Guys! I've successfuly installed Squid on one of my servers. I am using ncsa authentications to allow certain users to use the proxy. Now, my problem is that I do have website blocking. After the user was authenticated by squid, all the restricted sites is now accessible. How can I make a rule in such a way that even after the users have authenticated themselves, some websites are still restricted.

Another thing, how can I setup a rule forwarding a blocked wesite to our website?
 
Old 03-16-2006, 12:05 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It depends on the ordering of the rules. If I had a rule called blocksex blocking URLs and another rule called internet that did the authentication of users, I'd have it in my squid.conf file in the following order:
Code:
acl blocksex dstdom_regex -i sex
acl internet proxy_auth REQUIRED
http_access deny blocksex
http_access allow internet
P.S. Don't assume anything from the blocksex rule - I don't mind how much sex you browse
 
Old 03-16-2006, 02:59 AM   #3
depam
Member
 
Registered: Sep 2005
Posts: 829

Original Poster
Rep: Reputation: 30
Okay thanks..How about the forwarding feature? Is that possible? For example, if I visited www.yahoo.com, I will be then forwarded to www.google.com.
 
Old 03-16-2006, 07:20 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It's definitely possible. The Squid redirectors FAQ at http://www.squid-cache.org/Doc/FAQ/FAQ-15.html has some info on this. I've never had to do it so I won't pretend to know how reliable (or easy) it is...
 
Old 03-16-2006, 08:05 AM   #5
depam
Member
 
Registered: Sep 2005
Posts: 829

Original Poster
Rep: Reputation: 30
Okay thanks. I'll give it a try although I'm not good at scripts. I heard there is also a package named squidguard which can makes squid administration easier.
 
Old 03-16-2006, 02:02 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Yes there is - I don't know whether it's being actively maintained anymore since the site at http://www.squidguard.org/ hasn't been updated since 2001.
 
  


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
NCSA authentication goes off Sleen Linux - General 0 10-06-2005 05:41 AM
squid ncsa authentication thillaii Linux - Networking 0 05-06-2005 04:04 AM
squid ncsa authentication jgnasser Linux - Networking 3 01-20-2005 10:40 AM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 03:29 PM
Squid Authentication Modules NCSA ahmerali Linux - Software 0 10-28-2003 04:57 AM


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