mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 11:33:33 +02:00
ngrep: add page (#930)
* ngrep: add page * ngrep: update command * ngrep: update syntax
This commit is contained in:
parent
e0d884efeb
commit
34aec29c08
1 changed files with 23 additions and 0 deletions
23
pages/common/ngrep.md
Normal file
23
pages/common/ngrep.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# ngrep
|
||||
|
||||
> Filter network traffic packets using regular expressions.
|
||||
|
||||
- Capture traffic of all interfaces:
|
||||
|
||||
`ngrep -d any`
|
||||
|
||||
- Capture traffic of a specific interface:
|
||||
|
||||
`ngrep -d {{eth0}}`
|
||||
|
||||
- Capture traffic crossing port 22 of interface eth0:
|
||||
|
||||
`ngrep -d {{eth0}} port {{22}}`
|
||||
|
||||
- Capture traffic from or to a host:
|
||||
|
||||
`ngrep host {{www.example.com}}`
|
||||
|
||||
- Filter keyword 'User-Agent:' of interface eth0:
|
||||
|
||||
`ngrep -d {{eth0}} '{{User-Agent:}}'`
|
Loading…
Add table
Reference in a new issue