Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
temporary logging my whole lan traffic
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Lars
Apprentice
Apprentice


Joined: 06 Feb 2003
Posts: 171
Location: Germany, near baltic sea

PostPosted: Thu Feb 17, 2005 4:31 pm    Post subject: temporary logging my whole lan traffic Reply with quote

Hi all,
I would like to log my whole lan/internet traffic for an hour or two.

Is the follows ok?

Code:

iptables -A INPUT -j LOG -log-prefix "INPUT packs"
iptables -A FORWARD -j LOG -log-prefix "FORWARD packs"
iptables -A OUTPUT -j LOG -log-prefix "OUTPUT packs"


Or is there an other (ease) way.

Please beware me to say there comes too much data.
I have only an ISDN terminal adapter(ppp0) with 64kbit so my HD should be able to take all information without run out of memory. :wink:

Regards
Lars
_________________
Quote:
Alles was nicht einfach ist, ist entweder falsch oder zu kompliziert.

V.Glazounov
Back to top
View user's profile Send private message
padawan
n00b
n00b


Joined: 01 Jun 2002
Posts: 37
Location: California, USA

PostPosted: Thu Feb 17, 2005 10:44 pm    Post subject: Reply with quote

You can use tcpdump, which just captures all the traffic and dumps it to stdout, which you can redirect to a file. I don't know the specifics of how to use it, you'll have to check the man page.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum