testing: Migrated openssl-ikev2/net2net-pkcs12 scenario to swanctl

This commit is contained in:
Andreas Steffen
2018-11-12 13:46:16 +01:00
parent 836e870912
commit 440e6a03c1
15 changed files with 94 additions and 79 deletions
@@ -1,23 +0,0 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev2
ike=aes128-sha256-modp3072!
esp=aes128gcm16!
mobike=no
conn net-net
left=PH_IP_MOON
[email protected]
leftsubnet=10.1.0.0/16
leftfirewall=yes
right=PH_IP_SUN
[email protected]
rightsubnet=10.2.0.0/16
auto=add
@@ -1,3 +0,0 @@
# /etc/ipsec.secrets - strongSwan IPsec secrets file
: P12 moonCert.p12 "kUqd8O7mzbjXNJKQ"
@@ -1,6 +1,6 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
load = pem nonce revocation openssl curl stroke kernel-netlink socket-default updown
load = pem nonce revocation openssl curl vici kernel-netlink socket-default updown
multiple_authentication = no
}
@@ -0,0 +1,36 @@
connections {
gw-gw {
local_addrs = 192.168.0.1
remote_addrs = 192.168.0.2
local {
auth = pubkey
id = moon.strongswan.org
}
remote {
auth = pubkey
id = sun.strongswan.org
}
children {
net-net {
local_ts = 10.1.0.0/16
remote_ts = 10.2.0.0/16
updown = /usr/local/libexec/ipsec/_updown iptables
esp_proposals = aes128gcm128-modp3072
}
}
version = 2
mobike = no
proposals = aes128-sha256-modp3072
}
}
secrets {
pkcs12-moon {
file = moonCert.p12
secret = "kUqd8O7mzbjXNJKQ"
}
}