tcpdump command to output to a dated filename all traffic not on port 22

This commit is contained in:
James H. Linder 2014-03-27 14:46:32 -04:00
parent c92c84e2df
commit 133a8cc13f

View File

@ -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
```