/testing/guestbin/swan-prep
west #
 ipsec _stackmanager start
west #
 ifconfig eth1:1 192.1.2.46 netmask 255.255.255.0
west #
 ifconfig eth1:2 192.1.2.47 netmask 255.255.255.0
west #
 ifconfig eth1:3 192.1.2.48 netmask 255.255.255.0
west #
 ifconfig eth1:4 192.1.2.49 netmask 255.255.255.0
west #
 ifconfig eth1:5 192.1.2.50 netmask 255.255.255.0
west #
 ifconfig eth1:6 192.1.2.51 netmask 255.255.255.0
west #
 echo "initdone"
initdone
west #
 export PLUTO_CRYPTO_HELPER_DELAY=1
west #
 export EF_DISABLE_BANNER=1
west #
 ipsec pluto --config /etc/ipsec.conf
west #
 # expecting 2*16 + 5 = 37 tunnels to come up
west #
 sleep 10
west #
 # waiting
west #
 sleep 10
west #
 # waiting
west #
 sleep 10
west #
 # waiting
west #
 sleep 10
west #
 # waiting
west #
 ipsec status | grep Total
000 Total IPsec connections: loaded 37, active 37
west #
 echo done
done
west #
 
