testing: Converted ipv6/rw-psk-ikev2 to swanctl

This commit is contained in:
Andreas Steffen
2017-11-10 11:49:49 +01:00
parent 0770b37f8f
commit 34acd584e5
17 changed files with 174 additions and 96 deletions
@@ -1,18 +0,0 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev2
authby=secret
conn home
left=PH_IP6_CAROL
leftfirewall=yes
right=PH_IP6_MOON
rightsubnet=fec1::/16
auto=add
@@ -1,3 +0,0 @@
# /etc/ipsec.secrets - strongSwan IPsec secrets file
PH_IP6_CAROL : PSK 0sFpZAZqEN6Ti9sqt4ZP5EWcqx
@@ -1,5 +1,18 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
load = random nonce aes sha1 sha2 curve25519 hmac stroke kernel-netlink socket-default updown
swanctl {
load = pem pkcs1 x509 revocation constraints pubkey openssl random
}
charon-systemd {
load = random nonce aes sha1 sha2 curve25519 hmac vici kernel-netlink socket-default updown
syslog {
daemon {
default = 1
}
auth {
default = 0
}
}
}
@@ -0,0 +1,34 @@
connections {
home {
local_addrs = fec0::10
remote_addrs = fec0::1
local {
auth = psk
id = fec0::10
}
remote {
auth = psk
id = fec0::1
}
children {
home {
remote_ts = fec1::0/16
updown = /usr/local/libexec/ipsec/_updown iptables
esp_proposals = aes128-sha256-x25519
}
}
version = 2
proposals = aes128-sha256-x25519
}
}
secrets {
ike-moon {
id = fec0::1
secret = 0sFpZAZqEN6Ti9sqt4ZP5EWcqx
}
}
@@ -1,19 +0,0 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
strictcrlpolicy=no
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev2
authby=secret
conn home
left=PH_IP6_DAVE
leftfirewall=yes
right=PH_IP6_MOON
rightsubnet=fec1::/16
auto=add
@@ -1,3 +0,0 @@
# /etc/ipsec.secrets - strongSwan IPsec secrets file
PH_IP6_DAVE : PSK 0sjVzONCF02ncsgiSlmIXeqhGN
@@ -1,5 +1,18 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
load = random nonce aes sha1 sha2 curve25519 hmac stroke kernel-netlink socket-default updown
swanctl {
load = pem pkcs1 x509 revocation constraints pubkey openssl random
}
charon-systemd {
load = random nonce aes sha1 sha2 curve25519 hmac vici kernel-netlink socket-default updown
syslog {
daemon {
default = 1
}
auth {
default = 0
}
}
}
@@ -0,0 +1,34 @@
connections {
home {
local_addrs = fec0::20
remote_addrs = fec0::1
local {
auth = psk
id = fec0::20
}
remote {
auth = psk
id = fec0::1
}
children {
home {
remote_ts = fec1::0/16
updown = /usr/local/libexec/ipsec/_updown iptables
esp_proposals = aes128-sha256-x25519
}
}
version = 2
proposals = aes128-sha256-x25519
}
}
secrets {
ike-moon {
id = fec0::1
secret = 0sjVzONCF02ncsgiSlmIXeqhGN
}
}
@@ -1,18 +0,0 @@
# /etc/ipsec.conf - strongSwan IPsec configuration file
config setup
conn %default
ikelifetime=60m
keylife=20m
rekeymargin=3m
keyingtries=1
keyexchange=ikev2
authby=secret
conn rw
left=PH_IP6_MOON
leftsubnet=fec1::/16
leftfirewall=yes
right=%any
auto=add
@@ -1,5 +0,0 @@
# /etc/ipsec.secrets - strongSwan IPsec secrets file
PH_IP6_CAROL : PSK 0sFpZAZqEN6Ti9sqt4ZP5EWcqx
PH_IP6_DAVE : PSK 0sjVzONCF02ncsgiSlmIXeqhGN
@@ -1,5 +1,18 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
load = random nonce aes sha1 sha2 curve25519 hmac stroke kernel-netlink socket-default updown
swanctl {
load = pem pkcs1 x509 revocation constraints pubkey openssl random
}
charon-systemd {
load = random nonce aes sha1 sha2 curve25519 hmac vici kernel-netlink socket-default updown
syslog {
daemon {
default = 1
}
auth {
default = 0
}
}
}
@@ -0,0 +1,37 @@
connections {
rw {
local_addrs = fec0::1
local {
auth = psk
id = fec0::1
}
remote {
auth = psk
}
children {
net {
local_ts = fec1::0/16
updown = /usr/local/libexec/ipsec/_updown iptables
esp_proposals = aes128-sha256-x25519
}
}
version = 2
proposals = aes128-sha256-x25519
}
}
secrets {
ike-carol {
id = fec0::10
secret = 0sFpZAZqEN6Ti9sqt4ZP5EWcqx
}
ike-dave {
id = fec0::20
secret = 0sjVzONCF02ncsgiSlmIXeqhGN
}
}