Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Servers
Reload this Page Squid whitelist
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Servers Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Reply
 
Thread Tools Display Modes
Old 07-05-2007   #1 (permalink)
reemster
Just Joined!
 
Join Date: Jul 2007
Posts: 1
Squid whitelist

Hello guys,

I have a question. i have a linux server with squid. And i want to whitelist some pages.. and for the other internet pages (what not listed in a whitelist) i want a authorization screen.. i have already done the authorization with ncsa_auth.. and it works fine, but now he blocks all internet pages (urls) and i just want to block only the not whitelisted pages (urls) is this possible?

if so, how can i setup this in the squid.conf with ACL commands?
reemster is offline   Reply With Quote
Old 07-17-2007   #2 (permalink)
Sachinpurohit
Just Joined!
 
Join Date: Jul 2007
Location: Mumbai, India
Posts: 7
Send a message via Skype™ to Sachinpurohit
Hello reemster,

IMHO no authentication for some sites and authentication for others does not seem to be possible. But there are a couple of methods that you can try.

1. proxy.pac
Proxy.pac can be used to bypass the proxy for a few sites (white list). For other sites they go through the proxy, and are authenticated.
Automatically Configure Browsers for Proxy

But this method may not be feasible if your white list is huge.

2. Multi Instances of proxy
I don't know much about Squid, but I have used the free version of SafeSquid - Content Filtering Internet Proxy extensively, and this is how you can precisely achieve your goal with SafeSquid:

You can run two instances of SafeSquid, listening on same IP but different ports, e.g. 192.168.0.1:8080 and 192.168.0.1:8081
On the instance that is set as proxy for the users (e.g. 192.168.0.1:8080), you do not do any authentication. In this instance, you create a profile e.g. 'No_Auth_sites' and define the sites that you want to white list. You configure 'URL Filter' to allow access to the profile 'No-Auth-Sites' ONLY. For all other sites, you use 'URL Redirect' to forward the request to the second instance (192.168.0.1:8081). You configure the second instance to authenticate users.

Now, all requests that are for the white listed websites, are served by Proxy1 directly, without authentication. All other requests are forwarded to Proxy2, which will authenticate the users, before serving their requests.

Simple, is it not? I think you can do the same with Squid.

Regards,
Sachin Purohit.
Sachinpurohit is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Logging shacall Servers 0 06-17-2006 03:50 AM
Squidguard omrebel Servers 5 03-30-2005 04:01 PM
Help on my squid.conf in FC3 nisad Redhat / Fedora Linux Help 1 03-26-2005 03:56 PM
Help on my squid.conf in FC3 nisad Servers 0 03-26-2005 05:36 AM
Squid does not start AlexPal Redhat / Fedora Linux Help 2 02-09-2005 02:51 AM




All times are GMT. The time now is 09:16 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0