Tcpdump: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tag: wikieditor
Tony (talk | contribs)
mNo edit summary
Tag: wikieditor
Line 11: Line 11:
  tcpdump -lnX
  tcpdump -lnX


 
==tcpdump filtering==
==look for host and port==
===look for host and port===
  tcpdump -i ens192 host 192.168.101.3 and tcp port 993
  tcpdump -i ens192 host 192.168.101.3 and tcp port 993



Revision as of 09:48, 1 March 2025

Docs

Tools

  • wireshark

FAQ

human readable output

tcpdump -lnX

tcpdump filtering

look for host and port

tcpdump -i ens192 host 192.168.101.3 and tcp port 993


Try adding interface (-i)


tcpdump: Mask syntax for networks only

To match a subnet use net instead of host