/testing/guestbin/swan-prep
west #
 echo "initdone"
initdone
west #
 # show default listen on all IPs
west #
 ipsec pluto --config west.conf
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --listen > /dev/null
west #
 ipsec status | grep "^interface"
interface lo UDP 127.0.0.1:4500
interface lo UDP 127.0.0.1:500
interface eth0 UDP 192.0.1.254:4500
interface eth0 UDP 192.0.1.254:500
interface eth1 UDP 192.1.2.45:4500
interface eth1 UDP 192.1.2.45:500
west #
 ipsec whack --shutdown
west #
 ipsec pluto --config west-listen.conf
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec whack --listen > /dev/null
west #
 # It should only listen on 192.1.2.45 and not on 192.0.1.254
west #
 ipsec status | grep "^interface"
interface eth1 UDP 192.1.2.45:4500
interface eth1 UDP 192.1.2.45:500
west #
 ipsec whack --shutdown
west #
 echo done
done
west #
 
