LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-29-2003, 05:08 PM   #1
Spydr
LQ Newbie
 
Registered: Sep 2003
Posts: 8

Rep: Reputation: 0
Monitoring/Logging problems (iptables)


I was asked by the powers that be to set up some monitoring of our workplaces internet traffic. Basically a breakdown of the volume used and what protocol is using it. i.e. 20% mail, 30% web, 10% ftp, etc....
I have installed a RH9 box and installed it onto a hub that also has the internal interface of our router and the connection to our internal network. By my understanding this is the spot to "sniff" all traffic entering or leaving the internal network.

On the box I have iptables running using the following:

iptables -A INPUT -j LOG --log-level 7 --log-prefix '[MONITOR]'

I have also altered the syslog to send kern.* to a new log file.


Now all this seems to be working (sort of). If I compare the log to a tcpdump output the log is only capturing about 5%. On looking closer the log is only filing local and broadcast traffic. It is not recording any traffic from other hosts out. Perhaps I am using the wrong tool for the job or am just missing a step, something easy. Any help is greatly appreciated.

Oh I also tried setting the interface on the RH box via: ifconfig eth0 promisc
This seemed to increase the amount of traffic logged but makes all traffic appear to be for the local machine.


Thanks in advance.

Last edited by Spydr; 10-29-2003 at 05:12 PM.
 
Old 11-04-2003, 01:38 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Should Google around for "MRTG".
 
  


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
Some Iptables Problems, Plz Help tcheric Linux - Networking 2 09-06-2005 10:53 AM
Problems with Dual-Monitoring crack Linux - Hardware 2 10-11-2004 01:59 PM
apache monitoring problems- server-status?? lucastic Linux - Networking 0 08-10-2003 06:48 PM
DNS Problems with iptables dubman Linux - Networking 1 08-01-2003 11:41 AM
Problems with iptables Geo Linux - Networking 3 05-13-2003 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:43 PM.

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