diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-03 13:19:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-03 13:19:52 +0000 |
commit | 29c724d2a7764f83fe846b418d09540348b86983 (patch) | |
tree | dafaff8e37ba51355b22b6f38d856ae49e145006 /src/nat | |
parent | b303961f38c9b578f30248ee364ed4e5ffdcd06c (diff) | |
download | gnunet-29c724d2a7764f83fe846b418d09540348b86983.tar.gz gnunet-29c724d2a7764f83fe846b418d09540348b86983.zip |
implementing #1747
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/Makefile.am | 5 | ||||
-rw-r--r-- | src/nat/nat.conf | 54 |
2 files changed, 59 insertions, 0 deletions
diff --git a/src/nat/Makefile.am b/src/nat/Makefile.am index 5adab1ae5..ed3a1545a 100644 --- a/src/nat/Makefile.am +++ b/src/nat/Makefile.am | |||
@@ -7,6 +7,11 @@ if MINGW | |||
7 | NATCLIENT = gnunet-helper-nat-client-windows.c | 7 | NATCLIENT = gnunet-helper-nat-client-windows.c |
8 | endif | 8 | endif |
9 | 9 | ||
10 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
11 | |||
12 | dist_pkgcfg_DATA = \ | ||
13 | nat.conf | ||
14 | |||
10 | 15 | ||
11 | if ENABLE_TEST_RUN | 16 | if ENABLE_TEST_RUN |
12 | nattest = $(bindir)/gnunet-nat-server | 17 | nattest = $(bindir)/gnunet-nat-server |
diff --git a/src/nat/nat.conf b/src/nat/nat.conf new file mode 100644 index 000000000..e44612289 --- /dev/null +++ b/src/nat/nat.conf | |||
@@ -0,0 +1,54 @@ | |||
1 | [nat] | ||
2 | # Are we behind NAT? | ||
3 | BEHIND_NAT = NO | ||
4 | |||
5 | # Is the NAT hole-punched? | ||
6 | PUNCHED_NAT = NO | ||
7 | |||
8 | # Enable UPNP by default? | ||
9 | ENABLE_UPNP = NO | ||
10 | |||
11 | # Use addresses from the local network interfaces (inluding loopback, but also others) | ||
12 | USE_LOCALADDR = YES | ||
13 | |||
14 | # Use address obtained from a DNS lookup of our hostname | ||
15 | USE_HOSTNAME = NO | ||
16 | |||
17 | # External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!) | ||
18 | # normal interface IP address for non-NATed peers; | ||
19 | # possibly auto-detected (using UPnP) if possible if not specified | ||
20 | # EXTERNAL_ADDRESS = | ||
21 | |||
22 | # Should we use ICMP-based NAT traversal to try connect to NATed peers | ||
23 | # or, if we are behind NAT, to allow connections to us? | ||
24 | ENABLE_ICMP_CLIENT = NO | ||
25 | ENABLE_ICMP_SERVER = NO | ||
26 | |||
27 | # IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY; | ||
28 | # normal interface IP address for non-NATed peers; | ||
29 | # likely auto-detected (via interface list) if not specified (!) | ||
30 | # INTERNAL_ADDRESS = | ||
31 | |||
32 | # Disable IPv6 support | ||
33 | DISABLEV6 = NO | ||
34 | |||
35 | # Do we use addresses from localhost address ranges? (::1, 127.0.0.0/8) | ||
36 | RETURN_LOCAL_ADDRESSES = NO | ||
37 | |||
38 | # How often do we query the DNS resolver | ||
39 | # for our hostname (to get our own IP), in ms | ||
40 | HOSTNAME_DNS_FREQUENCY = 1200000 | ||
41 | |||
42 | # How often do we iterate over our | ||
43 | # network interfaces to check for changes | ||
44 | # in our IP address? in ms | ||
45 | IFC_SCAN_FREQUENCY = 3000000 | ||
46 | |||
47 | # How often do we query the DNS resolver | ||
48 | # for our hostname (to get our own IP), in ms | ||
49 | DYNDNS_FREQUENCY = 140000 | ||
50 | |||
51 | [gnunet-nat-server] | ||
52 | HOSTNAME = gnunet.org | ||
53 | PORT = 5724 | ||
54 | |||