LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-05-2005, 01:49 AM   #1
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Rep: Reputation: 36
Basic traffic logging


I've been interested in logging internet traffic continually at my gateway server. I've come across a program called 'ifstat' that shows traffic in kb/sec for each network interface at 1sec (default) intervals.

This displays a running table of (for me) eth0 and eth1 inteface traffic both in and out (pretty cool, and looks very accurate).

So ive started this program to run in the background, with output to a log file:

ifstat -tq > /var/log/ifstat.log &

I logged out of the server and checked back later, and sure enough it was still running and the logfile was exactly as I expected. This would allow me to monitor my own usage, as well as to check for any unusual stuff. Granted, i'd not know anything about the nature of the traffic but it would help to identify weird stuff occuring when im not actually using the internet.

My questions are:

1) might there be a better way, a better tool to do this? Im running an old pc for the gatway and it is headless without any GUI.

2) Is there a better way to run 'ifstat' - ie. the command that i use to start it is pretty simple. How would one normally run something like this in the best way...?

Thanks!
 
Old 10-05-2005, 07:48 AM   #2
moutaye
LQ Newbie
 
Registered: Aug 2005
Posts: 28

Rep: Reputation: 15
don't know of ifstat but you might use the built-in command "tcpdump". This one really "dumps" the traffic as stated so it's not very accurate.

Ever heard of Ethereal ? This one is great for it truly capture every single frame and details it. The only thing is that the captured file is dynamic, that means that you need Ethereal viewer to use it plus since they detail every frame the capture are quite heavy in terms of size.

Hope this helps,

Cheers
 
Old 10-05-2005, 06:54 PM   #3
Krugger
Member
 
Registered: Oct 2004
Posts: 229

Rep: Reputation: 30
You could be thinking about SNORT. A nice IDS, which will keep an eye on who is trying to hack your box. The only problem is that your are going to get a lot of warning so you need to edit the config files or it will fill your disk pretty quick.
 
Old 10-06-2005, 06:58 PM   #4
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Original Poster
Rep: Reputation: 36
Thanks for the replies ...
 
  


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
Logging All Incoming / Outbound Traffic technick Linux - Security 1 10-24-2005 02:32 PM
Iptables, traffic logging burn0ut Linux - Networking 4 12-11-2004 04:08 AM
logging traffic of specific ports Bug Linux - Security 1 06-15-2004 08:26 AM
snort logging all outbound traffic as port-scan? Pcghost Linux - Security 3 04-20-2004 01:12 PM
Logging Traffic Equis Linux - Networking 0 03-09-2004 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:09 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