ngrep
Filter network traffic packets using
regex. More information: https://github.com/jpr5/ngrep/blob/master/EXAMPLES.md.
- Capture traffic of all interfaces:
ngrep -d any
- Capture traffic of a specific interface:
ngrep -d
- Capture traffic crossing port 22 of interface eth0:
ngrep -d port 22
- Capture traffic from or to a host:
ngrep host
- Filter keyword 'User-Agent:' of interface eth0:
ngrep -d eth0 'User-Agent:'
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
