/testing/guestbin/swan-prep --nokeys
Creating empty NSS database
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 127.0.0.1:UDP/4500 (NAT)
interface lo 127.0.0.1:UDP/500
interface eth0 192.0.1.254:UDP/4500 (NAT)
interface eth0 192.0.1.254:UDP/500
interface eth1 192.1.2.45:UDP/4500 (NAT)
interface eth1 192.1.2.45:UDP/500
west #
 ipsec whack --shutdown
Pluto is shutting down
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 192.1.2.45:UDP/4500 (NAT)
interface eth1 192.1.2.45:UDP/500
west #
 ipsec whack --shutdown
Pluto is shutting down
west #
 echo done
done
west #
