mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 14:46:04 +02:00
Adding tcpdump page
This commit is contained in:
parent
1701905cfa
commit
4d6bafae92
1 changed files with 24 additions and 0 deletions
24
common/tcpdump.md
Normal file
24
common/tcpdump.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# tcpdump
|
||||
|
||||
> Dump traffic on a network
|
||||
|
||||
- capture the traffic of a specific interface
|
||||
|
||||
`tcpdump -i {{eth0}}`
|
||||
|
||||
- capture all TCP traffic showing contents (ASCII) in console
|
||||
|
||||
`tcpdump -A tcp`
|
||||
|
||||
- capture the traffic from or to a host
|
||||
|
||||
`tcpdump host www.example.com`
|
||||
|
||||
- capture the traffic from a specific interface, source, destination and port
|
||||
|
||||
`tcpdump -i {{eth0}} src {{192.168.1.1}} dest {{192.168.1.2}} and port 80`
|
||||
|
||||
- capture the traffic of a network
|
||||
|
||||
`tcpdump net {{192.168.1.0/24}}`
|
||||
|
Loading…
Add table
Reference in a new issue