added xauth scenarios

This commit is contained in:
Andreas Steffen
2007-01-04 14:25:14 +00:00
parent af87afed47
commit fc9f75ed0f
65 changed files with 829 additions and 4 deletions
@@ -0,0 +1,5 @@
The roadwarrior <b>carol</b> sets up a connection to gateway <b>moon</b>.
The authentication is based on RSA signatures (<b>RSASIG</b>) using X.509
certificates followed by extended authentication (<b>XAUTH</b>) based
on user name and password. Because user <b>carol</b> presents a wrong
XAUTH password the IKE negotation is aborted and the ISAKMP SA is deleted.
@@ -0,0 +1,4 @@
carol::cat /var/log/auth.log::extended authentication failed::YES
moon::cat /var/log/auth.log::extended authentication failed::YES
carol::ipsec status::home.*STATE_QUICK_I2.*IPsec SA established::NO
moon::ipsec status::rw.*STATE_QUICK_R2.*IPsec SA established::NO
@@ -0,0 +1,25 @@
# /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
authby=xauthrsasig
conn home
left=PH_IP_CAROL
leftnexthop=%direct
leftcert=carolCert.pem
[email protected]
leftfirewall=yes
right=PH_IP_MOON
rightsubnet=10.1.0.0/16
[email protected]
auto=add
@@ -0,0 +1,5 @@
# /etc/ipsec.secrets - strongSwan IPsec secrets file
: RSA carolKey.pem "nH5ZQEWtku0RJEZ6"
: XAUTH carol "4iChxLT8"
@@ -0,0 +1,25 @@
# /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
authby=xauthrsasig
xauth=server
conn rw
left=PH_IP_MOON
leftnexthop=%direct
leftcert=moonCert.pem
[email protected]
leftsubnet=10.1.0.0/16
leftfirewall=yes
right=%any
auto=add
@@ -0,0 +1,5 @@
# /etc/ipsec.secrets - strongSwan IPsec secrets file
: RSA moonKey.pem
: XAUTH carol "4iChxLT3"
@@ -0,0 +1,2 @@
moon::ipsec stop
carol::ipsec stop
@@ -0,0 +1,4 @@
carol::ipsec start
moon::ipsec start
carol::sleep 2
carol::ipsec up home
@@ -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=""
# UML instances on which IPsec is started
# Used for IPsec logging purposes
#
IPSECHOSTS="moon carol"