added rw-ikev1 IPv6 scenario

This commit is contained in:
Andreas Steffen 2007-11-06 17:50:43 +00:00
parent e2d1f05f0e
commit 7430f44c47
7 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,5 @@
The roadwarrior <b>carol</b> sets up a connection to gateway <b>moon</b>.
The authentication is based on <b>X.509 certificates</b>.
In order to test the IPv6 ESP tunnel, <b>carol</b> sends an IPv6 ICMP request
to the client <b>alice</b> behind the gateway <b>moon</b> using the ping6
command.

View File

@ -0,0 +1,5 @@
carol::ipsec status::home.*STATE_QUICK_I2.*IPsec SA established::YES
moon::ipsec status::rw.*STATE_QUICK_R2.*IPsec SA established::YES
carol::ping6 -c 1 ip6-alice.strongswan.org::64 bytes from ip6-alice.strongswan.org: icmp_seq=1::YES
moon::tcpdump::IP6 ip6-carol.strongswan.org > ip6-moon.strongswan.org: ESP::YES
moon::tcpdump::IP6 ip6-moon.strongswan.org > ip6-carol.strongswan.org: ESP::YES

View File

@ -0,0 +1,28 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
plutodebug=control
crlcheckinterval=180
strictcrlpolicy=no
charonstart=no
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
conn home
left=PH_IP6_CAROL
leftnexthop=0::0
leftcert=carolCert.pem
leftid=carol@strongswan.org
right=PH_IP6_MOON
rightnexthop=0::0
rightsubnet=fec1::/16
rightid=@moon.strongswan.org
auto=add

View File

@ -0,0 +1,23 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
plutodebug=control
crlcheckinterval=180
strictcrlpolicy=no
charonstart=no
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
conn rw
left=PH_IP6_MOON
leftnexthop=0::0
leftcert=moonCert.pem
leftid=@moon.strongswan.org
leftsubnet=fec1::/16
right=%any
rightnexthop=0::0
auto=add

View File

@ -0,0 +1,3 @@
moon::ipsec stop
carol::ipsec stop
alice::"ip route del fec0:\:/16 via fec1:\:1"

View File

@ -0,0 +1,6 @@
moon::echo "1" >/proc/sys/net/ipv6/conf/all/forwarding
alice::"ip route add fec0:\:/16 via fec1:\:1"
carol::ipsec start
moon::ipsec start
carol::sleep 2
carol::ipsec up home

View File

@ -0,0 +1,21 @@
#!/bin/bash
#
# This configuration file provides information on the
# UML instances used for this test
# All UML instances that are required for this test
#
UMLHOSTS="alice moon carol winnetou"
# Corresponding block diagram
#
DIAGRAM="a-m-c-w.png"
# UML instances on which tcpdump is to be started
#
TCPDUMPHOSTS="moon"
# UML instances on which IPsec is started
# Used for IPsec logging purposes
#
IPSECHOSTS="moon carol"