<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Useful_TCPDUMP_commands</id>
		<title>Useful TCPDUMP commands - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Useful_TCPDUMP_commands"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Useful_TCPDUMP_commands&amp;action=history"/>
		<updated>2026-06-04T09:59:27Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Useful_TCPDUMP_commands&amp;diff=758&amp;oldid=prev</id>
		<title>Brian at 12:36, 18 June 2014</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Useful_TCPDUMP_commands&amp;diff=758&amp;oldid=prev"/>
				<updated>2014-06-18T12:36:05Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:36, 18 June 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Check to see if a specific client is connecting to MySQL over port 3306&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Check to see if a specific client is connecting to MySQL over port 3306&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; tcpdump -i any -s 0 -l -w &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;- &lt;/del&gt;dest port 3306 and src host 192.168.1.1&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; tcpdump -i any -s 0 -l -w dest port 3306 and src host 192.168.1.1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key briansne_wiki-wiki_:diff:version:1.11a:oldid:748:newid:758 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Useful_TCPDUMP_commands&amp;diff=748&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==Useful TCPDUMP commands for debugging==  I have only found a few times that I needed to use tcpdump, most of them are for firewall issues.  ===Basic TCPDUMP commands===  Che...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Useful_TCPDUMP_commands&amp;diff=748&amp;oldid=prev"/>
				<updated>2014-06-15T16:21:28Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Useful TCPDUMP commands for debugging==  I have only found a few times that I needed to use tcpdump, most of them are for firewall issues.  ===Basic TCPDUMP commands===  Che...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Useful TCPDUMP commands for debugging==&lt;br /&gt;
&lt;br /&gt;
I have only found a few times that I needed to use tcpdump, most of them are for firewall issues.&lt;br /&gt;
&lt;br /&gt;
===Basic TCPDUMP commands===&lt;br /&gt;
&lt;br /&gt;
Checking to see what interfaces we can use with tcpdump&lt;br /&gt;
&lt;br /&gt;
 tcpdump -D&lt;br /&gt;
&lt;br /&gt;
Listen to all traffic coming in over a specific interfacae&lt;br /&gt;
&lt;br /&gt;
 tcpdump -i eth0&lt;br /&gt;
&lt;br /&gt;
&amp;lt;sub&amp;gt;*note the -i stands for interface&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Listen to all traffic on all interfaces&lt;br /&gt;
&lt;br /&gt;
 tcpdump -i any&lt;br /&gt;
&lt;br /&gt;
At this point you will notice there is alot of information going to and from your computer.&lt;br /&gt;
&lt;br /&gt;
===There are 4 settings when it comes to verbose information(verbose, more verbose, very verbose, less verbose)===&lt;br /&gt;
&lt;br /&gt;
Verbose&lt;br /&gt;
&lt;br /&gt;
 tcpdump -v&lt;br /&gt;
&lt;br /&gt;
More Verbose &lt;br /&gt;
&lt;br /&gt;
 tcpdump -vv&lt;br /&gt;
&lt;br /&gt;
Oddly enough Very verbose&lt;br /&gt;
&lt;br /&gt;
 tcpdump -vvv&lt;br /&gt;
&lt;br /&gt;
Less verbose mean less then the default &lt;br /&gt;
&lt;br /&gt;
 tcpdump -q&lt;br /&gt;
&lt;br /&gt;
Say you want to dispaly ipaddress and ports vers domains and service ports&lt;br /&gt;
&lt;br /&gt;
 tcpdump -n&lt;br /&gt;
&lt;br /&gt;
===More fun tcpdump combinations===&lt;br /&gt;
&lt;br /&gt;
Capture all bytes of data within the packet:&lt;br /&gt;
&lt;br /&gt;
 tcpdump -s 0&lt;br /&gt;
&lt;br /&gt;
Capture 500 bytes of data for each packet rather than the default of 68 bytes:&lt;br /&gt;
 tcpdump -s 500&lt;br /&gt;
&lt;br /&gt;
Capture any packets where the destination host is 192.168.1.1. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n dst host 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
Capture any packets where the source host is 192.168.1.1. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n src host 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
Capture any packets where the source or destination host is 192.168.1.1. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n host 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
Capture any packets where the destination network is 192.168.1.0/24. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n dst net 192.168.1.0/24&lt;br /&gt;
&lt;br /&gt;
Capture any packets where the source network is 192.168.1.0/24. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n src net 192.168.1.0/24&lt;br /&gt;
&lt;br /&gt;
Capture any packets where the source or destination network is 192.168.1.0/24. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n net 192.168.1.0/24&lt;br /&gt;
&lt;br /&gt;
Capture any packets where the destination port is 23. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n dst port 23&lt;br /&gt;
&lt;br /&gt;
Capture any packets where the destination port is is between 1 and 1023 inclusive. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n dst portrange 1-1023&lt;br /&gt;
&lt;br /&gt;
Capture only TCP packets where the destination port is is between 1 and 1023 inclusive. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n tcp dst portrange 1-1023&lt;br /&gt;
&lt;br /&gt;
Capture only UDP packets where the destination port is is between 1 and 1023 inclusive. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n udp dst portrange 1-1023&lt;br /&gt;
&lt;br /&gt;
Capture any packets with destination IP 192.168.1.1 and destination port 23. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n &amp;quot;dst host 192.168.1.1 and dst port 23&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Capture any packets with destination IP 192.168.1.1 and destination port 80 or 443. Display IP addresses and port numbers:&lt;br /&gt;
 tcpdump -n &amp;quot;dst host 192.168.1.1 and (dst port 80 or dst port 443)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Capture any ICMP packets:&lt;br /&gt;
 tcpdump -v icmp&lt;br /&gt;
&lt;br /&gt;
Capture any ARP packets:&lt;br /&gt;
 tcpdump -v arp&lt;br /&gt;
&lt;br /&gt;
Capture either ICMP or ARP packets:&lt;br /&gt;
 tcpdump -v &amp;quot;icmp or arp&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Capture any packets that are broadcast or multicast:&lt;br /&gt;
 tcpdump -n &amp;quot;broadcast or multicast&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Check to see if a specific client is connecting to MySQL over port 3306&lt;br /&gt;
&lt;br /&gt;
 tcpdump -i any -s 0 -l -w - dest port 3306 and src host 192.168.1.1&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>