run_single_demo.sh 439 Bytes
Newer Older
1 2 3 4 5 6

sudo tcpdump -i lo -w mbox_to_server.pcap port 4433 &
sudo tcpdump -i lo -w client_to_mbox.pcap port 8423 &

echo "Starting Middlebox"
../middlebox 8423 127.0.0.1:8423 simpleMiddlebox &
7
mboxpid=$(pidof middlebox)
8 9 10 11 12

#sleep .3

echo "Starting Server"
../server ./simpleEchoScript.sh &
13
serverpid=$(pidof server)
14 15 16 17 18 19 20 21 22 23 24

#sleep .3

echo "Starting Client"
../client simple_input.json

echo "Cleaning up"
kill $mboxpid
kill $serverpid
killall tcpdump