From: Andreas Steffen Date: Thu, 14 Jan 2016 00:44:17 +0000 (+0100) Subject: testing: Use include statement in swanctl/rw-pubkey-keyid scenario X-Git-Tag: 5.4.0dr5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7b5171e430a1b60936d487dbb9483dda2a2cc1a;p=thirdparty%2Fstrongswan.git testing: Use include statement in swanctl/rw-pubkey-keyid scenario --- diff --git a/testing/tests/swanctl/rw-pubkey-keyid/hosts/moon/etc/swanctl/swanctl.conf b/testing/tests/swanctl/rw-pubkey-keyid/hosts/moon/etc/swanctl/swanctl.conf index b2bba5f886..eac4bc1aa7 100755 --- a/testing/tests/swanctl/rw-pubkey-keyid/hosts/moon/etc/swanctl/swanctl.conf +++ b/testing/tests/swanctl/rw-pubkey-keyid/hosts/moon/etc/swanctl/swanctl.conf @@ -1,48 +1,20 @@ connections { rw-carol { - local_addrs = 192.168.0.1 + include swanctl_base.conf - local { - auth = pubkey - pubkeys = moonPub.pem - } remote { auth = pubkey pubkeys = carolPub.pem } - children { - net { - local_ts = 10.1.0.0/16 - - updown = /usr/local/libexec/ipsec/_updown iptables - esp_proposals = aes128gcm128-ecp256 - } - } - version = 2 - proposals = aes128-sha256-ecp256 } rw-dave { - local_addrs = 192.168.0.1 + include swanctl_base.conf - local { - auth = pubkey - pubkeys = moonPub.pem - } remote { auth = pubkey pubkeys = davePub.pem } - children { - net { - local_ts = 10.1.0.0/16 - - updown = /usr/local/libexec/ipsec/_updown iptables - esp_proposals = aes128gcm128-ecp256 - } - } - version = 2 - proposals = aes128-sha256-ecp256 } } diff --git a/testing/tests/swanctl/rw-pubkey-keyid/hosts/moon/etc/swanctl/swanctl_base.conf b/testing/tests/swanctl/rw-pubkey-keyid/hosts/moon/etc/swanctl/swanctl_base.conf new file mode 100755 index 0000000000..61e71f8733 --- /dev/null +++ b/testing/tests/swanctl/rw-pubkey-keyid/hosts/moon/etc/swanctl/swanctl_base.conf @@ -0,0 +1,16 @@ + local_addrs = 192.168.0.1 + + local { + auth = pubkey + pubkeys = moonPub.pem + } + children { + net { + local_ts = 10.1.0.0/16 + + updown = /usr/local/libexec/ipsec/_updown iptables + esp_proposals = aes128gcm128-ecp256 + } + } + version = 2 + proposals = aes128-sha256-ecp256 diff --git a/testing/tests/swanctl/rw-pubkey-keyid/pretest.dat b/testing/tests/swanctl/rw-pubkey-keyid/pretest.dat index 4d9dccf127..de43d510da 100755 --- a/testing/tests/swanctl/rw-pubkey-keyid/pretest.dat +++ b/testing/tests/swanctl/rw-pubkey-keyid/pretest.dat @@ -4,6 +4,7 @@ dave::iptables-restore < /etc/iptables.rules moon::cd /etc/swanctl; rm x509/* x509ca/* carol::cd /etc/swanctl; rm x509/* x509ca/* dave::cd /etc/swanctl; rm x509/* x509ca/* +moon::cat /etc/swanctl/swanctl_base.conf moon::service charon start 2> /dev/null carol::service charon start 2> /dev/null dave::service charon start 2> /dev/null