mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 15:15:28 +02:00
tcpdump command to output to a dated filename all traffic not on port 22
This commit is contained in:
parent
c92c84e2df
commit
133a8cc13f
1 changed files with 5 additions and 0 deletions
|
@ -22,3 +22,8 @@
|
|||
|
||||
`tcpdump net {{192.168.1.0/24}}`
|
||||
|
||||
- capture all traffic except traffic over port 22 and save to a dump file with today's date
|
||||
|
||||
```
|
||||
tcpdump -w dumpfile.`date +%Y.%m.%d-%H.%M`.pcap not port 22
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue