mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
dont render pillar each time so-tcpreplay runs
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
. /usr/sbin/so-common
|
. /usr/sbin/so-common
|
||||||
. /usr/sbin/so-image-common
|
. /usr/sbin/so-image-common
|
||||||
|
|
||||||
REPLAYIFACE=${REPLAYIFACE:-$(lookup_pillar interface sensor)}
|
REPLAYIFACE=${REPLAYIFACE:-"{{pillar.sensor.interface}}"}
|
||||||
REPLAYSPEED=${REPLAYSPEED:-10}
|
REPLAYSPEED=${REPLAYSPEED:-10}
|
||||||
|
|
||||||
mkdir -p /opt/so/samples
|
mkdir -p /opt/so/samples
|
||||||
@@ -57,8 +57,8 @@ if ! docker ps | grep -q so-tcpreplay; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if is_sensor_node; then
|
if is_sensor_node; then
|
||||||
echo "Replaying PCAP(s) at ${REPLAYSPEED} Mbps on interface ${REPLAYIFACE}..."
|
echo "Replaying PCAP(s) at ${REPLAYSPEED} Mbps on interface $REPLAYIFACE..."
|
||||||
docker exec so-tcpreplay /usr/bin/bash -c "/usr/local/bin/tcpreplay -i ${REPLAYIFACE} -M${REPLAYSPEED} $@"
|
docker exec so-tcpreplay /usr/bin/bash -c "/usr/local/bin/tcpreplay -i $REPLAYIFACE -M${REPLAYSPEED} $@"
|
||||||
|
|
||||||
echo "Replay completed. Warnings shown above are typically expected."
|
echo "Replay completed. Warnings shown above are typically expected."
|
||||||
elif is_manager_node; then
|
elif is_manager_node; then
|
||||||
Reference in New Issue
Block a user