4.9.3-4ubuntu0.2+snap1280.5 MB
BSD-3-Clause
strict
core20
Command-line network traffic analyzer
This program allows you to dump the traffic on a network. tcpdump is able to
examine IPv4, ICMPv4, IPv6, ICMPv6, UDP, TCP, SNMP, AFS BGP, RIP, PIM, DVMRP,
IGMP, SMB, OSPF, NFS and many other packet types.
It can be used to print out the headers of packets on a network interface,
filter packets that match a certain expression. You can use this tool to track
down network problems, to detect attacks or to monitor network activities.
This snap is not maintained by https://www.tcpdump.org/ and instead packages
the deb of tcpdump from the Ubuntu archive as a snap. Please see the developer
website (below) for details.
Usage
tcpdump will drop privileges to the snapdaemon user and group by default. To write out captures, the /var/snap/tcpdump/common/captures directory is created with snapdaemon ownership. Eg:
If you prefer, you may use '-Z root' to prevent dropping privileges and then write out anywhere in the snap's writable areas.
If want to save pcap files to $HOME or /media, optionally:
In these cases, you will need to create a directory that snapdaemon can write to. Eg:
Integration with other snaps
This snap exports the /var/snap/tcpdump/common/captures as a writable area via the content interface. Other snaps may specify in their snap.yaml:
Then when install that snap:
examine IPv4, ICMPv4, IPv6, ICMPv6, UDP, TCP, SNMP, AFS BGP, RIP, PIM, DVMRP,
IGMP, SMB, OSPF, NFS and many other packet types.
It can be used to print out the headers of packets on a network interface,
filter packets that match a certain expression. You can use this tool to track
down network problems, to detect attacks or to monitor network activities.
This snap is not maintained by https://www.tcpdump.org/ and instead packages
the deb of tcpdump from the Ubuntu archive as a snap. Please see the developer
website (below) for details.
Usage
$ sudo tcpdumptcpdump will drop privileges to the snapdaemon user and group by default. To write out captures, the /var/snap/tcpdump/common/captures directory is created with snapdaemon ownership. Eg:
$ sudo tcpdump -w /var/snap/tcpdump/common/captures/my.pcapIf you prefer, you may use '-Z root' to prevent dropping privileges and then write out anywhere in the snap's writable areas.
If want to save pcap files to $HOME or /media, optionally:
$ sudo snap connect tcpdump:home
$ sudo snap connect tcpdump:removable-mediaIn these cases, you will need to create a directory that snapdaemon can write to. Eg:
$ mkdir -m 770 $HOME/captures
$ sudo chown root:snap-daemon $HOME/captures
$ sudo tcpdump -w $HOME/captures/my.pcapIntegration with other snaps
This snap exports the /var/snap/tcpdump/common/captures as a writable area via the content interface. Other snaps may specify in their snap.yaml:
plugs:
captures:
interface: content
target: $SNAPDATA/tcpdump-capturesThen when install that snap:
$ sudo snap connect <yoursnap>:captures tcpdump:capturesUpdate History
4.9.3-4ubuntu0.2+snap1 (28)13 Dec 2025, 09:47 UTC
18 Jan 2021, 17:09 UTC
18 Feb 2024, 04:45 UTC
13 Dec 2025, 09:47 UTC
