On Tue, Jan 4, 2011 at 8:53 AM, Jostein Elvaker Haande <[email protected]>wrote:
> On 4 January 2011 13:53, Koray AGAYA <[email protected]> wrote: > > Hi, > > > > Can I add computers mac adresses ( squid logs ) is it possible ? > > > > > > Thank you for everything > > Seeing as I'm a bit on the generous side today, I actually took the > time to Google your question, and after spending two minutes skimming > through the results, I can't see that you can log the MAC address in > Squid. And to be honest, I would be surprised if it did. If you are so > dead set to get the MAC addresses, I think your only option is to make > a perl script that parses your Squid log files, and uses tools like > i.e proxy-arp to get the MAC address. > > As you can see from Squid's Log Format [1], the only thing logged is > the client address (read: IP address). > > [1] http://wiki.squid-cache.org/Features/LogFormat I have no idea where you would put this in pfSense, you might need to edit the package, but: *%<eui* EUI logging (EUI-48 / MAC address for IPv4, EUI-64 for IPv6) Both EUI forms are logged in the same field. Type can be identified by length or byte delimiter. http://www.squid-cache.org/Doc/config/logformat/
