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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...