View previous topic :: View next topic |
Author |
Message |
Lars Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/126650112842010192255b6.gif)
Joined: 06 Feb 2003 Posts: 171 Location: Germany, near baltic sea
|
Posted: Thu Feb 17, 2005 4:31 pm Post subject: temporary logging my whole lan traffic |
|
|
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.
Regards
Lars _________________
Quote: | Alles was nicht einfach ist, ist entweder falsch oder zu kompliziert. |
V.Glazounov |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
padawan n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_obi-wan_kenobi.gif)
Joined: 01 Jun 2002 Posts: 37 Location: California, USA
|
Posted: Thu Feb 17, 2005 10:44 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|