]> git.ipfire.org Git - people/ms/network.git/commitdiff
Use new phase1 and setup recipes in vpn tests
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 16 Sep 2018 11:13:43 +0000 (13:13 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 16 Sep 2018 11:13:43 +0000 (13:13 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
test/nitsi/include/vpn-base [deleted file]
test/nitsi/include/vpn-ipsec-basic-connection
test/nitsi/include/vpn-ipsec-basic-peer-ipv4
test/nitsi/include/vpn-ipsec-basic-peer-ipv6
test/nitsi/include/vpn-ipsec-basic-ping-test-ipv6
test/nitsi/include/vpn-ipsec-basic-ts-ipv6

diff --git a/test/nitsi/include/vpn-base b/test/nitsi/include/vpn-base
deleted file mode 100644 (file)
index c04a9c9..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-# This contains the basic network configuration for all vpn-tests
-include: ../include/setup
-include: ../include/alice-port-vars
-include: ../include/bob-port-vars
-all: network zone new upl0 bridge
-all: network zone new upl1 bridge
-all: network zone new net0 bridge
-all: network zone new net1 bridge
-all: network zone upl0 port attach ${p_net1}
-all: network zone upl1 port attach ${p_net2}
-# Attach dummy ports to all net*
-all: network port new dummy
-all: network port new dummy
-all: network zone net0 port attach d0
-all: network zone net1 port attach d1
-# Bring everyting up
-all: network zone upl0 up
-all: network zone upl1 up
-all: network zone net0 up
-all: network zone net1 up
-all: network status
-# IP config
-alice: network zone upl0 config new static 192.168.122.2/24
-alice: network zone upl1 config new static fdd1:9e02:338f::1:1/64
-alice: network zone net0 config new static 192.168.200.1/24
-alice: network zone net1 config new static fdd1:9e02:338f::2:1/64
-bob: network zone upl0 config new static 192.168.122.3/24
-bob: network zone upl1 config new static fdd1:9e02:338f::1:2/64
-bob: network zone net0 config new static 192.168.201.1/24
-bob: network zone net1 config new static fdd1:9e02:338f::3:1/64
-# Simple ping test
-alice: ping -c 5 192.168.122.3
-alice: ping6 -c 5 2001:470:6ef3:1::1
-bob: ping -c 5 192.168.122.2
-bob: ping6 -c 5 2001:470:6ef3:1::2
index f5594fa8132eb90a05d68f8ef9d7970ce042dbe5..8f5ecdd4739e419cc9f98288b57d22bb20af420a 100644 (file)
@@ -1,4 +1,6 @@
 # A basic vpn connection with some common config values set
+include: ./setup
+include: ./phase1
 all: network vpn ipsec connection new basic
 all: network vpn ipsec connection basic authentication mode PSK
 all: network vpn ipsec connection basic authentication pre-shared-key "12345678"
index 52c6d3fc7bec8c8b16c62bfe48298d8b8b39fb00..25cc9a84429a8fa1f53443dff1ad0605d39fdef4 100644 (file)
@@ -1,2 +1,2 @@
-alice: network vpn ipsec connection basic peer 192.168.122.3
-bob: network vpn ipsec connection basic peer 192.168.122.2
\ No newline at end of file
+alice: network vpn ipsec connection basic peer 192.168.100.102
+bob: network vpn ipsec connection basic peer 192.168.100.101
index 9715e088c871faf45df94baa11d8748995abfd12..412b6c576ab7a5b25690e83b46985f68ab1c1001 100644 (file)
@@ -1,2 +1,2 @@
-alice: network vpn ipsec connection basic peer 2001:470:6ef3:1::2
-bob: network vpn ipsec connection basic peer 2001:470:6ef3:1::1
\ No newline at end of file
+alice: network vpn ipsec connection basic peer 2001:db8:100::102
+bob: network vpn ipsec connection basic peer 2001:db8:100::101
index f7859038148ee6b1aaf6e90a685982e94785435f..c4919f8f152b888de7bbfb663458533ab316050e 100644 (file)
@@ -1,3 +1,3 @@
 # This recipe tests if the vpn connection is working by pinging the remote subnet
-alice: ping6 -c 5 fdd1:9e02:338f::3:1
-bob: ping6 -c 5 fdd1:9e02:338f::2:1
\ No newline at end of file
+alice: ping6 -c 5 2001:db8:201::1
+bob: ping6 -c 5 2001:db8:200::1
index 11eaceec96a5d2d82aeb7fb27e721a401d87b36e..fbb1a7d0beb7745ee4cfb438e14c3194dd81099a 100644 (file)
@@ -1,4 +1,4 @@
-alice: network vpn ipsec connection basic local prefix +fdd1:9e02:338f::2:1/64
-alice: network vpn ipsec connection basic remote prefix +fdd1:9e02:338f::3:1/64
-bob: network vpn ipsec connection basic local prefix +fdd1:9e02:338f::3:1/64
-bob: network vpn ipsec connection basic remote prefix +fdd1:9e02:338f::2:1/64
\ No newline at end of file
+alice: network vpn ipsec connection basic local prefix +2001:db8:200::/64
+alice: network vpn ipsec connection basic remote prefix +2001:db8:201::/64
+bob: network vpn ipsec connection basic local prefix +2001:db8:201::/64
+bob: network vpn ipsec connection basic remote prefix +2001:db8:200::/64