Several scripts with involves the tcpdump command
tcpdump_getdata.sh: Define the variables according to your need and capture network traffic. Can be stopped with Strg-C.
tcpdump_stop.sh: Stop the tcpdump command (e.g. when using crontab)
tcpdump.yml: Ansible Playbook which takes a tcpdump on the remote side(s) and copy it automatically to your server