Jump to content

recording traffic


Urza9814
 Share

Recommended Posts

Is there any easy way to record or view all the traffic to and from my computer (including traffice blocked by the firewall if possible) for about 10 seconds? Main thing I'm looking for is how much traffic and to what IP addresses. Port numbers would be nice too.

Link to comment
Share on other sites

Is there any easy way to record or view all the traffic to and from my computer (including traffice blocked by the firewall if possible) for about 10 seconds? Main thing I'm looking for is how much traffic and to what IP addresses. Port numbers would be nice too.

 

tcpdump is the tool you need, with possibly ethereal too.

 

'urpmi tcpdump'

'urpmi ethereal'

 

'tcpdump -i eth0' will show you the traffic on your eth0 interface - you can dump this to a file for later examination, see 'man tcpdump' for the full gory details.

 

Edited to add:

If you need to see what your firewall is blocking, you'll probably need to look at the firewall logs seperately, assuming you mean a hardware firewall external to your main computer.

Edited by Phil Edwards
Link to comment
Share on other sites

Ah, that's what I needed. And by firewall I meant software, not hardware. My hardware firewall is my router, and I was trying this to figure out what's causing the logs on it. It doesn't give near enough info.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...