3 # Copyright 2015-2016 by Jan Vales <jan@jvales.net> (Someone <someone@somenet.org>)
4 # send me your changes. credit author(s). do not publish. share alike.
5 # to be done: find a suitable licence text.
7 # Script to (re)start dumping the relevant network streams.
10 export NETDUMPDIR="/media/sf_vmshare/_netdumps/raw/"
12 mkdir -p "${NETDUMPDIR}"
18 tmux new-session -s "netdump" -d "zsh"
19 tmux new-window -d "echo 'starting at: $(date -Iseconds)' && /usr/sbin/tcpdump -v -i nflog:1 -G 300 -w '${NETDUMPDIR}/accepted_%F_%H-%M-%S.pcap'"
20 tmux new-window -d "echo 'starting at: $(date -Iseconds)' && /usr/sbin/tcpdump -v -i nflog:2 -G 300 -w '${NETDUMPDIR}/dropped_%F_%H-%M-%S.pcap'"
21 tmux new-window -d "echo 'starting at: $(date -Iseconds)' && /usr/sbin/tcpdump -v -i game -G 300 -w '${NETDUMPDIR}/test_all_%F_%H-%M-%S.pcap'"