testing: Converted libipsec/net2net-3des to swanctl

This commit is contained in:
Andreas Steffen
2017-11-10 11:49:39 +01:00
parent 6922d5e56a
commit de42a67b79
10 changed files with 102 additions and 67 deletions
@@ -1,24 +0,0 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev2
ike=3des-sha1-modp2048!
esp=3des-sha1-modp2048!
mobike=no
conn net-net
left=PH_IP_SUN
leftcert=sunCert.pem
[email protected]
leftsubnet=10.2.0.0/16
leftupdown=/etc/updown
right=PH_IP_MOON
[email protected]
rightsubnet=10.1.0.0/16
auto=add
@@ -1,6 +1,19 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
load = random nonce des sha1 sha2 pem pkcs1 gmp x509 curl revocation hmac stroke kernel-libipsec kernel-netlink socket-default updown
swanctl {
load = pem pkcs1 x509 revocation constraints pubkey openssl random
}
charon-systemd {
load = random nonce des sha1 sha2 pem pkcs1 gmp x509 curl revocation hmac vici kernel-libipsec kernel-netlink socket-default updown
syslog {
daemon {
default = 1
}
auth {
default = 0
}
}
multiple_authentication = no
}
@@ -0,0 +1,29 @@
connections {
gw-gw {
local_addrs = 192.168.0.2
remote_addrs = 192.168.0.1
local {
auth = pubkey
certs = sunCert.pem
id = sun.strongswan.org
}
remote {
auth = pubkey
id = moon.strongswan.org
}
children {
net-net {
local_ts = 10.2.0.0/16
remote_ts = 10.1.0.0/16
updown = /etc/updown
esp_proposals = 3des-sha1-modp2048
}
}
version = 2
mobike = no
proposals = 3des-sha1-modp2048
}
}