Re: [squid-users] help with MAC logging patch

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Fri, 06 Oct 2006 21:11:57 +0200

fre 2006-10-06 klockan 12:52 -0500 skrev Charles Flynn:

> I'm working on a project that needs to identify clients by MAC
> address. For this project, we can assume that squid will sit on the
> same subnet as the clients. I've looked through the mail archives and
> have seen the question about logging MACs asked several times, but
> there seems to be no patch available to make it happen. Does anyone
> know if a patch exists?

I haven't seen one. If I had it would quite likely had got merged in the
Squid-2.6 mega patch merge release..

> If not, I'm interested in writing such a
> patch, and would very much like to get any tips, suggestions etc to
> help me get started.

The code getting the MAC is currently in the acl code. This should get
moved and associate the MAC with the client connection instead, in many
ways similar to how clientNatLookup associates the original destination
with the client connection in transparent proxy setups.

Then the logging needs to be extended to pass the MAC address along.

You are welcome to post on squid-dev to discuss the fine details. Or
join the IRC channel #squiddev on irc.freenode.net (most of the time
there is some Squid developer awake there..)

Regards
Henrik

Received on Fri Oct 06 2006 - 13:12:06 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST