/testing/guestbin/swan-prep
east #
 ip route del 192.0.1.0/24
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add westnet-eastnet-ipv4-psk-ikev2
"westnet-eastnet-ipv4-psk-ikev2": added IKEv2 connection
east #
 ipsec status |grep redirect
global-redirect=yes, global-redirect-to=192.1.3.33
east #
 echo "initdone"
initdone
east #
 ../../guestbin/ipsec-kernel-state.sh
east #
 ../../guestbin/ipsec-kernel-policy.sh
east #
 # confirm east is in unrouted state again
east #
 hostname | grep east > /dev/null && ipsec status | grep "[.][.][.]"
"westnet-eastnet-ipv4-psk-ikev2": 192.0.2.0/24===192.1.2.23[@east]...192.1.2.45[@west]===192.0.1.0/24; unrouted; my_ip=unset; their_ip=unset;
east #
 
