OS X で Wireshark を使う
思い立って調べてみたところ、うまく動作したのでメモしておきます。
OS X 10.10.2 (Yosemite) に、homebrew を使って wireshark 1.12.4 の Qt版をインストールしました。 '--with-qt' なしでインストールしたら、GUIなプログラムがインストールされなかったので、GUIが必須な時にはつける必要があるのかな?
インストール
コマンド一発なげると、次のところにGUIのWiresharkが用意されました。
- /usr/local/bin/wireshark-qt
$ brew install wireshark --with-qt ==> Installing wireshark dependency: qt ==> Downloading https://homebrew.bintray.com/bottles/qt-4.8.6.yosemite.bottle.6. ######################################################################## 100.0% ==> Pouring qt-4.8.6.yosemite.bottle.6.tar.gz ==> Caveats We agreed to the Qt opensource license for you. If this is unacceptable you should uninstall. .app bundles were installed. Run `brew linkapps qt` to symlink these to /Applications. ==> Summary 🍺 /usr/local/Cellar/qt/4.8.6: 2790 files, 122M ==> Installing wireshark ==> Downloading https://www.wireshark.org/download/src/all-versions/wireshark-1. ######################################################################## 100.0% ==> Patching patching file configure Hunk #1 succeeded at 16946 (offset 243 lines). ==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/wireshark/1.12 ==> make ==> make install ==> Caveats If your list of available capture interfaces is empty (default OS X behavior), try the following commands: curl https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3373 -o ChmodBPF.tar.gz tar zxvf ChmodBPF.tar.gz open ChmodBPF/Install\ ChmodBPF.app This adds a launch daemon that changes the permissions of your BPF devices so that all users in the 'admin' group - all users with 'Allow user to administer this computer' turned on - have both read and write access to those devices. See bug report: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3760 ==> Summary 🍺 /usr/local/Cellar/wireshark/1.12.4: 267 files, 63M, built in 6.1 minutes
プラスα
上記のようにしてインストールはすぐでしたが。しかし起動したところ、インターフェースが何もリストされないという状態でした。インストールメッセージにあるとおり、追加の作業をしたところ、無事に表示されるようになりました。
$ curl https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3373 -o ChmodBPF.tar.gz $ tar zxvf ChmodBPF.tar.gz $ open ChmodBPF/Install\ ChmodBPF.app