<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>langui.sh &#187; wireshark</title>
	<atom:link href="http://langui.sh/tag/wireshark/feed/" rel="self" type="application/rss+xml" />
	<link>http://langui.sh</link>
	<description>Fun hacks, WP plugins, photography, and PKI junk.  Languishing since 2008.</description>
	<lastBuildDate>Tue, 17 Jan 2012 20:23:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>No Interfaces Available In Wireshark Mac OS X</title>
		<link>http://langui.sh/2010/01/31/no-interfaces-available-in-wireshark-mac-os-x/</link>
		<comments>http://langui.sh/2010/01/31/no-interfaces-available-in-wireshark-mac-os-x/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 22:36:11 +0000</pubDate>
		<dc:creator>Paul Kehrer</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://langui.sh/?p=1082</guid>
		<description><![CDATA[<a href="http://langui.sh/2010/01/31/no-interfaces-available-in-wireshark-mac-os-x/" title="No Interfaces Available In Wireshark Mac OS X"></a>Many new Wireshark users on Mac OS X run into an issue where no interfaces show up when trying to begin packet capture. If you attempt to manually input an interface (such as en0) this error will occur: The capture &#8230;<p class="read-more"><a href="http://langui.sh/2010/01/31/no-interfaces-available-in-wireshark-mac-os-x/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://langui.sh/2010/01/31/no-interfaces-available-in-wireshark-mac-os-x/" title="No Interfaces Available In Wireshark Mac OS X"></a><p>Many new Wireshark users on Mac OS X run into an issue where no interfaces show up when trying to begin packet capture.  If you attempt to manually input an interface (such as en0) this error will occur:</p>
<blockquote><p> The capture session could not be initiated ((no devices found) /dev/bpf0: Permission denied).</p></blockquote>
<p>To have the interfaces show up properly you&#8217;ll need to widen the permissions on the Berkeley packet filter (BPF).  By default they look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">crw-------  <span style="color: #000000;">1</span> root  wheel   <span style="color: #000000;">23</span>,   <span style="color: #000000;">0</span> Jan <span style="color: #000000;">31</span> <span style="color: #000000;">13</span>:<span style="color: #000000;">47</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>bpf0</pre></div></div>

<p>We need the filter to be readable by non-root, so open Terminal.app and run this command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">644</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>bpf<span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p>Unfortunately every time you reboot this will reset, but if you are a frequent user of Wireshark you can add the ChmodBPF StartupItem to alter them automatically (available in the Utilities folder on the Wireshark disk image).  To install you&#8217;ll need to follow two steps.</p>
<p>First, drag the ChmodBPF folder to the StartupItems alias in the same folder (or drag it to /Library/StartupItems directly).  Type your password to authenticate and move the folder into the correct location.</p>
<p>The second requirement is only for 10.6+ users.  Starting with Snow Leopard the security permissions of StartupItems are being enforced.  Scripts that do not have the proper owner and group will receive this error:</p>
<blockquote><p> Insecure Startup Item disabled. – “/Library/StartupItems/ChmodBPF” has not been started because it does not have the proper security settings</p></blockquote>
<p>The proper security settings are ownership of the scripts by root and group of wheel.<sup class='footnote'><a href='#fn-1082-1' id='fnref-1082-1'>1</a></sup>  To set them:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> root:wheel ChmodBPF</pre></div></div>

<div class='footnotes'>
<div class='footnotedivider'></div>
<ol>
<li id='fn-1082-1'>The correct settings for startup items can be found in this <a href="http://support.apple.com/kb/HT2413" target="_blank">Apple KB article</a> <span class='footnotereverse'><a href='#fnref-1082-1'>&#8617;</a></span></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://langui.sh/2010/01/31/no-interfaces-available-in-wireshark-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching 4/14 queries in 0.004 seconds using memcached
Object Caching 400/411 objects using memcached

Served from: langui.sh @ 2012-02-04 13:44:07 -->
