Skip to content

Wireshark extcap implementation for the Inspektor Gadget tcpdump gadget

License

Notifications You must be signed in to change notification settings

inspektor-gadget/ig-extcap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IG-EXTCAP

Wireshark extcap provider for connecting to the Inspektor Gadget tcpdump gadget.

This requires a running installation of Inspektor Gadget (>=v0.47) either as Kubernetes Daemonset or in daemon mode (using ig daemon).

Installation

Start Wireshark and go to its "About" dialog. Under the "folders" tab look for "Personal Extcap path" and copy the ig-extcap binary file for your specific platform there.

Usage

After restarting Wireshark, it should show you two new interfaces in the interface selection:

Interfaces

  • Inspektor Gadget (Daemon): use this, if you're running ig daemon
  • Inspektor Gadget on Kubernetes: use this, if you're running ig installed on your Kubernetes cluster

When using "Inspektor Gadget (Daemon)", make sure the remote address is configured correctly (matching the daemon configuration).

Click the "cog" icon left to the interface name to open the configuration dialog.

Filters

You can apply filters to capture traffic only on matching containers:

K8s Filtering

Gadget Configuration

Gadget Options

Gadget Image

Here you can specify a gadget OCI image to use for capturing. Doesn't usually need to be changed.

SnapLen

Limits the number of bytes that should be captured from each packet. This can massively reduce the network traffic.

Adding IG Lua dissector

Again, look at the folders in Wireshark's "About" dialog and navigate to the "Personal Lua Plugins" folder. Place the dissector file in there and restart Wireshark. You should be able to see additional data when capturing traffic using Inspektor Gadget.

Dissector Preview

If you want to add this information as a column to the upper packet list, you can do so by:

  • right clicking the header -> "Column Preferences"
  • click "+" at the bottom
  • choose a "Title", set "Type" to "Custom" and as "Custom Expression" use any of (auto-completion should be available after capturing):
    • ig.k8s.containerName
    • ig.k8s.ns
    • ig.k8s.pod
    • ig.proc.comm
    • ig.runtime.containerName

Columns

About

Wireshark extcap implementation for the Inspektor Gadget tcpdump gadget

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •