--- /dev/null
+An IPv6 ESP transport connection between the hosts <b>moon</b> and <b>sun</b> is
+set up using Cryptographically Generated Addresses (RFC 3972). Both peers send
+the RSA based CGA parameters in certificate payloads to authenticate each other.
+</p>
+<p>To establish trust in CGA addresses, the CGA plugin <i>trust</i> option is
+set in <i>strongswan.conf</i>. To recognize the private use CGA parameters
+certificate exchange, the peers exchange strongSwan vendor ID payloads.
--- /dev/null
+moon:: ipsec status 2> /dev/null::host-host.*ESTABLISHED::YES
+sun:: ipsec status 2> /dev/null::host-host.*ESTABLISHED::YES
+moon:: ipsec status 2> /dev/null::host-host.*INSTALLED::YES
+sun:: ipsec status 2> /dev/null::host-host.*INSTALLED::YES
+moon::ping6 -c 1 fec0:\:3c93:f0e5:6eb8:8cf5::64 bytes from fec0:\:3c93:f0e5:6eb8:8cf5: icmp_seq=1::YES
+sun::tcpdump::IP6 fec0:\:208a:4d90:2951:1c97 > fec0:\:3c93:f0e5:6eb8:8cf5: ESP::YES
+sun::tcpdump::IP6 fec0:\:3c93:f0e5:6eb8:8cf5 > fec0:\:208a:4d90:2951:1c97: ESP::YES
--- /dev/null
+# /etc/ipsec.conf - strongSwan IPsec configuration file
+
+config setup
+
+conn %default
+ ikelifetime=60m
+ keylife=20m
+ rekeymargin=3m
+ keyingtries=1
+ keyexchange=ikev2
+
+conn host-host
+ leftcert=cga:moon.cga
+ left=fec0::208a:4d90:2951:1c97
+ right=fec0::3c93:f0e5:6eb8:8cf5
+ type=transport
+ auto=add
--- /dev/null
+# /etc/strongswan.conf - strongSwan configuration file
+
+charon {
+ load = aes des sha1 sha2 md5 pem pkcs1 gmp random nonce x509 curl revocation hmac cga stroke kernel-netlink socket-default updown
+
+ send_vendor_id = yes
+
+ plugins {
+ cga {
+ trust = yes
+ }
+ }
+}
--- /dev/null
+# /etc/ipsec.conf - strongSwan IPsec configuration file
+
+config setup
+
+conn %default
+ ikelifetime=60m
+ keylife=20m
+ rekeymargin=3m
+ keyingtries=1
+ keyexchange=ikev2
+
+conn host-host
+ leftcert=cga:sun.cga
+ left=fec0::3c93:f0e5:6eb8:8cf5
+ right=fec0::208a:4d90:2951:1c97
+ type=transport
+ auto=add
--- /dev/null
+# /etc/strongswan.conf - strongSwan configuration file
+
+charon {
+ load = aes des sha1 sha2 md5 pem pkcs1 gmp random nonce x509 curl revocation hmac cga stroke kernel-netlink socket-default updown
+
+ send_vendor_id = yes
+
+ plugins {
+ cga {
+ trust = yes
+ }
+ }
+}
--- /dev/null
+moon::ipsec stop
+sun::ipsec stop
+moon::"ip addr del fec0:\:208a:4d90:2951:1c97 dev eth0"
+sun::"ip addr del fec0:\:3c93:f0e5:6eb8:8cf5 dev eth0"
--- /dev/null
+moon::"ip addr add fec0:\:208a:4d90:2951:1c97 dev eth0"
+sun::"ip addr add fec0:\:3c93:f0e5:6eb8:8cf5 dev eth0"
+moon::ipsec start
+sun::ipsec start
+moon::expect-connection host-host
+sun::expect-connection host-host
+moon::ipsec up host-host
--- /dev/null
+#!/bin/bash
+#
+# This configuration file provides information on the
+# guest instances used for this test
+
+# All guest instances that are required for this test
+#
+VIRTHOSTS="alice moon winnetou sun bob"
+
+# Corresponding block diagram
+#
+DIAGRAM="a-m-w-s-b-ip6.png"
+
+# Guest instances on which tcpdump is to be started
+#
+TCPDUMPHOSTS="sun"
+
+# Guest instances on which IPsec is started
+# Used for IPsec logging purposes
+#
+IPSECHOSTS="moon sun"