-picking better default networks for dns/vpn/exit
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 21:08:59 +0000 (21:08 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 21:08:59 +0000 (21:08 +0000)
src/exit/exit.conf
src/vpn/test_gnunet_vpn.c
src/vpn/test_gnunet_vpn.conf

index bd3fd0df12b350eb29d8c9fd64cb3e7447ae3840..0d48de94b594e5d36e9390e430ae8afa3c6487bc 100644 (file)
@@ -4,17 +4,18 @@ BINARY = gnunet-daemon-exit
 
 # IPv6 address for the TUN interface (must be changed as this
 # must be within the global IPv6 range of your system!)
-IPV6ADDR = 1234:1::1
+IPV6ADDR = 2001:DB8::1
 
 # Prefix for our IPv6 subnet on the TUN interface. 
-IPV6PREFIX = 32
+IPV6PREFIX = 64
 
 # IPv4 address to use on our TUN interface (may need to be
 # changed to avoid conflicts with existing addresses on your system).
-IPV4ADDR = 10.10.1.1
+# Use RFC 3927-style link-local address
+IPV4ADDR = 169.254.86.1
 
 # Netmask for the IPv4 subnet on the TUN interface.
-IPV4MASK = 255.255.0.0
+IPV4MASK = 255.255.255.0
 
 
 # Name of the (virtual) tunnel interface the exit daemon will manage
index e43cad5d8ab4ef10506f2ce5ecc7fb099517ae17..1e4e2044df798ebb3b0310e8bdcf2eb709a7614f 100644 (file)
@@ -381,7 +381,7 @@ run (void *cls, char *const *args, const char *cfgfile,
                          MHD_OPTION_END);
   GNUNET_assert (NULL != mhd);
   mhd_main ();
-  GNUNET_assert (1 == inet_pton (AF_INET, "10.10.1.1", &v4));
+  GNUNET_assert (1 == inet_pton (AF_INET, "169.254.86.1", &v4));
   rr = GNUNET_VPN_redirect_to_ip (vpn,
                                  AF_INET,
                                  AF_INET,
index 7537407ba6104e3429d0e76cabbfe998ce8ce3dc..a5c0aa224114f4f9d374764f9c05f2cbf21ada11 100644 (file)
@@ -18,3 +18,20 @@ EXIT_IFNAME = eth1
 [testing]
 WEAKRANDOM = YES
 HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat
+
+
+
+# repeating some values from the default configurations
+# here as the respective network addresses are also
+# hard-wired in the tests and the MUST match (!)
+[vpn]
+IPV6ADDR = FC2D:FDAA:6A26::1
+IPV6PREFIX = 64
+IPV4ADDR = 169.254.20.1
+IPV4MASK = 255.255.255.0
+
+[exit]
+IPV6ADDR = FC5A:04E1:C2BA::1
+IPV6PREFIX = 92
+IPV4ADDR = 169.254.86.1
+IPV4MASK = 255.255.255.0