LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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: Frankfurt, Germany
Distribution: Mint, Ubuntu, Knoppix, RHEL
Posts: 65

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: 18
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.
 
Old 06-15-2012, 05:44 PM   #3
retiem
Member
 
Registered: Jul 2003
Location: Frankfurt, Germany
Distribution: Mint, Ubuntu, Knoppix, RHEL
Posts: 65

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 04:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration