tcpdump
                Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tcpdump [2016/06/17 14:36] – created luke7858 | tcpdump [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| TCP dump is used to create DUMPs of network traffic. This information can then be used to troubleshoot a range of problems you may be having, eg, application issues, networking issues etc. | TCP dump is used to create DUMPs of network traffic. This information can then be used to troubleshoot a range of problems you may be having, eg, application issues, networking issues etc. | ||
| \\ | \\ | ||
| + | __**Note**__: | ||
| \\ | \\ | ||
| - | ^ Flag ^ Description ^ | + | \\ | 
| - | | -A  | Print each packet | + | == Common Examples == | 
| - | | -n | Don't convert host addresses to names. This can be used to avoid DNS lookups. | | + | In the following example | 
| - | | -nn | Don't convert protocol and port numbers etc. to names either. | | + | \\ | 
| - | | -w | Write the raw packets to file rather than parsing and printing them out | | + | > Replace **// | 
| - | | -i | Interface | | + | > Replace **//y.y.y.y//** with the source IP. Example, server you are connecting FROM | 
| - | | src | Only capture source information | | + | <sxh bash> | 
| - | | -t | NO time stamp - might be easier to read | | + | tcpdump | 
| - | | -vvv| Even more verbose output. For example, telnet SB ... SE options are printed in full. With -X Telnet options are printed in hex as well. | | + | </ | 
| \\ | \\ | ||
| \\ | \\ | ||
| - | == Examples == | ||
| Description: | Description: | ||
| Line 25: | Line 26: | ||
| IP x.x.x.190.26753 > x.x.x.129.443: | IP x.x.x.190.26753 > x.x.x.129.443: | ||
| </ | </ | ||
| + | \\ | ||
| + | \\ | ||
| Description: | Description: | ||
| <sxh bash> | <sxh bash> | ||
| Line 52: | Line 55: | ||
| 195.154.211.129.50684 > 82.94.168.11.443: | 195.154.211.129.50684 > 82.94.168.11.443: | ||
| </ | </ | ||
| + | \\ | ||
| + | \\ | ||
| + | ^ Flag ^ Description ^ | ||
| + | | -A  | Print each packet (minus its link level header) in ASCII. | ||
| + | | -n  | Don't convert host addresses to names. | ||
| + | | -nn | Don't convert protocol and port numbers etc. to names either. | | ||
| + | | -w | Write the raw packets to file rather than parsing and printing them out | | ||
| + | | -i | Interface | | ||
| + | | src | Only capture information from a source (eg, src host x.x.x.x )| | ||
| + | | dst | Only capture traffic to destination address (a server could have multiple IPs, so you can specify) | | ||
| + | | -t | NO time stamp - might be easier to read | | ||
| + | | -vvv| Even more verbose output. | ||
tcpdump.1466174164.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
                
                