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 10.0.0.10-10.0.0.11/32
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 comment

counter for wordpress