Tcpdump on Raspberry Pi 5 HAOS

Hi!
I am trying to do a tcpdump on my HAOS/Raspberry Pi5


I did these commands:
[core-ssh ~]$ apk
[core-ssh ~]$ apk add tcpdump
(1/2) Installing libpcap (1.10.4-r1)
(2/2) Installing tcpdump (4.99.4-r1)
Executing busybox-1.36.1-r15.trigger
OK: 108 MiB in 103 packages
[core-ssh ~]$

What do I do to do a tcpdump on the HA-interface end0 192.168.2.12?

I think your ssh session is on the ha docker container only. This limits the visibility of ethernet devices and thus the options to log traffic.

What exactly are you trying to achieve?

If you want to dump the network traffic on hassio level / on rp5 level you will have to go at least one level deeper, e.g. by installing the enhanced ssh addon.

Otherwise you will only be able to see the network traffic from the homeassistant container which might not be what you are after…

Dan

1 Like

I am trying to achieve a tcpdump on interface end0 so I can dump network traffic. Thanks Dan for setting me on the right track. I installed “Advanced SSH & Web terminal” instead of the ordinary “terminal & SSH”.
Then I did command “apk update” and “apk add tcpdump” and now I can tcpdump on end0 with command “tcpdump -i end0”.
Many thanks for the tip Dan!