Skip to content

Commit 2173575

Browse files
committed
testing: Migrated openssl alg-ecp-high scenarios
1 parent a4c0859 commit 2173575

File tree

28 files changed

+202
-172
lines changed

28 files changed

+202
-172
lines changed

testing/tests/openssl-ikev1/alg-ecp-high/description.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ certificate functions whereas roadwarrior <b>dave</b> uses the default <b>strong
44
cryptographical plugins <b>aes des sha1 sha2 md5 gmp x509</b> plus the <b>openssl</b>
55
plugin for the Elliptic Curve Diffie-Hellman groups only.
66
<p>
7-
The roadwarriors <b>carol</b> and <b>dave</b> set up a connection each
7+
The roadwarriors <b>carol</b> and <b>dave</b> set up a connection each
88
to gateway <b>moon</b>. The authentication is based on <b>X.509 certificates</b>.
99
<b>carol</b> proposes the DH groups ECP_256 and ECP_384 whereas <b>dave</b> proposes
1010
ECP_256 and ECP_521. Since <b>moon</b> does not support ECP_256 the roadwarriors
1111
fall back to ECP_384 and ECP_521, respectively.
1212
<p>
13-
Upon the successful establishment of the IPsec tunnels, <b>leftfirewall=yes</b>
14-
automatically inserts iptables-based firewall rules that let pass the tunneled traffic.
13+
Upon the successful establishment of the IPsec tunnels, the updown script automatically
14+
inserts iptables-based firewall rules that let pass the tunneled traffic.
1515
In order to test both tunnel and firewall, both <b>carol</b> and <b>dave</b> ping
1616
the client <b>alice</b> behind the gateway <b>moon</b>.
1717

testing/tests/openssl-ikev1/alg-ecp-high/evaltest.dat

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
carol::ipsec status 2> /dev/null::home.*ESTABLISHED.*carol@strongswan.org.*moon.strongswan.org::YES
2-
dave:: ipsec status 2> /dev/null::home.*ESTABLISHED.*dave@strongswan.org.*moon.strongswan.org::YES
3-
moon:: ipsec status 2> /dev/null::rw\[1]: ESTABLISHED.*moon.strongswan.org.*carol@strongswan.org::YES
4-
moon:: ipsec status 2> /dev/null::rw\[2]: ESTABLISHED.*moon.strongswan.org.*dave@strongswan.org::YES
5-
carol::ipsec status 2> /dev/null::home.*INSTALLED, TUNNEL::YES
6-
dave:: ipsec status 2> /dev/null::home.*INSTALLED, TUNNEL::YES
7-
moon:: ipsec status 2> /dev/null::rw[{]1}.*INSTALLED, TUNNEL::YES
8-
moon:: ipsec status 2> /dev/null::rw[{]2}.*INSTALLED, TUNNEL::YES
9-
carol::ipsec statusall 2> /dev/null::home.*AES_CBC_192/HMAC_SHA2_384_192/PRF_HMAC_SHA2_384/ECP_384::YES
10-
dave:: ipsec statusall 2> /dev/null::home.*AES_CBC_256/HMAC_SHA2_512_256/PRF_HMAC_SHA2_512/ECP_521::YES
111
carol::ping -c 1 PH_IP_ALICE::64 bytes from PH_IP_ALICE: icmp_.eq=1::YES
122
dave:: ping -c 1 PH_IP_ALICE::64 bytes from PH_IP_ALICE: icmp_.eq=1::YES
3+
carol::swanctl --list-sas --raw 2> /dev/null::home.*version=1 state=ESTABLISHED local-host=192.168.0.100 local-port=500 local-id=carol@strongswan.org remote-host=192.168.0.1 remote-port=500 remote-id=moon.strongswan.org initiator=yes.*encr-alg=AES_CBC encr-keysize=192 integ-alg=HMAC_SHA2_384_192 prf-alg=PRF_HMAC_SHA2_384 dh-group=ECP_384.*child-sas.*home.*state=INSTALLED mode=TUNNEL.*ESP.*encr-alg=AES_GCM_16 encr-keysize=192.*local-ts=\[192.168.0.100/32] remote-ts=\[10.1.0.0/16]::YES
4+
dave:: swanctl --list-sas --raw 2> /dev/null::home.*version=1 state=ESTABLISHED local-host=192.168.0.200 local-port=500 local-id=dave@strongswan.org remote-host=192.168.0.1 remote-port=500 remote-id=moon.strongswan.org initiator=yes.*encr-alg=AES_CBC encr-keysize=256 integ-alg=HMAC_SHA2_512_256 prf-alg=PRF_HMAC_SHA2_512 dh-group=ECP_521.*child-sas.*home.*state=INSTALLED mode=TUNNEL.*ESP.*encr-alg=AES_GCM_16 encr-keysize=256.*local-ts=\[192.168.0.200/32] remote-ts=\[10.1.0.0/16]::YES
5+
moon:: swanctl --list-sas --ike-id 1 --raw 2> /dev/null::rw.*version=1 state=ESTABLISHED local-host=192.168.0.1 local-port=500 local-id=moon.strongswan.org remote-host=192.168.0.100 remote-port=500 remote-id=carol@strongswan.org.*encr-alg=AES_CBC encr-keysize=192 integ-alg=HMAC_SHA2_384_192 prf-alg=PRF_HMAC_SHA2_384 dh-group=ECP_384.*child-sas.*net.*reqid=1 state=INSTALLED mode=TUNNEL.*ESP.*encr-alg=AES_GCM_16 encr-keysize=192.*local-ts=\[10.1.0.0/16] remote-ts=\[192.168.0.100/32]::YES
6+
moon:: swanctl --list-sas --ike-id 2 --raw 2> /dev/null::rw.*version=1 state=ESTABLISHED local-host=192.168.0.1 local-port=500 local-id=moon.strongswan.org remote-host=192.168.0.200 remote-port=500 remote-id=dave@strongswan.org.*encr-alg=AES_CBC encr-keysize=256 integ-alg=HMAC_SHA2_512_256 prf-alg=PRF_HMAC_SHA2_512 dh-group=ECP_521.*child-sas.*net.*reqid=2 state=INSTALLED mode=TUNNEL.*ESP.*encr-alg=AES_GCM_16 encr-keysize=256.*local-ts=\[10.1.0.0/16] remote-ts=\[192.168.0.200/32]::YES
137
moon::tcpdump::IP carol.strongswan.org > moon.strongswan.org: ESP::YES
148
moon::tcpdump::IP moon.strongswan.org > carol.strongswan.org: ESP::YES
159
moon::tcpdump::IP dave.strongswan.org > moon.strongswan.org: ESP::YES

testing/tests/openssl-ikev1/alg-ecp-high/hosts/carol/etc/ipsec.conf

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# /etc/strongswan.conf - strongSwan configuration file
22

33
charon {
4-
load = pem pkcs1 openssl curl revocation random nonce hmac stroke kernel-netlink socket-default updown
4+
load = random nonce pem pkcs1 openssl curl revocation vici kernel-netlink socket-default updown
55
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
connections {
2+
3+
home {
4+
local_addrs = 192.168.0.100
5+
remote_addrs = 192.168.0.1
6+
7+
local {
8+
auth = pubkey
9+
certs = carolCert.pem
10+
id = carol@strongswan.org
11+
}
12+
remote {
13+
auth = pubkey
14+
id = moon.strongswan.org
15+
}
16+
children {
17+
home {
18+
remote_ts = 10.1.0.0/16
19+
20+
updown = /usr/local/libexec/ipsec/_updown iptables
21+
esp_proposals = aes128gcm16-ecp256,aes192gcm16-ecp384
22+
}
23+
}
24+
version = 1
25+
proposals = aes128-sha256-ecp256,aes192-sha384-ecp384
26+
}
27+
}

testing/tests/openssl-ikev1/alg-ecp-high/hosts/dave/etc/ipsec.conf

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# /etc/strongswan.conf - strongSwan configuration file
22

33
charon {
4-
load = aes des sha1 sha2 md5 pem pkcs1 gmp pem pkcs1 x509 openssl curl revocation random nonce hmac stroke kernel-netlink socket-default updown
4+
load = random nonce aes sha1 sha2 gmp pem pkcs1 hmac x509 openssl curl revocation vici kernel-netlink socket-default updown
55
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
connections {
2+
3+
home {
4+
local_addrs = 192.168.0.200
5+
remote_addrs = 192.168.0.1
6+
7+
local {
8+
auth = pubkey
9+
certs = daveCert.pem
10+
id = dave@strongswan.org
11+
}
12+
remote {
13+
auth = pubkey
14+
id = moon.strongswan.org
15+
}
16+
children {
17+
home {
18+
remote_ts = 10.1.0.0/16
19+
20+
updown = /usr/local/libexec/ipsec/_updown iptables
21+
esp_proposals = aes128gcm16-ecp256,aes256gcm16-ecp521
22+
}
23+
}
24+
version = 1
25+
proposals = aes128-sha256-ecp256,aes256-sha512-ecp521
26+
}
27+
}

testing/tests/openssl-ikev1/alg-ecp-high/hosts/moon/etc/ipsec.conf

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# /etc/strongswan.conf - strongSwan configuration file
22

33
charon {
4-
load = pem pkcs1 openssl curl revocation random nonce hmac stroke kernel-netlink socket-default updown
4+
load = random nonce pem pkcs1 openssl curl revocation vici kernel-netlink socket-default updown
55
}

0 commit comments

Comments
 (0)