upgraded openssl-ikev1 scenarios to 5.0.0

This commit is contained in:
Andreas Steffen
2012-05-04 12:06:45 +02:00
parent 3805e569f6
commit 90e941fb97
36 changed files with 142 additions and 207 deletions
@@ -1,13 +1,19 @@
moon::cat /var/log/auth.log::ECDSA-256 signature check passed::YES
moon::cat /var/log/auth.log::ECDSA-384 signature check passed::YES
carol::cat /var/log/auth.log::ECDSA-256 signature check passed::YES
dave::cat /var/log/auth.log::ECDSA-384 signature check passed::YES
moon::ipsec statusall::carol.*IPsec SA established::YES
moon::ipsec statusall::dave.*IPsec SA established::YES
carol::ipsec statusall::home.*IPsec SA established::YES
dave::ipsec statusall::home.*IPsec SA established::YES
carol::ipsec status 2> /dev/null::home.*ESTABLISHED.*[email protected].*moon.strongswan.org::YES
dave:: ipsec status 2> /dev/null::home.*ESTABLISHED.*[email protected].*moon.strongswan.org::YES
moon:: ipsec status 2> /dev/null::rw\[1]: ESTABLISHED.*moon.strongswan.org.*[email protected]::YES
moon:: ipsec status 2> /dev/null::rw\[2]: ESTABLISHED.*moon.strongswan.org.*[email protected]::YES
carol::ipsec status 2> /dev/null::home.*INSTALLED, TUNNEL::YES
dave:: ipsec status 2> /dev/null::home.*INSTALLED, TUNNEL::YES
moon:: ipsec status 2> /dev/null::rw[{]1}.*INSTALLED, TUNNEL::YES
moon:: ipsec status 2> /dev/null::rw[{]2}.*INSTALLED, TUNNEL::YES
moon:: cat /var/log/daemon.log::looking for ECDSA-256 signature peer configs matching.*[email protected]::YES
moon:: cat /var/log/daemon.log::looking for ECDSA-384 signature peer configs matching.*[email protected]::YES
moon:: cat /var/log/daemon.log::authentication of.*[email protected].*with ECDSA successful::YES
moon:: cat /var/log/daemon.log::authentication of.*[email protected].*with ECDSA successful::YES
carol::cat /var/log/daemon.log::authentication of.*moon.strongswan.org.*with ECDSA successful::YES
dave:: cat /var/log/daemon.log::authentication of.*moon.strongswan.org.*with ECDSA successful::YES
carol::ping -c 1 PH_IP_ALICE::64 bytes from PH_IP_ALICE: icmp_seq=1::YES
dave::ping -c 1 PH_IP_ALICE::64 bytes from PH_IP_ALICE: icmp_seq=1::YES
dave:: ping -c 1 PH_IP_ALICE::64 bytes from PH_IP_ALICE: icmp_seq=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
@@ -1,9 +1,7 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
crlcheckinterval=180
plutodebug=control
charonstart=no
plutostart=no
conn %default
ikelifetime=60m
@@ -1,11 +1,5 @@
# /etc/strongswan.conf - strongSwan configuration file
pluto {
load = pem pkcs1 openssl random hmac curl kernel-netlink
}
# pluto uses optimized DH exponent sizes (RFC 3526)
libstrongswan {
dh_exponent_ansi_x9_42 = no
charon {
load = curl pem pkcs1 openssl revocation random hmac stroke kernel-netlink socket-default updown
}
@@ -1,10 +1,8 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
crlcheckinterval=180
plutodebug=control
charonstart=no
plutostart=no
conn %default
ikelifetime=60m
keylife=20m
@@ -1,11 +1,5 @@
# /etc/strongswan.conf - strongSwan configuration file
pluto {
load = pem pkcs1 pem pkcs1 openssl random hmac curl kernel-netlink
}
# pluto uses optimized DH exponent sizes (RFC 3526)
libstrongswan {
dh_exponent_ansi_x9_42 = no
charon {
load = curl pem pkcs1 openssl revocation random hmac stroke kernel-netlink socket-default updown
}
@@ -1,9 +1,7 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
crlcheckinterval=180
plutodebug=control
charonstart=no
plutostart=no
conn %default
ikelifetime=60m
@@ -12,21 +10,11 @@ conn %default
keyingtries=1
keyexchange=ikev1
conn carol
also=moon
leftcert=moon_ec256_Cert.pem
[email protected]
auto=add
conn dave
also=moon
leftcert=moon_ec384_Cert.pem
[email protected]
auto=add
conn moon
conn rw
left=PH_IP_MOON
leftcert=moonCert.pem
[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K/0+eLz8Ec1zpWuF5vasFHkVhauHdnECQgEVuYTrlry9gAx7G4kH
mne2yDxTclEDziWxPG4UkZbkGttf9eZlsXmNoX/Z/fojXxMYZaPqM3eOT2h6ezMD
CI9WpQ==
-----END CERTIFICATE-----
@@ -0,0 +1,7 @@
-----BEGIN EC PRIVATE KEY-----
MIHcAgEBBEIBrBxHEGICJRNkhm0HWfARp+dIzm6Lw7eCbQXNM6jSGL4DVNDVCV42
yOKQqifWEcNWxO+wWtBaz91IF5hz/m4TbOGgBwYFK4EEACOhgYkDgYYABAC5p5fz
1Mvb+0LHPdeJHc2Pk0OlWNtfdqEaGvUpKcV67ORp1kiaM98op6Tx3XIR9FJJyrfw
tiJNpO4swx/2WruYDQA9T6ga2FrXD/rC5x9RvQU4m62p4gFEqUmg4Ylq307XkTVq
pM2SN+2umHynAWaM0HL2DFtXKNeRMGU6baspFxHqbg==
-----END EC PRIVATE KEY-----
@@ -1,5 +1,3 @@
# /etc/ipsec.secrets - strongSwan IPsec secrets file
: ECDSA moon_ec256_Key.pem
: ECDSA moon_ec384_Key.pem
: ECDSA moonKey.pem
@@ -1,11 +1,5 @@
# /etc/strongswan.conf - strongSwan configuration file
pluto {
load = pem pkcs1 openssl random hmac curl kernel-netlink
}
# pluto uses optimized DH exponent sizes (RFC 3526)
libstrongswan {
dh_exponent_ansi_x9_42 = no
charon {
load = curl pem pkcs1 openssl revocation random hmac stroke kernel-netlink socket-default updown
}
@@ -4,5 +4,3 @@ dave::ipsec stop
moon::/etc/init.d/iptables stop 2> /dev/null
carol::/etc/init.d/iptables stop 2> /dev/null
dave::/etc/init.d/iptables stop 2> /dev/null
moon::rm /etc/ipsec.d/private/*
moon::rm /etc/ipsec.d/certs/*