gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19142 - gnunet/src/exit


From: gnunet
Subject: [GNUnet-SVN] r19142 - gnunet/src/exit
Date: Sat, 14 Jan 2012 22:00:35 +0100

Author: grothoff
Date: 2012-01-14 22:00:35 +0100 (Sat, 14 Jan 2012)
New Revision: 19142

Modified:
   gnunet/src/exit/exit.conf
   gnunet/src/exit/gnunet-daemon-exit.c
Log:
-changing exit helper code to automatically do the network configuration for an 
exit node (by running sysctl/iptables commands as necessary)


Modified: gnunet/src/exit/exit.conf
===================================================================
--- gnunet/src/exit/exit.conf   2012-01-14 20:58:36 UTC (rev 19141)
+++ gnunet/src/exit/exit.conf   2012-01-14 21:00:35 UTC (rev 19142)
@@ -23,7 +23,10 @@
 # Name of the "real" interface that IPv4 traffic from this system will
 # leave from; this is the name of the interface where we need to
 # enable NAT on postrouting (typically something like 'eth0' or 'eth1'
-# or 'wlan0').  Not needed if EXIT_IPv4 is disabled.
+# or 'wlan0').  Not needed if EXIT_IPv4 is disabled AND if all
+# offered services run on 'localhost'.  In this case, the value
+# of the option can instead be set to "%" (to not enable NAT on any
+# interface).
 EXIT_IFNAME = eth0
 
 # Set this to YES to allow exiting this system via IPv4 to the Internet

Modified: gnunet/src/exit/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/exit/gnunet-daemon-exit.c        2012-01-14 20:58:36 UTC (rev 
19141)
+++ gnunet/src/exit/gnunet-daemon-exit.c        2012-01-14 21:00:35 UTC (rev 
19142)
@@ -2026,7 +2026,7 @@
     return;
   }
   exit_argv[1] = tun_ifname;
-  if (ipv4_exit)
+  if (ipv4_enabled)
   {
     if (GNUNET_SYSERR ==
        GNUNET_CONFIGURATION_get_value_string (cfg, "exit", "EXIT_IFNAME", 
&exit_ifname))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]