mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #1351 from Security-Onion-Solutions/bugfix/tcpreplay
Fix so-test
This commit is contained in:
@@ -21,7 +21,7 @@ REPLAY_ENABLED=$(docker images | grep so-tcpreplay)
|
||||
REPLAY_RUNNING=$(docker ps | grep so-tcpreplay)
|
||||
|
||||
if [ "$REPLAY_ENABLED" != "" ] && [ "$REPLAY_RUNNING" != "" ]; then
|
||||
#docker cp so-tcpreplay:/opt/samples /opt/samples
|
||||
docker cp so-tcpreplay:/opt/samples /opt/samples
|
||||
docker exec -it so-tcpreplay /usr/local/bin/tcpreplay -i bond0 -M10 $1
|
||||
else
|
||||
echo "Replay functionality not enabled! To enable, run `so-tcpreplay-start`"
|
||||
|
||||
@@ -23,6 +23,7 @@ REPLAY_ENABLED=$(docker images | grep so-tcpreplay)
|
||||
REPLAY_RUNNING=$(docker ps | grep so-tcpreplay)
|
||||
|
||||
if [ "$REPLAY_ENABLED" != "" ] && [ "$REPLAY_RUNNING" != "" ]; then
|
||||
docker cp so-tcpreplay:/opt/samples /opt/samples
|
||||
docker exec -it so-tcpreplay /usr/local/bin/tcpreplay -i bond0 -M10 /opt/samples/*
|
||||
echo
|
||||
echo "PCAP's have been replayed - it is normal to see some warnings."
|
||||
@@ -33,6 +34,7 @@ else
|
||||
echo "Note that you will need internet access to download the appropriate components"
|
||||
/usr/sbin/so-start tcpreplay
|
||||
echo "Replay functionality enabled. Replaying PCAPs Now...."
|
||||
docker cp so-tcpreplay:/opt/samples /opt/samples
|
||||
docker exec -it so-tcpreplay /usr/local/bin/tcpreplay -i bond0 -M10 /opt/samples/*
|
||||
echo
|
||||
echo "PCAP's have been replayed - it is normal to see some warnings."
|
||||
|
||||
Reference in New Issue
Block a user