pfSense: Exclude an IP out of your Squid3 log

Leave a comment

July 29, 2015 by aubreykloppers

ref1: Squid “access_log” Documentation
ref2: Squid 3.0 Configuration Manual

How to successfully exclude an IP out of your Squid log

If you ever get to read the ref1 as set out above, you will see that according to the official documentation it should be as easy as writing an ACL and excluding it (As it used to work in Squid version 2+), but, it seems something broke within pfSense.

The fix in pfSense

    • go to “Services/Proxy Server/Logging Settings”
    • un-select “Enable Logging”
    • goto “Services/Proxy Server/Custom ACLS (Before_Auth)”
    • add:

acl ACLNAME src
logfile_rotate 3650
debug_options rotate=3650
access_log /var/squid/log/access.log squid !ACLNAME

  • Save and restart squid.

That should fix the problem.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

counter for wordpress
%d bloggers like this: