Created
October 20, 2023 10:28
-
-
Save aelias-eu/ac13fe24e47e7bb8ae419dddf10c0050 to your computer and use it in GitHub Desktop.
Live push tcpdump data from remote machine to local wireshark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requires sudo without password on the remote machine - at least for the "tcpdump command | |
``` | |
ssh {HOST} sudo tcpdump -U -s0 -w - -i eth0 'not port 22' | wireshark -k -i - | |
``` | |
e.g. for monitoring traffic on the router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment