/testing/guestbin/swan-prep
west #
 ipsec start
Redirecting to: [initsystem]
west #
 ../../guestbin/wait-until-pluto-started
west #
 ipsec add addconn
"addconn": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec add addconn--encapsulation=no
"addconn--encapsulation=no": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec add addconn--encapsulation=yes
"addconn--encapsulation=yes": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec add addconn--encapsulation=auto
"addconn--encapsulation=auto": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec add addconn--type=passthrough
"addconn--type=passthrough": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec add addconn--type=passthrough--encapsulation=no
"addconn--type=passthrough--encapsulation=no": warning: encapsulation=no ignored for never-negotiate connection
"addconn--type=passthrough--encapsulation=no": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec add addconn--type=passthrough--encapsulation=yes
"addconn--type=passthrough--encapsulation=yes": warning: encapsulation=yes ignored for never-negotiate connection
"addconn--type=passthrough--encapsulation=yes": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec add addconn--type=passthrough--encapsulation=auto
"addconn--type=passthrough--encapsulation=auto": warning: encapsulation=auto ignored for never-negotiate connection
"addconn--type=passthrough--encapsulation=auto": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack                                            --encrypt --host 1.2.3.4 --to --host 5.6.7.8
"whack": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--encapsulation       --encapsulation       --encrypt --host 1.2.3.4 --to --host 5.6.7.8
"whack--encapsulation": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--encapsulation=no    --encapsulation=no    --encrypt --host 1.2.3.4 --to --host 5.6.7.8
"whack--encapsulation=no": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--encapsulation=yes   --encapsulation=yes   --encrypt --host 1.2.3.4 --to --host 5.6.7.8
"whack--encapsulation=yes": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--encapsulation=auto  --encapsulation=auto  --encrypt --host 1.2.3.4 --to --host 5.6.7.8
"whack--encapsulation=auto": added unoriented IKEv2 connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough                                          --pass --auth-never --host 1.2.3.4 --to --host 5.6.7.8
"whack--passthrough": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough--encapsulation      --encapsulation      --pass --auth-never --host 1.2.3.4 --to --host 5.6.7.8
"whack--passthrough--encapsulation": warning: encapsulation=yes ignored for never-negotiate connection
"whack--passthrough--encapsulation": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough--encapsulation=no   --encapsulation=no   --pass --auth-never --host 1.2.3.4 --to --host 5.6.7.8
"whack--passthrough--encapsulation=no": warning: encapsulation=no ignored for never-negotiate connection
"whack--passthrough--encapsulation=no": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough--encapsulation=yes  --encapsulation=yes  --pass --auth-never --host 1.2.3.4 --to --host 5.6.7.8
"whack--passthrough--encapsulation=yes": warning: encapsulation=yes ignored for never-negotiate connection
"whack--passthrough--encapsulation=yes": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec whack --name whack--passthrough--encapsulation=auto --encapsulation=auto --pass --auth-never --host 1.2.3.4 --to --host 5.6.7.8
"whack--passthrough--encapsulation=auto": warning: encapsulation=auto ignored for never-negotiate connection
"whack--passthrough--encapsulation=auto": added unoriented passthrough connection (neither left=1.2.3.4 nor right=5.6.7.8 match an interface)
west #
 ipsec connectionstatus | sed -n -e 's/\(^[^:]*:\).* \(encapsulation:[^;]*\);.*/\1 \2/p' | sort
"addconn": encapsulation:auto
"addconn--encapsulation=auto": encapsulation:auto
"addconn--encapsulation=no": encapsulation:no
"addconn--encapsulation=yes": encapsulation:yes
"addconn--type=passthrough--encapsulation=auto": encapsulation:no
"addconn--type=passthrough": encapsulation:no
"addconn--type=passthrough--encapsulation=no": encapsulation:no
"addconn--type=passthrough--encapsulation=yes": encapsulation:no
"whack": encapsulation:auto
"whack--encapsulation=auto": encapsulation:auto
"whack--encapsulation": encapsulation:yes
"whack--encapsulation=no": encapsulation:no
"whack--encapsulation=yes": encapsulation:yes
"whack--passthrough--encapsulation=auto": encapsulation:no
"whack--passthrough--encapsulation": encapsulation:no
"whack--passthrough": encapsulation:no
"whack--passthrough--encapsulation=no": encapsulation:no
"whack--passthrough--encapsulation=yes": encapsulation:no
west #
 
