RE: [squid-users] ACL to match arbitrary reply header, in-memory fastauthentication

This is a discussion on RE: [squid-users] ACL to match arbitrary reply header, in-memory fastauthentication within the Squid Users forums, part of the Web Server and Related Forums category; > I am using Dansguardian to determine if something is porn, and > I modified it to set a header (...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-05-2003
Adam Aube
 
Posts: n/a
Default RE: [squid-users] ACL to match arbitrary reply header, in-memory fastauthentication

> I am using Dansguardian to determine if something is porn, and
> I modified it to set a header (X-Naughty and X-Naughty-Why)
> so that the page would still go through, but squid should be
> able to identify it as naughty.


> The way I envision it working is, people can browse freely and
> unlogged until they get a page that dansguardian blocks, at
> which time they are sent to a login page (probably php here)
> that authenticates them to the network (using whatever method
> your network uses), then sends the username/ip pair to squid
> and is put in the struct.


If you're willing to sacrifice transparent proxying (replace with
auto-config script) and have found a way to match that header
with a Squid acl, you could save yourself some major work.

1) Setup an acl that matches the header

acl Naughty ...

2) Setup basic authentication by NCSA, LDAP, or whatever

auth_param basic ...
acl Login proxy_auth REQUIRED

3) Setup your http_access like this:

http_access allow !Naughty
http_access allow Naughty Login

It will only prompt for authentication for Naughty sites. You can
then filter the logs looking for an entry (instead of -)in the user
field.

Adam
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/2001

Reply With Quote
Reply


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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:50 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0