/testing/guestbin/swan-prep
east #
 ip tunnel add test0 mode gre local 192.1.2.23 remote 192.1.2.45
east #
 ../../guestbin/ip.sh address add 172.29.1.2/24 dev test0
east #
 ../../guestbin/ip.sh link set dev test0 up
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add test1
"test1": added IKEv1 connection
east #
 ipsec auto --add test2
"test2": added unoriented IKEv1 connection (neither left=172.29.1.1 nor right=172.29.1.3 match an interface)
east #
 ipsec auto --add test3
"test3": added IKEv1 connection
east #
 ipsec auto --ready
listening for IKE messages
forgetting secrets
loading secrets from "/etc/ipsec.secrets"
east #
 ../../guestbin/ip.sh address add 172.29.1.3/24 dev test0
east #
 ipsec auto --ready
listening for IKE messages
adding interface test0 172.29.1.3:UDP/500
adding interface test0 172.29.1.3:UDP/4500 (NAT)
"test2": oriented IKEv1 connection (local: right=172.29.1.3  remote: left=172.29.1.1)
"test3": connection matches both right test0 172.29.1.2 and left test0 172.29.1.3
forgetting secrets
loading secrets from "/etc/ipsec.secrets"
east #
 ipsec auto --ready
listening for IKE messages
forgetting secrets
loading secrets from "/etc/ipsec.secrets"
east #
 
