Install ulogd2-pcap by entering the following commands in the terminal:
sudo apt update sudo apt install ulogd2-pcap
Description:
pcap extension to ulogd
ulogd is an advanced netfilter logging daemon. It can act as a replacement for syslog for logging netfilter ruleset violations (via the NFLOG or ULOG iptables targets), can gather per-connection accounting using NFCT, or gather per-rule accounting using NFACCT. Output can be sent to plain text log files, a variety of SQL database formats, XML files, pcap files, syslog, and many other formats. . This module add pcap file support to ulogd. If you install this package, you can use ulogd to dump packets to a file for later analysis using tools such as tcpdump or wireshark.
Homepage: http://www.netfilter.org/projects/ulogd/
Version: 2.0.5-5
Section: universe/net