No interfaces available in Wireshark Mac OS X

Source: Internet
Author: User
Tags wireshark mac
No interfaces available in Wireshark Mac OS X
No interfaces available in Wireshark Mac OS X

Creating 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 session cocould not be initiated (no devices found)/dev/bpf0: Permission denied ).


To have the interfaces show up properly you'll need to widen the permissions on the Berkeley Packet Filter (BPF). By default they look like this:

  1. CrW ------- 1 root wheel 23, 0 Jan 31/dev/bpf0

Copy code

We need the filter to be readable by non-root, so open terminal. app and run this command:

  1. Sudo chmod 644/dev/BPF *

Copy code

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'll need to follow two steps.


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.


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:


Insecure startup Item disabled.-"/library/startupitems/chmodbpf" has not been started because it does not have the proper security settings


The proper security settings are ownership of the scripts by root and group of wheel.1 to set them:

  1. Sudo chown-r root: wheel chmodbpf

Copy code

The correct settings for startup items can be found in this apple KB article

From: http://langui.sh/2010/01/31/no-i... wireshark-Mac-OS-x/


What is chmodbpf? The limited English ability is probably because the/dev/BPF * required by the capture session does not have the permission and needs to be granted, but the commands that need to be granted directly after the start of the session are also new, so when I mention/library/startupitems/, it should be similar to the Start menu under Win, but what is chmodbpf in the text? Is it a self-written shell script to solve this problem? Thank you :)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.