Take a deep dive into your container host virtual networking, even if it's in a remote location. No fiddling with special containers and juggling error-prone CLI Docker commands. Simply click on a "fin" capture button inside one of the containers in Ghostwire's web UI to start a Wireshark live capture session:
Confirm and we're live capturing.
-
Capture network traffic live from your containers (and pods), straight into your Desktop Wireshark on Linux and Windows.
-
Capture from any container without preparing or modifying it for capturing. Just go capturing.
-
Supports stand-alone container hosts, including the Siemens Industrial Edge.
-
Remotely capture not only from containers, but also from the container host itself, process-less network namespaces, et cetera.
-
this Wireshark plugin can be built for Windows 64bit (x86, ARM) as well as Linux 64bit (x86, ARM). Currently, we support the .apk, .deb, and .rpm package formats on Linux.
-
Linux:
- Alpine, Debian/Ubuntu, Fedora/AlmaLinux (and other RHEL-compatible distros): head over to our releases page and download the package matching your CPU architecture (amd64 or arm64) and distro package format. Install the downloaded package as usual.
- Arch:
- download
PKGBUILDinto a preferably clean directory:wget https://raw.githubusercontent.com/siemens/cshargextcap/main/packaging/aur/PKGBUILD
makepkg -s -r -cin the directory you've downloadedPKGBUILDinto.- either install only the excapt plugin, or additionally the Wireshark QT
desktop integration:
# plugin only for tshark usage, without desktop Wireshark dependency pacman -U cshargextcap-git-cli*.zst # with desktop integration pacman -U cshargextcap-git-*.zst
- You can later update to new releases without the need to download the
PKGBUILDfile again, as it will automatically build and install from the latest release.
- download
-
macOS: install Wireshark first, then run in Terminal:
/bin/bash -c "$(curl -fsSL https://github.com/siemens/cshargextcap/releases/latest/download/macos-install-handler.sh)"This installs the latest release for your user, without admin rights:
- the
cshargextcapplugin into Wireshark's personal extcap folder~/.local/lib/wireshark/extcap, - the
packetflix:URL handler into~/Applications/packetflix-handler.app.
Run the same command again to upgrade. It also replaces older installations that put the plugin into
Wireshark.appand the handler into/Applications. Restart Wireshark afterwards if it was running.To uninstall, delete
~/Applications/packetflix-handler.appand~/.local/lib/wireshark/extcap/cshargextcap. - the
-
Windows: head over to our releases page and download the installer
cshargextcap_*_windows_amd64_setup.exe(or…_arm64_setup.exefor Windows on Arm) and run it; it needs administrator rights and asks you to accept the license before installing. The installer automatically locates your Wireshark installation and also registers thepacketflix:URL handler. For unattended installation, run it with/S, optionally with/D=<Wireshark extcap folder>. Uninstall via Windows' "Apps & features".
See below for the Quick Start.
The Containershark extcap plugin is part of the "Edgeshark" project that consist of several repositories:
- Edgeshark Hub repository with Edgeshark Industrial Edge App.
- Ghostwire discovery service
- Packetflix packet streaming service
- Containershark Extcap plugin for Wireshark
- csharg (CLI)
- mobydig
- ieddata
Please deploy the G(h)ostwire discovery service and Packetflix packet streaming service on your Docker host.
Then install this plugin: on Windows download and install the cshargextcap installer artifact. On Linux, download and install the cshargextcap package for your distribution (apk, deb, or rpm).
To build the installation files yourself, run make dist-build in the base
directory of this repository; they end up in the dist/ directory.
make dist-test installs the Linux packages in distro containers to check them,
and make dist does both. Building the Windows installer needs makensis,
which the dev container provides; without it, Docker is used instead.
Now fire up Wireshark. If the installation went through correctly, Wireshark now should show two new "interfaces", as shown below:
It's as easy as this:
- click the ⚙ gear icon next to the network interface named "Docker host capture".
- enter your Docker host's IP address or DNS name, as well as port
:5001into the field "Docker host URL". - click the refresh button to get the list of available pods (and more...).
- pick your container.
- click the Start button.
...and your live capture starts immediately.
🛈 Wireshark creates the UI for our capture plugin and unfortunately we're therefore (quite) limited to what Wireshark has on offer. Please don't create UI/UX feature requests as we don't have any control over Wireshark's UI – with the exception of our own bugs: please create issues for them in this project's issue tracker.
Please find more details in our csharg Extcap ⚙ Plugin Manual.
Finally, there's also some technical background information in our csharg ⚙ Plugin Technical Details.
flowchart LR
subgraph desktop["Desktop"]
browser["Web browser<br/>(Ghostwire UI)"]
handler["packetflix: URL handler<br/>(.desktop / registry / macOS app)"]
wireshark["Wireshark"]
extcap["cshargextcap<br/>«extcap plugin»"]
end
subgraph host["Container host"]
packetflix["Packetflix<br/>«service»"]
ghostwire["Ghostwire<br/>«service»"]
containers["containers,<br/>network namespaces"]
end
browser -- "click fin:<br/>packetflix:… URL" --> handler
handler -- "wireshark -k -i packetflix<br/>-o extcap.packetflix.url:…" --> wireshark
wireshark -- "extcap CLI<br/>(interfaces, config, dlts, capture)" --> extcap
extcap -- "packets via fifo" --> wireshark
extcap -- "HTTP: discovery" --> packetflix
extcap -- "WebSocket: capture stream" --> packetflix
packetflix -- "discovery" --> ghostwire
ghostwire -. "discovers" .-> containers
packetflix -. "captures from" .-> containers
- cshargextcap is a Wireshark extcap
plugin: Wireshark runs it as a separate process for each step (list
interfaces, configuration UI, data link types, capture). It offers two
interfaces: "Docker host capture" (
mobyshark) for http(s): URLs andpacketflixforpacketflix:URLs. - Packetflix runs on the container host and is the only service the plugin talks to: it forwards discovery requests to Ghostwire and streams captured packets over a WebSocket connection. The plugin writes these packets into the fifo Wireshark reads from.
- The
packetflix:URL handler hands capture links from Ghostwire's web UI over to Wireshark, which starts capturing immediately using thepacketflixinterface.
flowchart TB
ws["Wireshark"]
subgraph plugin["cshargextcap process"]
main["main + cli.FixArgs<br/>(cmd/cshargextcap)"]
root["cobra root command<br/>clippy CLI plugins (cli/…)"]
action["action.Call<br/>(cli/action)"]
subgraph actions["extcap actions"]
ifs["ExtcapInterfaces"]
dlts["ExtcapDlts"]
conf["ExtcapConfigure /<br/>reload option"]
cap["ExtcapCapture"]
end
registry["extcap nif registry<br/>(go-plugger)"]
subgraph nifs["extcap nifs (nif/)"]
moby["MobyNif<br/>mobyshark"]
pf["PacketflixNif<br/>packetflix"]
end
args["Configure: describe config dialog<br/>(extcapargs + cfg)"]
capture["Capture<br/>(capturestream.go)"]
end
csharg["csharg SharkTank client"]
svc["Packetflix service"]
ws -- "CLI args" --> main --> root --> action
action --> ifs & dlts & conf & cap
ifs & dlts & conf & cap -- "lookup by --extcap-interface" --> registry
registry --> moby & pf
moby & pf --> args
args -- "dialog fields, tabs, defaults<br/>(arg/value lines on stdout)" --> ws
moby -- "ReloadOption:<br/>fill container selector<br/>via Targets()" --> csharg
moby & pf -- "Capture" --> capture
capture -- "Capture()" --> csharg
csharg <-->|"HTTP / WebSocket"| svc
capture -- "pcapng via --fifo" --> ws
classDef nif fill:#c8f7c5,stroke:#2e7d32,stroke-width:3px,color:#000
class moby,pf nif
- Short-lived processes: Wireshark starts a new plugin process for every
extcap request. main.go first runs
cli.FixArgs, which merges the--flag truestyle that Wireshark sometimes passes into--flag=true. A cobra root command then parses the arguments. The packages in cli/ register their own CLI flags throughclippyplugins: debug logging, proxy, timeouts, TLS verification, capture target, and Wireshark-specific flags such as--fifoand--extcap-reload-option. - Action dispatch:
action.Callchooses one of the mutually exclusive extcap actions (--extcap-interfaces,--extcap-dlts,--extcap-config,--capture). It then calls the matchingExtcap…function in the root package, which writes extcap's line-based output to stdout or starts a capture. - Pluggable interfaces: each extcap network interface implements
ExtcapNifActionsand registers itself through go-plugger when the package is loaded. The actions look up the interface named by--extcap-interfacein this registry. Two interfaces exist today:MobyNif(mobyshark) connects to an http(s) Docker host URL. It provides the full configuration UI and reloads the container list from the capture service on request.PacketflixNif(packetflix) turns apacketflix:URL into the service base URL plus the capture target, interfaces, and filter. It then sets the matching CLI flags so that capturing follows the same path asmobyshark.
- Configuration UI: extcapargs/ builds and prints extcap
arg {…}andvalue {…}lines. cfg/ defines the argument numbers and the standard, advanced, and proxy tabs that the interfaces share. Wireshark builds its configuration dialog from these lines. - Discovery: reloading the container list calls
Targets()on a cshargSharkTankclient. Each target is stored as URL-escaped JSON in the--containervalue. That value is later used to fill in the interface list and to start the capture. - Capture:
Captureopens Wireshark's--fifofor writing. It then has csharg stream packets from Packetflix over a WebSocket straight into that fifo. When Wireshark stops a capture it sendsSIGINT/SIGTERM. The first signal stops the stream cleanly, a second one aborts the plugin immediately.
Please see CONTRIBUTING.md.
(c) Siemens AG 2023-2026


