Added basic utilities.
This commit is contained in:
parent
f55f4d699d
commit
84475594cc
8 changed files with 113 additions and 19 deletions
10
modules/rhizomatica_base_system/files/bin/capture_traffic.sh
Executable file
10
modules/rhizomatica_base_system/files/bin/capture_traffic.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash -x
|
||||
TCPDUMP="/usr/sbin/tcpdump"
|
||||
CAPTURE_DEVICE="eth1"
|
||||
CAPTURE_PORTS="port 3002 or port 3003"
|
||||
CAPTURE_LIMIT="1024"
|
||||
CAPTURE_SIZE="1"
|
||||
CAPTURE_BASENAME="/tmp/tcpdump-capture-"
|
||||
CAPTURE_COMPRESS="-z /usr/sbin/tcpdump-compress"
|
||||
CAPTURE_OPTIONS="-pi $CAPTURE_DEVICE -s0 -w $CAPTURE_BASENAME -C $CAPTURE_SIZE -W $CAPTURE_LIMIT $CAPTURE_COMPRESS $CAPTURE_PORTS"
|
||||
$TCPDUMP $CAPTURE_OPTIONS
|
Loading…
Add table
Add a link
Reference in a new issue