LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2009, 05:52 AM   #1
ZoGol
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Question Banned/Blocked sites log


Hello all,

Does any one know how to view the blocked sites log on squid, i mean to see who try to surf to banned sites.

Thanks in advance,


Thanks to all of you... i used
grep TCP_DENIED /var/log/squid > denied.log

Last edited by ZoGol; 09-16-2009 at 08:55 AM.
 
Old 09-16-2009, 06:29 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Quote:
Originally Posted by ZoGol View Post
Does any one know how to view the blocked sites log on squid, i mean to see who try to surf to banned sites.
Open the log file (usually /var/log/squid/access.log) with a text viewer/editor.
 
Old 09-16-2009, 06:30 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
/var/log/squid should have all the log.

access.log file there is the log file. You can view the log and find who accessed the banned sites.

Err. Not again. win32sux just beat me.
 
Old 09-16-2009, 06:39 AM   #4
Febi881
Member
 
Registered: Jun 2009
Location: India
Distribution: Fedora,Redhat
Posts: 111
Blog Entries: 1

Rep: Reputation: 17
Use sarg to view the squid log files. SARG is a squid log file processor with user friendly. you can integrate it with webmin and is easy to use. Other wise grep /var/log/squid/access.log file for TCP/DENIED.
 
  


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
blocked sites munna_dude Programming 2 05-23-2007 07:31 AM
Some sites blocked from only one machine jtmillard Linux - Networking 2 05-04-2007 04:57 PM
List of Banned Sites swmok General 6 10-05-2004 04:42 PM


All times are GMT -5. The time now is 05:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration