If you have tcpdump
on your embedded home router and you want to see what traffic your crippled phone
is doing, you can dump traffic on the router and visualise it on your main workstation using wireshark.
Ensure that you can log on to the remote host without a password, e.g. by using SSH keys.
- On the remote host, create a FIFO
remotehost# mkfifo /tmp/tcpdump
- On the local host, ssh to the remote and start reading from the FIFO, and pipe its contents straight to wireshark.
localhost# ssh remotehost cat /tmp/tcpdump | wireshark -ki -
- On the remote host, start capturing and write to the FIFO. Of course replace the capture interface and/or add a capture filter as needed.
remotehost# tcpdump -s0 -Uni eth0 -vvv -w /tmp/tcpdump
Enjoy
Glad to hear it! Cheers!