Skip to content

Instantly share code, notes, and snippets.

@jeffgeiger
Last active October 20, 2017 06:33
Show Gist options
  • Save jeffgeiger/fb3c74c1ab1b18cfca7d to your computer and use it in GitHub Desktop.
Save jeffgeiger/fb3c74c1ab1b18cfca7d to your computer and use it in GitHub Desktop.
example systemd script for netsniff-ng
PROM_INTERFACE=enp0s8
USER=99
GROUP=99
INTERVAL=5min
DATA_DIR=/pcap/
[Unit]
Description=PCAP collection beast
After=network.target
[Service]
ExecStart=/sbin/netsniff-ng --in ${PROM_INTERFACE} --out ${DATA_DIR} --silent --user ${USER} --group ${GROUP} --interval ${INTERVAL}
Type=simple
EnvironmentFile=-/etc/sysconfig/netsniff-ng
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment