LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-29-2006, 08:53 AM   #1
retiem
Member
 
Registered: Jul 2003
Location: Hamburg, Germany
Distribution: KDE neon, Ubuntu server
Posts: 80

Rep: Reputation: 15
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.
 
Old 06-15-2012, 04:57 PM   #2
montel
Member
 
Registered: Jun 2012
Location: Canada
Distribution: Ubuntu/Debian/CentOS
Posts: 45

Rep: Reputation: 19
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.
 
1 members found this post helpful.
Old 06-15-2012, 05:44 PM   #3
retiem
Member
 
Registered: Jul 2003
Location: Hamburg, Germany
Distribution: KDE neon, Ubuntu server
Posts: 80

Original Poster
Rep: Reputation: 15
Definitely good to know! Thanks a lot for sharing! :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
website access log - through Squid tsaravan Linux - Networking 4 02-05-2006 09:08 AM
trouble with squid access.log mephitic Linux - Software 0 11-02-2004 11:03 AM
Variables for Squid Access Log mephitic Linux - Software 2 07-29-2004 05:16 PM
My squid won't fill /var/log/squid/access.log linuxlah Linux - General 5 10-06-2003 10:51 PM
Squid access.log files davebarnes Linux - Networking 1 10-27-2002 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration