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
Sorry, does not work.
"localhost# ssh remotehost cat /tmp/tcpdump | wireshark -ki -" opens wireshark, but does not CAT the remotefile, as it seems like it does not even login to the remote host, as no password is asked. When entering "localhost# ssh remotehost cat /tmp/tcpdump" I'm asked for the password and see the dump, but no wireshark.