This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

capture tcpdump on my server

0

I have installed Tcpdump on my RPI and placed the RPI between my router and server, i want to capture ip add. there is connecting and what files they are getting access to and ofc with a timestamp-

But i can figure out what flags i have to use ? right know i am running

tcpdump -I br0

and i really need it to be readable by a human :D

asked 02 Jan '15, 16:31

notaduck's gravatar image

notaduck
11112
accept rate: 0%


One Answer:

2

I assume by 'RPI' you mean a Raspberry Pi (apparently) in bridged mode. If that's the case, you can can indeed use tcpdump to capture the traffic on the Pi. However I suggest to do the analysis with Wireshark, as it has more and better dissectors than tcpdump AND this is the Wireshark Q&A site ;-)

tcpdump -ni br0 -s0 -w /var/tmp/br0_frames.pcap

After you have finished capturing, copy /var/tmp/br0_frames.pcap with scp or WinSCP to a system where you have Wireshark installed and open the file with Wireshark.

and i really need it to be readable by a human :D

If you understand what Wireshark will show you, depends on your knowledge of networking protocols. If you don't have that knowledge there is nothing Wireshark can do for you. Then you should look at the following resources.

Books:

There obviously other books about networking. google will help: 'books networking'.

Online resources:

There are also some video tutorials about Wireshark on Youtube http://www.youtube.com/results?search_query=wireshark tutorial - Hint: Please open the link in a separate browser window/tab manually, if clicking the link in your browser does not work).

Regards
Kurt

answered 04 Jan '15, 02:55

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 04 Jan '15, 02:57

Somewhat off topic: As a Raspberry Pi user you may be aware of the fact that the SD card may not be the ideal storage for your capture file. You could mount a USB disk (on /media for instance) and write your capture file there.

(05 Jan '15, 08:40) Jaap ♦