Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tshark capture local traffic outgoing TCP or UDP traffic with host resolution
tshark -c 50 -NnNC -E header=y -Tfields -e col.Protocol -e ip.dst -e ip.dst_host -e tcp.dstport -e udp.dstport -f "host $(hostname --ip-address) and (tcp or udp) and not (port 53)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.