memberlist.lua is a Wireshark plugin which registers a memberlist protocol that can dissect the memberlist TCP and UDP protocols. The memberlist protocol can be configured to dissect user data as the protocol named in the memberlist.userdata_dissector preference.
moby-networkdb.lua is a Wireshark plugin which registers a protocol named networkdbgossip that dissects NetworkDB gossip messages. As node-to-node communications for NetworkDB are transported as memberlist user messages, the memberlist protocol dissector must be configured to invoke the networkdbgossip protocol as a sub-dissector. (Read: set the preference memberlist.userdata_dissector:networkdbgossip)
Wireshark 4.4 has an incomplete msgpack protocol dissector that is unable to properly decode memberlist messages. As of 2025-06-30 Wireshark 4.5 has yet to be released. A nightly build may be required.
Configure Wireshark/Tshark to load memberlist.lua and moby-networkdb.lua. Refer to the Wireshark Lua manual for further instruction.
NetworkDB messages are serialized to protobuf, which is not self-describing. The ProtoBuf Wireshark protocol needs to be supplied with the protobuf IDL definitions of the messages in order to dissect them.
protobuf.reload_protos)protobuf.pbf_as_hf)uat:protobuf.search_paths):Note that it is not sufficient to just grab the .proto files from the repos. The directory structure is necessary for the definitions to load properly.
Configure memberlist to dissect user data messages as NetworkDB gossip.
networkdbgossip. (memberlist.userdata_dissector)memberlist.ports) as needed. E.g. a value such as 7946,10000-10999 would be useful for analyzing packet captures from NetworkDB unit tests.The memberlist protocol dissector supports decryption of encrypted memberlist messages when provided with a file containing the encryption keys used. In Preferences -> Protocols -> MEMBERLIST, set the Encryption Key Logfile Path (memberlist.keylog) to a file containing the encryption keys.
The logfile should list the encryption keys as hexadecimal strings, delimited by newlines.
dockerd may be configured to write the NetworkDB encryption keys to a logfile by setting the environment variable NETWORKDBKEYLOGFILE to the path where the file should reside.
The NetworkDB protocol may fail to load with an error when Wireshark is first started:
moby-networkdb.lua:4: bad argument #1 to 'new' (Field_new: a field with this name must exist)
This is due to a known issue in Wireshark.
Workaround: reload Lua plugins after Wireshark has been initialized.