[squid-users] skip IPs from log

Timur Lagutenko timur.lagutenko at gmail.com
Wed Oct 24 10:55:30 UTC 2018


hello dear friends

i would like to configure squid to skip some dst IPs from access.log.
for example:

# this contains IP ranges in CIDR format
acl goodip dst "/usr/local/etc/squid/goodip.txt"
always_direct allow all
cache deny all
access_log daemon:/var/log/squid/access.tj.log squid goodip
access_log daemon:/var/log/squid/access.log squid all !goodip


cat /usr/local/etc/squid/goodip.txt
5.59.96.0/24
37.98.152.0/21
46.20.192.0/20
*217.11.176.0/20 <http://217.11.176.0/20>*
....

unfortunately i still see some records in log
cat /var/log/squid/access.log
...
1540376534.310 519635 192.168.0.60 TCP_MISS/206 44040582 GET
http://upload.mix.tj/video/7/36/5bcec0355a2ab.mp4 - HIER_DIRECT/
*217.11.180.56* video/mp4
1540376595.811  44046 192.168.0.60 TCP_MISS/206 44040588 GET
http://upload.mix.tj/video/7/36/5bcec0355a2ab.mp4 - HIER_DIRECT/
*217.11.180.56* video/mp4
1540376643.381 252904 192.168.10.166 TCP_MISS/206 33025947 GET
http://cloudflare.mix.tj/video/6/10/590ffae3d7601.mp4 - HIER_DIRECT/
*217.11.180.50* video/mp4
...

please advise
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20181024/8b03c72e/attachment.html>


More information about the squid-users mailing list