From 7b0305f59ddab9ea026b202a8c569912e5bf9a90 Mon Sep 17 00:00:00 2001 From: Rene Mayrhofer Date: Wed, 4 Jul 2007 23:47:20 +0000 Subject: [svn-upgrade] Integrating new upstream version, strongswan (4.1.4) --- testing/INSTALL | 6 +- testing/do-tests | 10 +- testing/hosts/alice/etc/conf.d/net | 2 + testing/hosts/alice/etc/init.d/net.eth1 | 1124 ++++++++++++++++++++ testing/hosts/carol/etc/init.d/iptables | 4 + testing/hosts/carol/etc/ipsec.conf | 1 - testing/hosts/dave/etc/init.d/iptables | 4 + testing/hosts/default/etc/hosts | 2 + testing/hosts/moon/etc/init.d/iptables | 4 + testing/hosts/moon/etc/ipsec.conf | 1 - testing/scripts/build-hostconfig | 8 +- testing/scripts/start-switches | 2 +- testing/testing.conf | 36 +- .../tests/ike/rw-cert/hosts/dave/etc/ipsec.conf | 1 - .../tests/ike/rw-cert/hosts/moon/etc/ipsec.conf | 1 - .../ike/rw_v1-net_v2/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/alg-blowfish/hosts/carol/etc/ipsec.conf | 2 +- .../ikev1/alg-blowfish/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/alg-serpent/hosts/carol/etc/ipsec.conf | 2 +- .../ikev1/alg-serpent/hosts/moon/etc/ipsec.conf | 1 - .../alg-sha-equals-sha1/hosts/carol/etc/ipsec.conf | 1 - .../alg-sha-equals-sha1/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/alg-sha2_256/hosts/carol/etc/ipsec.conf | 2 +- .../ikev1/alg-sha2_256/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/alg-twofish/hosts/carol/etc/ipsec.conf | 2 +- .../ikev1/alg-twofish/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/attr-cert/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/attr-cert/hosts/dave/etc/ipsec.conf | 1 - .../ikev1/attr-cert/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/compress/hosts/carol/etc/ipsec.conf | 1 - .../tests/ikev1/compress/hosts/moon/etc/ipsec.conf | 1 - .../crl-from-cache/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/crl-from-cache/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/crl-ldap/hosts/carol/etc/ipsec.conf | 1 - .../tests/ikev1/crl-ldap/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/crl-revoked/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/crl-revoked/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/crl-strict/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/crl-strict/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/crl-to-cache/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/crl-to-cache/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/default-keys/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/default-keys/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/dpd-clear/hosts/moon/etc/ipsec.conf | 1 - .../tests/ikev1/dynamic-initiator/description.txt | 12 + testing/tests/ikev1/dynamic-initiator/evaltest.dat | 8 + .../dynamic-initiator/hosts/carol/etc/ipsec.conf | 29 + .../dynamic-initiator/hosts/dave/etc/ipsec.conf | 29 + .../hosts/dave/etc/ipsec.d/certs/carolCert.pem | 25 + .../hosts/dave/etc/ipsec.d/private/carolKey.pem | 30 + .../dynamic-initiator/hosts/dave/etc/ipsec.secrets | 3 + .../dynamic-initiator/hosts/moon/etc/ipsec.conf | 26 + testing/tests/ikev1/dynamic-initiator/posttest.dat | 11 + testing/tests/ikev1/dynamic-initiator/pretest.dat | 13 + testing/tests/ikev1/dynamic-initiator/test.conf | 21 + .../tests/ikev1/dynamic-responder/description.txt | 13 + testing/tests/ikev1/dynamic-responder/evaltest.dat | 8 + .../dynamic-responder/hosts/carol/etc/ipsec.conf | 29 + .../dynamic-responder/hosts/dave/etc/ipsec.conf | 29 + .../hosts/dave/etc/ipsec.d/certs/carolCert.pem | 25 + .../hosts/dave/etc/ipsec.d/private/carolKey.pem | 30 + .../dynamic-responder/hosts/dave/etc/ipsec.secrets | 3 + .../dynamic-responder/hosts/moon/etc/ipsec.conf | 26 + testing/tests/ikev1/dynamic-responder/posttest.dat | 11 + testing/tests/ikev1/dynamic-responder/pretest.dat | 13 + testing/tests/ikev1/dynamic-responder/test.conf | 21 + .../tests/ikev1/dynamic-two-peers/description.txt | 15 + testing/tests/ikev1/dynamic-two-peers/evaltest.dat | 10 + .../dynamic-two-peers/hosts/carol/etc/ipsec.conf | 28 + .../dynamic-two-peers/hosts/dave/etc/ipsec.conf | 28 + .../dynamic-two-peers/hosts/moon/etc/hosts.stale | 67 ++ .../dynamic-two-peers/hosts/moon/etc/ipsec.conf | 31 + testing/tests/ikev1/dynamic-two-peers/posttest.dat | 10 + testing/tests/ikev1/dynamic-two-peers/pretest.dat | 12 + testing/tests/ikev1/dynamic-two-peers/test.conf | 21 + .../esp-ah-transport/hosts/carol/etc/ipsec.conf | 1 - .../esp-ah-transport/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/esp-ah-tunnel/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/esp-ah-tunnel/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/esp-alg-des/hosts/carol/etc/ipsec.conf | 2 +- .../ikev1/esp-alg-des/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/esp-alg-null/hosts/carol/etc/ipsec.conf | 2 +- .../ikev1/esp-alg-null/hosts/moon/etc/ipsec.conf | 1 - .../esp-alg-strict-fail/hosts/carol/etc/ipsec.conf | 2 +- .../esp-alg-strict-fail/hosts/moon/etc/ipsec.conf | 1 - .../esp-alg-strict/hosts/carol/etc/ipsec.conf | 2 +- .../ikev1/esp-alg-strict/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/esp-alg-weak/hosts/carol/etc/ipsec.conf | 2 +- .../ikev1/esp-alg-weak/hosts/moon/etc/ipsec.conf | 1 - .../host2host-swapped/hosts/moon/etc/ipsec.conf | 1 - .../host2host-swapped/hosts/sun/etc/ipsec.conf | 1 - .../host2host-transport/hosts/moon/etc/ipsec.conf | 1 - .../host2host-transport/hosts/sun/etc/ipsec.conf | 1 - .../ike-alg-sha2_384/hosts/carol/etc/ipsec.conf | 1 - .../ike-alg-sha2_384/hosts/moon/etc/ipsec.conf | 1 - .../ike-alg-sha2_512/hosts/carol/etc/ipsec.conf | 1 - .../ike-alg-sha2_512/hosts/moon/etc/ipsec.conf | 1 - .../ike-alg-strict-fail/hosts/carol/etc/ipsec.conf | 4 +- .../ike-alg-strict-fail/hosts/moon/etc/ipsec.conf | 1 - .../ike-alg-strict/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/ike-alg-strict/hosts/moon/etc/ipsec.conf | 1 - .../mode-config-push/hosts/carol/etc/ipsec.conf | 1 - .../mode-config-push/hosts/dave/etc/ipsec.conf | 1 - .../mode-config-push/hosts/moon/etc/ipsec.conf | 1 - .../mode-config-swapped/hosts/carol/etc/ipsec.conf | 1 - .../mode-config-swapped/hosts/dave/etc/ipsec.conf | 1 - .../mode-config-swapped/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/mode-config/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/mode-config/hosts/dave/etc/ipsec.conf | 1 - .../ikev1/mode-config/hosts/moon/etc/ipsec.conf | 1 - .../multi-level-ca-ldap/hosts/carol/etc/ipsec.conf | 1 - .../multi-level-ca-ldap/hosts/dave/etc/ipsec.conf | 1 - .../multi-level-ca-ldap/hosts/moon/etc/ipsec.conf | 1 - .../multi-level-ca-loop/hosts/carol/etc/ipsec.conf | 1 - .../multi-level-ca-loop/hosts/moon/etc/ipsec.conf | 1 - .../hosts/carol/etc/ipsec.conf | 1 - .../hosts/moon/etc/ipsec.conf | 1 - .../hosts/carol/etc/ipsec.conf | 1 - .../hosts/dave/etc/ipsec.conf | 1 - .../hosts/moon/etc/ipsec.conf | 1 - .../multi-level-ca/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/multi-level-ca/hosts/dave/etc/ipsec.conf | 1 - .../ikev1/multi-level-ca/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/nat-before-esp/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/nat-two-rw-psk/hosts/sun/etc/ipsec.conf | 1 - .../ikev1/net2net-pgp/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/net2net-pgp/hosts/sun/etc/ipsec.conf | 1 - .../net2net-psk-fail/hosts/moon/etc/ipsec.conf | 1 - .../net2net-psk-fail/hosts/sun/etc/ipsec.conf | 1 - .../ikev1/net2net-psk/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/net2net-psk/hosts/sun/etc/ipsec.conf | 1 - .../ikev1/net2net-route/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/net2net-rsa/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/net2net-rsa/hosts/sun/etc/ipsec.conf | 1 - .../ikev1/net2net-start/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/ocsp-revoked/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/ocsp-revoked/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/ocsp-strict/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/ocsp-strict/hosts/moon/etc/ipsec.conf | 1 - testing/tests/ikev1/passthrough/description.txt | 6 + testing/tests/ikev1/passthrough/evaltest.dat | 9 + .../ikev1/passthrough/hosts/moon/etc/ipsec.conf | 32 + .../ikev1/passthrough/hosts/sun/etc/ipsec.conf | 25 + testing/tests/ikev1/passthrough/posttest.dat | 4 + testing/tests/ikev1/passthrough/pretest.dat | 8 + testing/tests/ikev1/passthrough/test.conf | 21 + .../protoport-dual/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/protoport-dual/hosts/moon/etc/ipsec.conf | 1 - .../protoport-pass/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/protoport-pass/hosts/moon/etc/ipsec.conf | 1 - testing/tests/ikev1/protoport-pass/posttest.dat | 1 + testing/tests/ikev1/protoport-pass/pretest.dat | 1 + .../protoport-route/hosts/carol/etc/ipsec.conf | 1 - .../protoport-route/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/req-pkcs10/hosts/carol/etc/ipsec.conf | 1 - .../rw-psk-fqdn-named/hosts/carol/etc/ipsec.conf | 1 - .../rw-psk-fqdn-named/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/rw-psk-fqdn/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/rw-psk-fqdn/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/rw-psk-ipv4/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/rw-psk-ipv4/hosts/moon/etc/ipsec.conf | 1 - .../rw-psk-no-policy/hosts/carol/etc/ipsec.conf | 1 - .../rw-psk-no-policy/hosts/moon/etc/ipsec.conf | 1 - .../rw-psk-rsa-mixed/hosts/carol/etc/ipsec.conf | 1 - .../rw-psk-rsa-mixed/hosts/moon/etc/ipsec.conf | 1 - .../rw-rsa-no-policy/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/self-signed/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/self-signed/hosts/moon/etc/ipsec.conf | 1 - .../starter-also-loop/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/starter-also/hosts/moon/etc/ipsec.conf | 1 - .../starter-includes/hosts/carol/etc/ipsec.conf | 1 - .../starter-includes/hosts/dave/etc/ipsec.conf | 1 - .../ikev1/strong-certs/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/strong-certs/hosts/dave/etc/ipsec.conf | 1 - .../ikev1/strong-certs/hosts/moon/etc/ipsec.conf | 1 - .../virtual-ip-swapped/hosts/carol/etc/ipsec.conf | 1 - .../virtual-ip-swapped/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/virtual-ip/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/virtual-ip/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/wildcards/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/wildcards/hosts/dave/etc/ipsec.conf | 1 - .../ikev1/wildcards/hosts/moon/etc/ipsec.conf | 1 - .../tests/ikev1/wlan/hosts/alice/etc/ipsec.conf | 2 - testing/tests/ikev1/wlan/hosts/moon/etc/ipsec.conf | 1 - .../tests/ikev1/wlan/hosts/venus/etc/ipsec.conf | 2 - .../hosts/carol/etc/ipsec.conf | 1 - .../hosts/dave/etc/ipsec.conf | 1 - .../hosts/moon/etc/ipsec.conf | 1 - .../ikev1/xauth-psk/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/xauth-psk/hosts/dave/etc/ipsec.conf | 1 - .../ikev1/xauth-psk/hosts/moon/etc/ipsec.conf | 1 - .../xauth-rsa-fail/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/xauth-rsa-fail/hosts/moon/etc/ipsec.conf | 1 - .../hosts/carol/etc/ipsec.conf | 1 - .../hosts/dave/etc/ipsec.conf | 1 - .../hosts/moon/etc/ipsec.conf | 1 - .../xauth-rsa-nosecret/hosts/carol/etc/ipsec.conf | 1 - .../xauth-rsa-nosecret/hosts/moon/etc/ipsec.conf | 1 - .../ikev1/xauth-rsa/hosts/carol/etc/ipsec.conf | 1 - .../ikev1/xauth-rsa/hosts/dave/etc/ipsec.conf | 1 - .../ikev1/xauth-rsa/hosts/moon/etc/ipsec.conf | 1 - .../hosts/carol/etc/ipsec.conf | 1 - .../hosts/dave/etc/ipsec.conf | 1 - .../hosts/moon/etc/ipsec.conf | 1 - .../config-payload/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/config-payload/hosts/dave/etc/ipsec.conf | 1 - .../ikev2/config-payload/hosts/moon/etc/ipsec.conf | 1 - .../crl-from-cache/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/crl-from-cache/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/crl-ldap/hosts/carol/etc/init.d/iptables | 4 + .../ikev2/crl-ldap/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/crl-ldap/hosts/moon/etc/init.d/iptables | 4 + .../tests/ikev2/crl-ldap/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/crl-revoked/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/crl-revoked/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/crl-strict/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/crl-strict/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/crl-to-cache/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/crl-to-cache/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/default-keys/hosts/carol/etc/ipsec.conf | 1 - .../default-keys/hosts/moon/etc/init.d/iptables | 4 + .../ikev2/default-keys/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/dpd-clear/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/dpd-clear/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/dpd-hold/hosts/carol/etc/ipsec.conf | 1 - .../tests/ikev2/dpd-hold/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/dpd-restart/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/dpd-restart/hosts/moon/etc/ipsec.conf | 1 - .../esp-alg-aesxcbc/hosts/carol/etc/ipsec.conf | 1 - .../esp-alg-aesxcbc/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/host2host-cert/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/host2host-cert/hosts/sun/etc/ipsec.conf | 1 - .../host2host-swapped/hosts/moon/etc/ipsec.conf | 1 - .../host2host-swapped/hosts/sun/etc/ipsec.conf | 1 - .../host2host-transport/hosts/moon/etc/ipsec.conf | 1 - .../host2host-transport/hosts/sun/etc/ipsec.conf | 1 - testing/tests/ikev2/mobike-nat/description.txt | 7 + testing/tests/ikev2/mobike-nat/evaltest.dat | 16 + .../mobike-nat/hosts/alice/etc/init.d/iptables | 83 ++ .../ikev2/mobike-nat/hosts/alice/etc/ipsec.conf | 24 + .../ikev2/mobike-nat/hosts/sun/etc/ipsec.conf | 24 + testing/tests/ikev2/mobike-nat/posttest.dat | 6 + testing/tests/ikev2/mobike-nat/pretest.dat | 12 + testing/tests/ikev2/mobike-nat/test.conf | 21 + .../tests/ikev2/mobike-virtual-ip/description.txt | 7 + testing/tests/ikev2/mobike-virtual-ip/evaltest.dat | 16 + .../hosts/alice/etc/init.d/iptables | 83 ++ .../mobike-virtual-ip/hosts/alice/etc/ipsec.conf | 24 + .../mobike-virtual-ip/hosts/sun/etc/ipsec.conf | 24 + testing/tests/ikev2/mobike-virtual-ip/posttest.dat | 5 + testing/tests/ikev2/mobike-virtual-ip/pretest.dat | 10 + testing/tests/ikev2/mobike-virtual-ip/test.conf | 21 + testing/tests/ikev2/mobike/description.txt | 7 + testing/tests/ikev2/mobike/evaltest.dat | 18 + .../ikev2/mobike/hosts/alice/etc/init.d/iptables | 83 ++ .../tests/ikev2/mobike/hosts/alice/etc/ipsec.conf | 23 + .../tests/ikev2/mobike/hosts/sun/etc/ipsec.conf | 23 + testing/tests/ikev2/mobike/posttest.dat | 5 + testing/tests/ikev2/mobike/pretest.dat | 10 + testing/tests/ikev2/mobike/test.conf | 21 + .../multi-level-ca-ldap/hosts/carol/etc/ipsec.conf | 1 - .../multi-level-ca-ldap/hosts/dave/etc/ipsec.conf | 1 - .../hosts/moon/etc/init.d/iptables | 4 + .../multi-level-ca-ldap/hosts/moon/etc/ipsec.conf | 1 - .../multi-level-ca-loop/hosts/carol/etc/ipsec.conf | 1 - .../multi-level-ca-loop/hosts/moon/etc/ipsec.conf | 1 - .../hosts/carol/etc/ipsec.conf | 1 - .../hosts/moon/etc/ipsec.conf | 1 - .../multi-level-ca/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/multi-level-ca/hosts/dave/etc/ipsec.conf | 1 - .../ikev2/multi-level-ca/hosts/moon/etc/ipsec.conf | 1 - testing/tests/ikev2/nat-one-rw/pretest.dat | 1 + .../ikev2/nat-two-rw-psk/hosts/sun/etc/ipsec.conf | 1 - .../ikev2/net2net-psk/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/net2net-psk/hosts/sun/etc/ipsec.conf | 1 - .../ikev2/net2net-route/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/net2net-start/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/net2net-start/hosts/sun/etc/ipsec.conf | 1 - .../ocsp-local-cert/hosts/carol/etc/ipsec.conf | 1 - .../ocsp-local-cert/hosts/moon/etc/ipsec.conf | 1 - .../ocsp-multi-level/hosts/carol/etc/ipsec.conf | 1 - .../ocsp-multi-level/hosts/dave/etc/ipsec.conf | 1 - .../ocsp-multi-level/hosts/moon/etc/ipsec.conf | 1 - .../ocsp-no-signer-cert/hosts/carol/etc/ipsec.conf | 1 - .../ocsp-no-signer-cert/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/ocsp-revoked/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/ocsp-revoked/hosts/moon/etc/ipsec.conf | 1 - .../ocsp-root-cert/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/ocsp-root-cert/hosts/moon/etc/ipsec.conf | 1 - .../ocsp-signer-cert/hosts/carol/etc/ipsec.conf | 1 - .../ocsp-signer-cert/hosts/moon/etc/ipsec.conf | 1 - .../ocsp-strict-ifuri/hosts/carol/etc/ipsec.conf | 1 - .../ocsp-strict-ifuri/hosts/dave/etc/ipsec.conf | 1 - .../ocsp-strict-ifuri/hosts/moon/etc/ipsec.conf | 1 - .../ocsp-timeouts-good/hosts/carol/etc/ipsec.conf | 1 - .../ocsp-timeouts-good/hosts/moon/etc/ipsec.conf | 1 - .../hosts/carol/etc/ipsec.conf | 1 - .../hosts/moon/etc/ipsec.conf | 1 - .../ocsp-untrusted-cert/hosts/carol/etc/ipsec.conf | 1 - .../ocsp-untrusted-cert/hosts/moon/etc/ipsec.conf | 1 - .../protoport-dual/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/protoport-dual/hosts/moon/etc/ipsec.conf | 1 - .../protoport-route/hosts/carol/etc/ipsec.conf | 1 - .../protoport-route/hosts/moon/etc/ipsec.conf | 1 - .../tests/ikev2/rw-cert/hosts/carol/etc/ipsec.conf | 1 - .../tests/ikev2/rw-cert/hosts/dave/etc/ipsec.conf | 1 - .../tests/ikev2/rw-cert/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/rw-psk-fqdn/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/rw-psk-fqdn/hosts/dave/etc/ipsec.conf | 1 - .../ikev2/rw-psk-fqdn/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/rw-psk-ipv4/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/rw-psk-ipv4/hosts/dave/etc/ipsec.conf | 1 - .../ikev2/rw-psk-ipv4/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/rw-psk-no-idr/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/rw-psk-no-idr/hosts/dave/etc/ipsec.conf | 1 - .../ikev2/rw-psk-no-idr/hosts/moon/etc/ipsec.conf | 1 - .../rw-psk-rsa-mixed/hosts/carol/etc/ipsec.conf | 1 - .../rw-psk-rsa-mixed/hosts/dave/etc/ipsec.conf | 1 - .../rw-psk-rsa-mixed/hosts/moon/etc/ipsec.conf | 1 - .../rw-psk-rsa-split/hosts/carol/etc/ipsec.conf | 1 - .../rw-psk-rsa-split/hosts/dave/etc/ipsec.conf | 1 - .../rw-psk-rsa-split/hosts/moon/etc/ipsec.conf | 1 - .../strong-keys-certs/hosts/carol/etc/ipsec.conf | 1 - .../strong-keys-certs/hosts/dave/etc/ipsec.conf | 1 - .../strong-keys-certs/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/two-certs/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/two-certs/hosts/dave/etc/ipsec.conf | 1 - .../ikev2/two-certs/hosts/moon/etc/ipsec.conf | 1 - .../ikev2/wildcards/hosts/carol/etc/ipsec.conf | 1 - .../ikev2/wildcards/hosts/dave/etc/ipsec.conf | 1 - .../ikev2/wildcards/hosts/moon/etc/ipsec.conf | 1 - 331 files changed, 2519 insertions(+), 282 deletions(-) create mode 100755 testing/hosts/alice/etc/init.d/net.eth1 create mode 100644 testing/tests/ikev1/dynamic-initiator/description.txt create mode 100644 testing/tests/ikev1/dynamic-initiator/evaltest.dat create mode 100755 testing/tests/ikev1/dynamic-initiator/hosts/carol/etc/ipsec.conf create mode 100755 testing/tests/ikev1/dynamic-initiator/hosts/dave/etc/ipsec.conf create mode 100644 testing/tests/ikev1/dynamic-initiator/hosts/dave/etc/ipsec.d/certs/carolCert.pem create mode 100644 testing/tests/ikev1/dynamic-initiator/hosts/dave/etc/ipsec.d/private/carolKey.pem create mode 100644 testing/tests/ikev1/dynamic-initiator/hosts/dave/etc/ipsec.secrets create mode 100755 testing/tests/ikev1/dynamic-initiator/hosts/moon/etc/ipsec.conf create mode 100644 testing/tests/ikev1/dynamic-initiator/posttest.dat create mode 100644 testing/tests/ikev1/dynamic-initiator/pretest.dat create mode 100644 testing/tests/ikev1/dynamic-initiator/test.conf create mode 100644 testing/tests/ikev1/dynamic-responder/description.txt create mode 100644 testing/tests/ikev1/dynamic-responder/evaltest.dat create mode 100755 testing/tests/ikev1/dynamic-responder/hosts/carol/etc/ipsec.conf create mode 100755 testing/tests/ikev1/dynamic-responder/hosts/dave/etc/ipsec.conf create mode 100644 testing/tests/ikev1/dynamic-responder/hosts/dave/etc/ipsec.d/certs/carolCert.pem create mode 100644 testing/tests/ikev1/dynamic-responder/hosts/dave/etc/ipsec.d/private/carolKey.pem create mode 100644 testing/tests/ikev1/dynamic-responder/hosts/dave/etc/ipsec.secrets create mode 100755 testing/tests/ikev1/dynamic-responder/hosts/moon/etc/ipsec.conf create mode 100644 testing/tests/ikev1/dynamic-responder/posttest.dat create mode 100644 testing/tests/ikev1/dynamic-responder/pretest.dat create mode 100644 testing/tests/ikev1/dynamic-responder/test.conf create mode 100644 testing/tests/ikev1/dynamic-two-peers/description.txt create mode 100644 testing/tests/ikev1/dynamic-two-peers/evaltest.dat create mode 100755 testing/tests/ikev1/dynamic-two-peers/hosts/carol/etc/ipsec.conf create mode 100755 testing/tests/ikev1/dynamic-two-peers/hosts/dave/etc/ipsec.conf create mode 100644 testing/tests/ikev1/dynamic-two-peers/hosts/moon/etc/hosts.stale create mode 100755 testing/tests/ikev1/dynamic-two-peers/hosts/moon/etc/ipsec.conf create mode 100644 testing/tests/ikev1/dynamic-two-peers/posttest.dat create mode 100644 testing/tests/ikev1/dynamic-two-peers/pretest.dat create mode 100644 testing/tests/ikev1/dynamic-two-peers/test.conf create mode 100644 testing/tests/ikev1/passthrough/description.txt create mode 100644 testing/tests/ikev1/passthrough/evaltest.dat create mode 100755 testing/tests/ikev1/passthrough/hosts/moon/etc/ipsec.conf create mode 100755 testing/tests/ikev1/passthrough/hosts/sun/etc/ipsec.conf create mode 100644 testing/tests/ikev1/passthrough/posttest.dat create mode 100644 testing/tests/ikev1/passthrough/pretest.dat create mode 100644 testing/tests/ikev1/passthrough/test.conf create mode 100644 testing/tests/ikev2/mobike-nat/description.txt create mode 100644 testing/tests/ikev2/mobike-nat/evaltest.dat create mode 100755 testing/tests/ikev2/mobike-nat/hosts/alice/etc/init.d/iptables create mode 100755 testing/tests/ikev2/mobike-nat/hosts/alice/etc/ipsec.conf create mode 100755 testing/tests/ikev2/mobike-nat/hosts/sun/etc/ipsec.conf create mode 100644 testing/tests/ikev2/mobike-nat/posttest.dat create mode 100644 testing/tests/ikev2/mobike-nat/pretest.dat create mode 100644 testing/tests/ikev2/mobike-nat/test.conf create mode 100644 testing/tests/ikev2/mobike-virtual-ip/description.txt create mode 100644 testing/tests/ikev2/mobike-virtual-ip/evaltest.dat create mode 100755 testing/tests/ikev2/mobike-virtual-ip/hosts/alice/etc/init.d/iptables create mode 100755 testing/tests/ikev2/mobike-virtual-ip/hosts/alice/etc/ipsec.conf create mode 100755 testing/tests/ikev2/mobike-virtual-ip/hosts/sun/etc/ipsec.conf create mode 100644 testing/tests/ikev2/mobike-virtual-ip/posttest.dat create mode 100644 testing/tests/ikev2/mobike-virtual-ip/pretest.dat create mode 100644 testing/tests/ikev2/mobike-virtual-ip/test.conf create mode 100644 testing/tests/ikev2/mobike/description.txt create mode 100644 testing/tests/ikev2/mobike/evaltest.dat create mode 100755 testing/tests/ikev2/mobike/hosts/alice/etc/init.d/iptables create mode 100755 testing/tests/ikev2/mobike/hosts/alice/etc/ipsec.conf create mode 100755 testing/tests/ikev2/mobike/hosts/sun/etc/ipsec.conf create mode 100644 testing/tests/ikev2/mobike/posttest.dat create mode 100644 testing/tests/ikev2/mobike/pretest.dat create mode 100644 testing/tests/ikev2/mobike/test.conf (limited to 'testing') diff --git a/testing/INSTALL b/testing/INSTALL index d19c7eafe..a48c5a253 100644 --- a/testing/INSTALL +++ b/testing/INSTALL @@ -53,7 +53,7 @@ are required for the strongSwan testing environment: * A vanilla Linux kernel on which the UML kernel will be based on. We recommend the use of - http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.21.1.tar.bz2 + http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.21.5.tar.bz2 * Starting with Linux kernel 2.6.9 no patch must be applied any more in order to make the vanilla kernel UML-capable. For older kernels you'll find @@ -67,11 +67,11 @@ are required for the strongSwan testing environment: * A gentoo-based UML file system (compressed size 130 MBytes) found at - http://download.strongswan.org/uml/gentoo-fs-20061006.tar.bz2 + http://download.strongswan.org/uml/gentoo-fs-20070702.tar.bz2 * The latest strongSwan distribution - http://download.strongswan.org/strongswan-4.1.3.tar.gz + http://download.strongswan.org/strongswan-4.1.4.tar.gz 3. Creating the environment diff --git a/testing/do-tests b/testing/do-tests index 8cb99410b..72379bda0 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -79,6 +79,8 @@ do eval ipv6_sun1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`" ;; alice) + eval ipv4_alice1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`" + eval ipv6_alice1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`" ;; venus) ;; @@ -191,7 +193,7 @@ do echo " " >> $INDEX echo " $FIRST">> $INDEX echo " $SUBDIR" >> $INDEX - echo " " >> $INDEX + echo " x" >> $INDEX echo "  " >> $INDEX echo " " >> $INDEX SUBTESTSINDEX=$TODAYDIR/$SUBDIR/index.html @@ -278,8 +280,10 @@ do searchandreplace PH_IP6_SUN $ipv6_sun $TESTDIR ;; alice) - searchandreplace PH_IP_ALICE $ipv4_alice $TESTDIR - searchandreplace PH_IP6_ALICE $ipv6_alice $TESTDIR + searchandreplace PH_IP_ALICE1 $ipv4_alice1 $TESTDIR + searchandreplace PH_IP_ALICE $ipv4_alice $TESTDIR + searchandreplace PH_IP6_ALICE1 $ipv6_alice1 $TESTDIR + searchandreplace PH_IP6_ALICE $ipv6_alice $TESTDIR ;; venus) searchandreplace PH_IP_VENUS $ipv4_venus $TESTDIR diff --git a/testing/hosts/alice/etc/conf.d/net b/testing/hosts/alice/etc/conf.d/net index 02494db97..41e8887c4 100644 --- a/testing/hosts/alice/etc/conf.d/net +++ b/testing/hosts/alice/etc/conf.d/net @@ -4,6 +4,8 @@ # config_eth0=( "PH_IP_ALICE broadcast 10.1.255.255 netmask 255.255.0.0" "PH_IP6_ALICE/16" ) +config_eth1=( "PH_IP_ALICE1 broadcast 192.168.0.255 netmask 255.255.255.0" + "PH_IP6_ALICE1/16" ) # For setting the default gateway # diff --git a/testing/hosts/alice/etc/init.d/net.eth1 b/testing/hosts/alice/etc/init.d/net.eth1 new file mode 100755 index 000000000..92b3851cf --- /dev/null +++ b/testing/hosts/alice/etc/init.d/net.eth1 @@ -0,0 +1,1124 @@ +#!/sbin/runscript +# Copyright (c) 2004-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Contributed by Roy Marples (uberlord@gentoo.org) +# Many thanks to Aron Griffis (agriffis@gentoo.org) +# for help, ideas and patches + +#NB: Config is in /etc/conf.d/net + +# For pcmcia users. note that pcmcia must be added to the same +# runlevel as the net.* script that needs it. +depend() { + need localmount + after bootmisc hostname + use isapnp isdn pcmcia usb wlan + + # Load any custom depend functions for the given interface + # For example, br0 may need eth0 and eth1 + local iface="${SVCNAME#*.}" + [[ $(type -t "depend_${iface}") == "function" ]] && depend_${iface} + + if [[ ${iface} != "lo" && ${iface} != "lo0" ]] ; then + after net.lo net.lo0 + + # Support new style RC_NEED and RC_USE in one net file + local x="RC_NEED_${iface}" + [[ -n ${!x} ]] && need ${!x} + x="RC_USE_${iface}" + [[ -n ${!x} ]] && use ${!x} + fi + + return 0 +} + +# Define where our modules are +MODULES_DIR="${svclib}/net" + +# Make some wrappers to fudge after/before/need/use depend flags. +# These are callbacks so MODULE will be set. +after() { + eval "${MODULE}_after() { echo \"$*\"; }" +} +before() { + eval "${MODULE}_before() { echo \"$*\"; }" +} +need() { + eval "${MODULE}_need() { echo \"$*\"; }" +} +installed() { + # We deliberately misspell this as _installed will probably be used + # at some point + eval "${MODULE}_instlled() { echo \"$*\"; }" +} +provide() { + eval "${MODULE}_provide() { echo \"$*\"; }" +} +functions() { + eval "${MODULE}_functions() { echo \"$*\"; }" +} +variables() { + eval "${MODULE}_variables() { echo \"$*\"; }" +} + +is_loopback() { + [[ $1 == "lo" || $1 == "lo0" ]] +} + +# char* interface_device(char *iface) +# +# Gets the base device of the interface +# Can handle eth0:1 and eth0.1 +# Which returns eth0 in this case +interface_device() { + local dev="${1%%.*}" + [[ ${dev} == "$1" ]] && dev="${1%%:*}" + echo "${dev}" +} + +# char* interface_type(char* iface) +# +# Returns the base type of the interface +# eth, ippp, etc +interface_type() { + echo "${1%%[0-9]*}" +} + +# int calculate_metric(char *interface, int base) +# +# Calculates the best metric for the interface +# We use this when we add routes so we can prefer interfaces over each other +calculate_metric() { + local iface="$1" metric="$2" + + # Have we already got a metric? + local m=$(awk '$1=="'${iface}'" && $2=="00000000" { print $7 }' \ + /proc/net/route) + if [[ -n ${m} ]] ; then + echo "${m}" + return 0 + fi + + local i= dest= gw= flags= ref= u= m= mtu= metrics= + while read i dest gw flags ref u m mtu ; do + # Ignore lo + is_loopback "${i}" && continue + # We work out metrics from default routes only + [[ ${dest} != "00000000" || ${gw} == "00000000" ]] && continue + metrics="${metrics}\n${m}" + done < /proc/net/route + + # Now, sort our metrics + metrics=$(echo -e "${metrics}" | sort -n) + + # Now, find the lowest we can use + local gotbase=false + for m in ${metrics} ; do + [[ ${m} -lt ${metric} ]] && continue + [[ ${m} == ${metric} ]] && ((metric++)) + [[ ${m} -gt ${metric} ]] && break + done + + echo "${metric}" +} + +# int netmask2cidr(char *netmask) +# +# Returns the CIDR of a given netmask +netmask2cidr() { + local binary= i= bin= + + for i in ${1//./ }; do + bin="" + while [[ ${i} != "0" ]] ; do + bin=$[${i}%2]${bin} + (( i=i>>1 )) + done + binary="${binary}${bin}" + done + binary="${binary%%0*}" + echo "${#binary}" +} + + +# bool is_function(char* name) +# +# Returns 0 if the given name is a shell function, otherwise 1 +is_function() { + [[ -z $1 ]] && return 1 + [[ $(type -t "$1") == "function" ]] +} + +# void function_wrap(char* source, char* target) +# +# wraps function calls - for example function_wrap(this, that) +# maps function names this_* to that_* +function_wrap() { + local i= + + is_function "${2}_depend" && return + + for i in $(typeset -f | grep -o '^'"${1}"'_[^ ]*'); do + eval "${2}${i#${1}}() { ${i} \"\$@\"; }" + done +} + +# char[] * expand_parameters(char *cmd) +# +# Returns an array after expanding parameters. For example +# "192.168.{1..3}.{1..3}/24 brd +" +# will return +# "192.168.1.1/24 brd +" +# "192.168.1.2/24 brd +" +# "192.168.1.3/24 brd +" +# "192.168.2.1/24 brd +" +# "192.168.2.2/24 brd +" +# "192.168.2.3/24 brd +" +# "192.168.3.1/24 brd +" +# "192.168.3.2/24 brd +" +# "192.168.3.3/24 brd +" +expand_parameters() { + local x=$(eval echo ${@// /_}) + local -a a=( ${x} ) + + a=( "${a[@]/#/\"}" ) + a=( "${a[@]/%/\"}" ) + echo "${a[*]//_/ }" +} + +# void configure_variables(char *interface, char *option1, [char *option2]) +# +# Maps configuration options from _