/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 add test1
"test1": added oriented IKEv1 connection
east #
 ipsec add test2
"test2": added unoriented IKEv1 connection (neither left=172.29.1.1 nor right=172.29.1.3 match an interface)
east #
 ipsec add test3
"test3": added oriented IKEv1 connection
east #
 ipsec listen
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 listen
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 172.29.1.2%test0 and left 172.29.1.3%test0
forgetting secrets
loading secrets from "/etc/ipsec.secrets"
east #
 ipsec listen
listening for IKE messages
forgetting secrets
loading secrets from "/etc/ipsec.secrets"
east #
