目次

Wireshark SSH remote capture

Wireshark SSH remote capture

OpenWrt 側の設定

# opkg update && opkg install tcpdump

Downloading https://downloads.openwrt.org/releases/21.02.3/targets/bcm53xx/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/21.02.3/targets/bcm53xx/generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/telephony/Packages.sig
Signature check passed.
Installing tcpdump (4.9.3-4) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/base/tcpdump_4.9.3-4_arm_cortex-a9.ipk
Installing libpcap1 (1.9.1-3.1) to root...
Downloading https://downloads.openwrt.org/releases/21.02.3/packages/arm_cortex-a9/base/libpcap1_1.9.1-3.1_arm_cortex-a9.ipk
Configuring libpcap1.
Configuring tcpdump.

PC 側の設定

Wireshark をインストールする🤔
Wireshark(Linux)
Wireshark(Windows)

SSH remote capture をクリックする。
Wireshark OpenWrt SSH remote_capture 001

Server タブ

Remote SSH server address に OpenWrt ルーターの IP アドレスを指定する。
Remote SSH server port に OpenWrt ルーターの SSH ポートを指定する。
Wireshark OpenWrt SSH remote_capture 002

Authentication タブ

Remote SSH server username に root を指定する。
Path to SSH private key に rsa key (OpenSSH 形式) のパスを指定する。
SSH key passphrase に rsa key のパスフレーズを指定する。
Wireshark OpenWrt SSH remote_capture 003

Capture タブ

Remote interface に br-lan を指定する。
Remote capture filter に not port 22 (SSH ポート 22 を除外) を指定する。
Wireshark OpenWrt SSH remote_capture 004
最後に [開始] ボタンを押して、パケットキャプチャを開始する。