testing: Reorganizing IKEv1 and IKEv2 examples
For documentation purposes the new folders ikev1-algs, ikev2-algs, ikev1-multi-ca and ikev2-multi-ca have been created. Most of the test cases have now been converted to the vici interface. The remaining legacy stroke scenarios yet to be converted have been put into the ikev2-stroke-bye folder. For documentation purposes some legacy stroke scenarios will be kept in the ikev1-stroke, ikev2-stroke and ipv6-stroke folders.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
The roadwarriors <b>carol</b> an <b>dave</b> set up a connection to gateway
|
||||
<b>moon</b>. They authenticate themselves using <b>RSA signatures</b> but
|
||||
they use different hash algorithms. <b>moon</b> uses signature scheme constraints
|
||||
to only allow access to the <b>research</b> and <b>accounting</b> subnets if
|
||||
specific algorithms are used. <b>Note:</b> Because the client certificate's are signed
|
||||
with SHA-256 we have to accept that algorithm too because signature schemes in
|
||||
<b>rightauth</b> are also used as constraints for the whole certificate chain.
|
||||
Therefore, <b>carol</b> obtains access to the <b>research</b> subnet behind gateway
|
||||
<b>moon</b> whereas <b>dave</b> has access to the <b>accounting</b> subnet, but not
|
||||
vice-versa.
|
||||
@@ -1,20 +0,0 @@
|
||||
carol::cat /var/log/daemon.log::authentication of .*moon.strongswan.org.* with RSA.* successful::YES
|
||||
moon ::cat /var/log/daemon.log::authentication of .*[email protected].* with RSA_EMSA_PKCS1_SHA2_384 successful::YES
|
||||
moon ::ipsec status 2> /dev/null::research.*ESTABLISHED.*moon.strongswan.org.*PH_IP_CAROL::YES
|
||||
carol::ipsec status 2> /dev/null::alice.*ESTABLISHED.*PH_IP_CAROL.*moon.strongswan.org::YES
|
||||
moon ::ipsec status 2> /dev/null::research.*INSTALLED, TUNNEL::YES
|
||||
carol::ipsec status 2> /dev/null::alice.*INSTALLED, TUNNEL::YES
|
||||
carol::ipsec status 2> /dev/null::venus.*INSTALLED, TUNNEL::NO
|
||||
dave ::cat /var/log/daemon.log::authentication of .*moon.strongswan.org.* with RSA.* successful::YES
|
||||
moon ::cat /var/log/daemon.log::authentication of .*[email protected].* with RSA_EMSA_PKCS1_SHA2_512 successful::YES
|
||||
moon ::ipsec status 2> /dev/null::accounting.*ESTABLISHED.*moon.strongswan.org.*PH_IP_DAVE::YES
|
||||
dave ::ipsec status 2> /dev/null::alice.*ESTABLISHED.*PH_IP_DAVE.*moon.strongswan.org::YES
|
||||
moon ::ipsec status 2> /dev/null::accounting.*INSTALLED, TUNNEL::YES
|
||||
dave ::ipsec status 2> /dev/null::alice.*INSTALLED, TUNNEL::NO
|
||||
dave ::ipsec status 2> /dev/null::venus.*INSTALLED, TUNNEL::YES
|
||||
carol::ping -c 1 PH_IP_ALICE::64 bytes from PH_IP_ALICE: icmp_.eq=1::YES
|
||||
dave::ping -c 1 PH_IP_VENUS::64 bytes from PH_IP_VENUS: icmp_.eq=1::YES
|
||||
moon::tcpdump::IP carol.strongswan.org > moon.strongswan.org: ESP::YES
|
||||
moon::tcpdump::IP moon.strongswan.org > carol.strongswan.org: ESP::YES
|
||||
moon::tcpdump::IP dave.strongswan.org > moon.strongswan.org: ESP::YES
|
||||
moon::tcpdump::IP moon.strongswan.org > dave.strongswan.org: ESP::YES
|
||||
@@ -1,29 +0,0 @@
|
||||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
|
||||
conn %default
|
||||
ikelifetime=60m
|
||||
keylife=20m
|
||||
rekeymargin=3m
|
||||
keyingtries=1
|
||||
keyexchange=ikev2
|
||||
|
||||
conn alice
|
||||
rightsubnet=10.1.0.10/32
|
||||
also=home
|
||||
auto=add
|
||||
|
||||
conn venus
|
||||
rightsubnet=10.1.0.20/32
|
||||
also=home
|
||||
auto=add
|
||||
|
||||
conn home
|
||||
left=%any
|
||||
leftcert=carolCert.pem
|
||||
leftauth=pubkey-sha384
|
||||
leftfirewall=yes
|
||||
right=PH_IP_MOON
|
||||
[email protected]
|
||||
rightauth=pubkey
|
||||
@@ -1,5 +0,0 @@
|
||||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
charon {
|
||||
load = random nonce aes sha1 sha2 md5 pem pkcs1 curve25519 gmp x509 curl revocation hmac stroke kernel-netlink socket-default updown
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
|
||||
conn %default
|
||||
ikelifetime=60m
|
||||
keylife=20m
|
||||
rekeymargin=3m
|
||||
keyingtries=1
|
||||
keyexchange=ikev2
|
||||
|
||||
conn alice
|
||||
rightsubnet=10.1.0.10/32
|
||||
also=home
|
||||
auto=add
|
||||
|
||||
conn venus
|
||||
rightsubnet=10.1.0.20/32
|
||||
also=home
|
||||
auto=add
|
||||
|
||||
conn home
|
||||
left=%any
|
||||
leftcert=daveCert.pem
|
||||
leftauth=pubkey-sha512
|
||||
leftfirewall=yes
|
||||
right=PH_IP_MOON
|
||||
[email protected]
|
||||
rightauth=pubkey
|
||||
@@ -1,5 +0,0 @@
|
||||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
charon {
|
||||
load = random nonce aes sha1 sha2 pem pkcs1 curve25519 gmp x509 curl revocation hmac stroke kernel-netlink socket-default updown
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
|
||||
conn %default
|
||||
ikelifetime=60m
|
||||
keylife=20m
|
||||
rekeymargin=3m
|
||||
keyingtries=1
|
||||
keyexchange=ikev2
|
||||
|
||||
conn research
|
||||
rightauth=pubkey-sha384-sha256
|
||||
leftsubnet=10.1.0.0/28
|
||||
also=rw
|
||||
auto=add
|
||||
|
||||
conn accounting
|
||||
rightauth=pubkey-sha512-sha256
|
||||
leftsubnet=10.1.0.16/28
|
||||
also=rw
|
||||
auto=add
|
||||
|
||||
conn rw
|
||||
left=PH_IP_MOON
|
||||
[email protected]
|
||||
leftcert=moonCert.pem
|
||||
leftauth=pubkey
|
||||
leftfirewall=yes
|
||||
right=%any
|
||||
@@ -1,3 +0,0 @@
|
||||
# /etc/ipsec.secrets - strongSwan IPsec secrets file
|
||||
|
||||
: RSA moonKey.pem
|
||||
@@ -1,5 +0,0 @@
|
||||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
charon {
|
||||
load = random nonce aes sha1 sha2 pem pkcs1 curve25519 gmp x509 curl revocation hmac stroke kernel-netlink socket-default updown
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
moon::ipsec stop
|
||||
carol::ipsec stop
|
||||
dave::ipsec stop
|
||||
moon::iptables-restore < /etc/iptables.flush
|
||||
carol::iptables-restore < /etc/iptables.flush
|
||||
dave::iptables-restore < /etc/iptables.flush
|
||||
@@ -1,16 +0,0 @@
|
||||
moon::iptables-restore < /etc/iptables.rules
|
||||
carol::iptables-restore < /etc/iptables.rules
|
||||
dave::iptables-restore < /etc/iptables.rules
|
||||
moon::ipsec start
|
||||
carol::ipsec start
|
||||
dave::ipsec start
|
||||
moon::expect-connection research
|
||||
moon::expect-connection accounting
|
||||
carol::expect-connection alice
|
||||
carol::expect-connection venus
|
||||
carol::ipsec up alice
|
||||
carol::ipsec up venus
|
||||
dave::expect-connection alice
|
||||
dave::expect-connection venus
|
||||
dave::ipsec up alice
|
||||
dave::ipsec up venus
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/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 venus moon carol winnetou moon"
|
||||
|
||||
# Corresponding block diagram
|
||||
#
|
||||
DIAGRAM="a-v-m-c-w-d.png"
|
||||
|
||||
# Guest instances on which tcpdump is to be started
|
||||
#
|
||||
TCPDUMPHOSTS="moon"
|
||||
|
||||
# Guest instances on which IPsec is started
|
||||
# Used for IPsec logging purposes
|
||||
#
|
||||
IPSECHOSTS="moon carol dave"
|
||||
|
||||
# Guest instances on which FreeRadius is started
|
||||
#
|
||||
RADIUSHOSTS=""
|
||||
|
||||
Reference in New Issue
Block a user