testing: Added swanctl/net2net-multicast scenario

This commit is contained in:
Andreas Steffen
2016-09-27 18:36:28 +02:00
parent d7e0ce2878
commit a9562a3f58
9 changed files with 166 additions and 0 deletions
@@ -0,0 +1,22 @@
# /etc/strongswan.conf - strongSwan configuration file
swanctl {
load = pem pkcs1 x509 revocation constraints pubkey openssl random
}
charon {
load = random nonce aes sha1 sha2 pem pkcs1 gmp x509 curl revocation hmac kernel-netlink socket-default forecast vici
start-scripts {
creds = /usr/local/sbin/swanctl --load-creds
conns = /usr/local/sbin/swanctl --load-conns
}
multiple_authentication = no
plugins {
forecast {
groups = 224.0.0.251
interface = eth1
}
}
}
@@ -0,0 +1,35 @@
connections {
gw-gw {
local_addrs = 192.168.0.1
remote_addrs = 192.168.0.2
local {
auth = pubkey
certs = moonCert.pem
id = moon.strongswan.org
}
remote {
auth = pubkey
id = sun.strongswan.org
}
children {
net-net {
local_ts = 10.1.0.0/16,224.0.0.251/32
remote_ts = 10.2.0.0/16,224.0.0.251/32
mark_in = %unique
mark_out = %unique
updown = /usr/local/libexec/ipsec/_updown iptables
rekey_time = 5400
rekey_bytes = 500000000
rekey_packets = 1000000
esp_proposals = aes128gcm128-modp3072
}
}
version = 2
mobike = no
reauth_time = 10800
proposals = aes128-sha256-modp3072
}
}
@@ -0,0 +1,18 @@
# /etc/strongswan.conf - strongSwan configuration file
charon {
load = random nonce aes sha1 sha2 pem pkcs1 gmp x509 curl revocation hmac kernel-netlink socket-default forecast vici
start-scripts {
creds = /usr/local/sbin/swanctl --load-creds
conns = /usr/local/sbin/swanctl --load-conns
}
multiple_authentication = no
plugins {
forecast {
groups = 224.0.0.251
interface = eth1
}
}
}
@@ -0,0 +1,35 @@
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,224.0.0.251/32
remote_ts = 10.1.0.0/16,224.0.0.251/32
mark_in = %unique
mark_out = %unique
updown = /usr/local/libexec/ipsec/_updown iptables
rekey_time = 5400
rekey_bytes = 500000000
rekey_packets = 1000000
esp_proposals = aes128gcm128-modp3072
}
}
version = 2
mobike = no
reauth_time = 10800
proposals = aes128-sha256-modp3072
}
}