diff options
-rw-r--r-- | src/exit/exit.conf | 9 | ||||
-rw-r--r-- | src/vpn/test_gnunet_vpn.c | 2 | ||||
-rw-r--r-- | src/vpn/test_gnunet_vpn.conf | 17 |
3 files changed, 23 insertions, 5 deletions
diff --git a/src/exit/exit.conf b/src/exit/exit.conf index bd3fd0df1..0d48de94b 100644 --- a/src/exit/exit.conf +++ b/src/exit/exit.conf | |||
@@ -4,17 +4,18 @@ BINARY = gnunet-daemon-exit | |||
4 | 4 | ||
5 | # IPv6 address for the TUN interface (must be changed as this | 5 | # IPv6 address for the TUN interface (must be changed as this |
6 | # must be within the global IPv6 range of your system!) | 6 | # must be within the global IPv6 range of your system!) |
7 | IPV6ADDR = 1234:1::1 | 7 | IPV6ADDR = 2001:DB8::1 |
8 | 8 | ||
9 | # Prefix for our IPv6 subnet on the TUN interface. | 9 | # Prefix for our IPv6 subnet on the TUN interface. |
10 | IPV6PREFIX = 32 | 10 | IPV6PREFIX = 64 |
11 | 11 | ||
12 | # IPv4 address to use on our TUN interface (may need to be | 12 | # IPv4 address to use on our TUN interface (may need to be |
13 | # changed to avoid conflicts with existing addresses on your system). | 13 | # changed to avoid conflicts with existing addresses on your system). |
14 | IPV4ADDR = 10.10.1.1 | 14 | # Use RFC 3927-style link-local address |
15 | IPV4ADDR = 169.254.86.1 | ||
15 | 16 | ||
16 | # Netmask for the IPv4 subnet on the TUN interface. | 17 | # Netmask for the IPv4 subnet on the TUN interface. |
17 | IPV4MASK = 255.255.0.0 | 18 | IPV4MASK = 255.255.255.0 |
18 | 19 | ||
19 | 20 | ||
20 | # Name of the (virtual) tunnel interface the exit daemon will manage | 21 | # Name of the (virtual) tunnel interface the exit daemon will manage |
diff --git a/src/vpn/test_gnunet_vpn.c b/src/vpn/test_gnunet_vpn.c index e43cad5d8..1e4e2044d 100644 --- a/src/vpn/test_gnunet_vpn.c +++ b/src/vpn/test_gnunet_vpn.c | |||
@@ -381,7 +381,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
381 | MHD_OPTION_END); | 381 | MHD_OPTION_END); |
382 | GNUNET_assert (NULL != mhd); | 382 | GNUNET_assert (NULL != mhd); |
383 | mhd_main (); | 383 | mhd_main (); |
384 | GNUNET_assert (1 == inet_pton (AF_INET, "10.10.1.1", &v4)); | 384 | GNUNET_assert (1 == inet_pton (AF_INET, "169.254.86.1", &v4)); |
385 | rr = GNUNET_VPN_redirect_to_ip (vpn, | 385 | rr = GNUNET_VPN_redirect_to_ip (vpn, |
386 | AF_INET, | 386 | AF_INET, |
387 | AF_INET, | 387 | AF_INET, |
diff --git a/src/vpn/test_gnunet_vpn.conf b/src/vpn/test_gnunet_vpn.conf index 7537407ba..a5c0aa224 100644 --- a/src/vpn/test_gnunet_vpn.conf +++ b/src/vpn/test_gnunet_vpn.conf | |||
@@ -18,3 +18,20 @@ EXIT_IFNAME = eth1 | |||
18 | [testing] | 18 | [testing] |
19 | WEAKRANDOM = YES | 19 | WEAKRANDOM = YES |
20 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 20 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat |
21 | |||
22 | |||
23 | |||
24 | # repeating some values from the default configurations | ||
25 | # here as the respective network addresses are also | ||
26 | # hard-wired in the tests and the MUST match (!) | ||
27 | [vpn] | ||
28 | IPV6ADDR = FC2D:FDAA:6A26::1 | ||
29 | IPV6PREFIX = 64 | ||
30 | IPV4ADDR = 169.254.20.1 | ||
31 | IPV4MASK = 255.255.255.0 | ||
32 | |||
33 | [exit] | ||
34 | IPV6ADDR = FC5A:04E1:C2BA::1 | ||
35 | IPV6PREFIX = 92 | ||
36 | IPV4ADDR = 169.254.86.1 | ||
37 | IPV4MASK = 255.255.255.0 | ||