tests with subdirectory structure

This commit is contained in:
Andreas Steffen
2006-07-03 07:11:30 +00:00
parent 92069df82f
commit 6db2ac30c7
607 changed files with 9414 additions and 0 deletions
@@ -0,0 +1,7 @@
An IPsec tunnel connecting the subnets behind the gateways <b>moon</b> and
<b>sun</b> is set up. The authentication is based on <b>Preshared Keys</b>
(PSK). Unfortunately the secret keys of <b>moon</b> and <b>sun</b> do not
match, so that the responder cannot decrypt ISAKMP message MI3. The resulting
encrypted notification message cannot in turn be read by the initiator
<b>moon</b>. In order to avoid a <b>notify-war</b>, any further generation of
PAYLOAD_MALFORMED messages is suppressed.
@@ -0,0 +1,6 @@
moon::cat /var/log/auth.log::malformed payload in packet::YES
sun::cat /var/log/auth.log::probable authentication failure.*mismatch of preshared secrets.*malformed payload in packet::YES
sun::cat /var/log/auth.log::sending encrypted notification PAYLOAD_MALFORMED::YES
moon::ipsec status::net-net.*STATE_MAIN_I4.*ISAKMP SA established::NO
sun::ipsec status::net-net.*STATE_MAIN_R3.*ISAKMP SA established::NO
@@ -0,0 +1,22 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
plutodebug=control
charonstart=no
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
authby=secret
leftnexthop=%direct
conn net-net
left=PH_IP_MOON
leftsubnet=10.1.0.0/16
[email protected]
right=PH_IP_SUN
rightsubnet=10.2.0.0/16
[email protected]
auto=add
@@ -0,0 +1,7 @@
# /etc/ipsec.secrets - strongSwan IPsec secrets file
@moon.strongswan.org @sun.strongswan.org : PSK 0sv+NkxY9LLZvwj4qCC2o/gGrWDF2d21jL
@@ -0,0 +1,22 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
plutodebug=control
charonstart=no
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
authby=secret
leftnexthop=%direct
conn net-net
left=PH_IP_SUN
leftsubnet=10.2.0.0/16
[email protected]
right=PH_IP_MOON
rightsubnet=10.1.0.0/16
[email protected]
auto=add
@@ -0,0 +1,7 @@
# /etc/ipsec.secrets - strongSwan IPsec secrets file
@moon.strongswan.org @sun.strongswan.org : PSK 0sZNbttZkdViYmLWprfhiZBtDjJbNAMHil
@@ -0,0 +1,2 @@
moon::ipsec stop
sun::ipsec stop
@@ -0,0 +1,6 @@
moon::echo 1 > /proc/sys/net/ipv4/ip_forward
sun::echo 1 > /proc/sys/net/ipv4/ip_forward
moon::ipsec start
sun::ipsec start
moon::sleep 2
moon::ipsec up net-net
@@ -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="moon winnetou sun"
# Corresponding block diagram
#
DIAGRAM="m-w-s.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 sun"