LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squid: not to log access by a particular host (https://www.linuxquestions.org/questions/linux-software-2/squid-not-to-log-access-by-a-particular-host-429632/)

retiem 03-29-2006 08:53 AM

Squid: not to log access by a particular host
 
Hi folks,

is there any way to "tell" Squid to stop logging entries generated by a particular host? Say my LAN is 192.168.1.0/24, and I want to log web access from all hosts in my LAN, except from 192.168.1.47
Long time ago I remember reading it is possible to do it, but I haven't been able to find it now, even after some happy googling...

Thanks.

montel 06-15-2012 04:57 PM

I know this is really old, but thought I would comment for the next person who stumbles upon this.

In the /etc/squid/squid.conf file, type the following:

acl block_ip src 192.168.1.47

log_access deny block_ip

That should stop logging access from that IP through Squid.

retiem 06-15-2012 05:44 PM

Definitely good to know! Thanks a lot for sharing! :-)


All times are GMT -5. The time now is 09:59 PM.