diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-14 21:00:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-14 21:00:35 +0000 |
commit | f181f6eaf8cdb1fdb47dc98cf171ad1be842b441 (patch) | |
tree | 667d56334e859df5d2c3d5c9e1811ef94d2b1af4 /src | |
parent | 4f285bb38af149f35a1bd3e730ac6bac7b14fd53 (diff) | |
download | gnunet-f181f6eaf8cdb1fdb47dc98cf171ad1be842b441.tar.gz gnunet-f181f6eaf8cdb1fdb47dc98cf171ad1be842b441.zip |
-changing exit helper code to automatically do the network configuration for an exit node (by running sysctl/iptables commands as necessary)
Diffstat (limited to 'src')
-rw-r--r-- | src/exit/exit.conf | 5 | ||||
-rw-r--r-- | src/exit/gnunet-daemon-exit.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/exit/exit.conf b/src/exit/exit.conf index bbf463047..ade3861ea 100644 --- a/src/exit/exit.conf +++ b/src/exit/exit.conf | |||
@@ -23,7 +23,10 @@ TUN_IFNAME = exit-gnunet | |||
23 | # Name of the "real" interface that IPv4 traffic from this system will | 23 | # Name of the "real" interface that IPv4 traffic from this system will |
24 | # leave from; this is the name of the interface where we need to | 24 | # leave from; this is the name of the interface where we need to |
25 | # enable NAT on postrouting (typically something like 'eth0' or 'eth1' | 25 | # enable NAT on postrouting (typically something like 'eth0' or 'eth1' |
26 | # or 'wlan0'). Not needed if EXIT_IPv4 is disabled. | 26 | # or 'wlan0'). Not needed if EXIT_IPv4 is disabled AND if all |
27 | # offered services run on 'localhost'. In this case, the value | ||
28 | # of the option can instead be set to "%" (to not enable NAT on any | ||
29 | # interface). | ||
27 | EXIT_IFNAME = eth0 | 30 | EXIT_IFNAME = eth0 |
28 | 31 | ||
29 | # Set this to YES to allow exiting this system via IPv4 to the Internet | 32 | # Set this to YES to allow exiting this system via IPv4 to the Internet |
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index 9552da155..b0f0d215a 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c | |||
@@ -2026,7 +2026,7 @@ run (void *cls, char *const *args GNUNET_UNUSED, | |||
2026 | return; | 2026 | return; |
2027 | } | 2027 | } |
2028 | exit_argv[1] = tun_ifname; | 2028 | exit_argv[1] = tun_ifname; |
2029 | if (ipv4_exit) | 2029 | if (ipv4_enabled) |
2030 | { | 2030 | { |
2031 | if (GNUNET_SYSERR == | 2031 | if (GNUNET_SYSERR == |
2032 | GNUNET_CONFIGURATION_get_value_string (cfg, "exit", "EXIT_IFNAME", &exit_ifname)) | 2032 | GNUNET_CONFIGURATION_get_value_string (cfg, "exit", "EXIT_IFNAME", &exit_ifname)) |