LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2003, 12:51 PM   #1
EL3CTRO
LQ Newbie
 
Registered: Dec 2002
Location: Hampshire, England
Distribution: Red Hat 7.3
Posts: 13

Rep: Reputation: 0
Monitoring traffic on ports..


I was just wondering, is there a command in linux that would show me how many MB's have been transferred to and from a certain port? Preferably on a monthly basis.
 
Old 07-16-2003, 12:56 PM   #2
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
heh start logging traffic and write a perl script
 
Old 07-16-2003, 02:52 PM   #3
EL3CTRO
LQ Newbie
 
Registered: Dec 2002
Location: Hampshire, England
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Ok, considering that having asked a question like that, it would be a reasonable guess that

1. I have no clue how to log traffic
2. I can't program in perl

Now can someone give me a useful answer?
 
Old 07-16-2003, 04:18 PM   #4
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
iptables -L -v will tell you how many packets and the bytes that where transfered. but you have to have a rule in place first. Example of tracking all tcp traffic coming in on port 80.

iptables -A INPUT -i eth0 --dport 80 -j ACCEPT
 
Old 07-16-2003, 06:51 PM   #5
seabass55
Member
 
Registered: Jan 2003
Location: 127.0.0.1
Distribution: Fedora&Gentoo
Posts: 207

Rep: Reputation: 30
you can try iptraf
 
  


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
Monitoring LAN Traffic prov3.6 Linux - Networking 5 09-19-2005 04:53 PM
Traffic monitoring and limiting AlexJ Linux - Networking 2 04-14-2005 09:28 AM
Monitoring traffic? orange400 Linux - Networking 2 06-19-2004 07:32 AM
Network Traffic Monitoring jbstew32 Linux - Networking 6 05-26-2004 02:23 PM
Network traffic monitoring ?? TechnoBod Linux - Networking 1 02-10-2003 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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