diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-12-16 10:53:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-12-16 10:53:58 +0100 |
commit | 8108e41d89bb771fe8bcf887919de3f581f1cc0d (patch) | |
tree | 970c382485c663f8c8516b59e34790d33878dbfb /src/nat/nat.conf.in | |
parent | f88d55e43f3d3a4468c2faa0621044ad17594e5f (diff) | |
download | gnunet-8108e41d89bb771fe8bcf887919de3f581f1cc0d.tar.gz gnunet-8108e41d89bb771fe8bcf887919de3f581f1cc0d.zip |
add PORT to NAT configuration, generate nat.conf from nat.conf.in, implement more of new NAT service
Diffstat (limited to 'src/nat/nat.conf.in')
-rw-r--r-- | src/nat/nat.conf.in | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/nat/nat.conf.in b/src/nat/nat.conf.in new file mode 100644 index 000000000..304db3c15 --- /dev/null +++ b/src/nat/nat.conf.in | |||
@@ -0,0 +1,74 @@ | |||
1 | [nat] | ||
2 | AUTOSTART = @AUTOSTART@ | ||
3 | @UNIXONLY@ PORT = 2121 | ||
4 | HOSTNAME = localhost | ||
5 | BINARY = gnunet-service-nat | ||
6 | ACCEPT_FROM = 127.0.0.1; | ||
7 | ACCEPT_FROM6 = ::1; | ||
8 | UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-nat.sock | ||
9 | UNIX_MATCH_UID = YES | ||
10 | UNIX_MATCH_GID = YES | ||
11 | |||
12 | # Are we behind NAT? | ||
13 | BEHIND_NAT = NO | ||
14 | |||
15 | # Is the NAT hole-punched? | ||
16 | PUNCHED_NAT = NO | ||
17 | |||
18 | # Enable UPNP by default? | ||
19 | ENABLE_UPNP = NO | ||
20 | |||
21 | # Use addresses from the local network interfaces (inluding loopback, but also others) | ||
22 | USE_LOCALADDR = YES | ||
23 | |||
24 | # Use address obtained from a DNS lookup of our hostname | ||
25 | USE_HOSTNAME = NO | ||
26 | |||
27 | # External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!) | ||
28 | # normal interface IP address for non-NATed peers; | ||
29 | # possibly auto-detected (using UPnP) if possible if not specified | ||
30 | # EXTERNAL_ADDRESS = | ||
31 | |||
32 | # Should we use ICMP-based NAT traversal to try connect to NATed peers | ||
33 | # or, if we are behind NAT, to allow connections to us? | ||
34 | ENABLE_ICMP_CLIENT = NO | ||
35 | ENABLE_ICMP_SERVER = NO | ||
36 | |||
37 | # IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY; | ||
38 | # normal interface IP address for non-NATed peers; | ||
39 | # likely auto-detected (via interface list) if not specified (!) | ||
40 | # INTERNAL_ADDRESS = | ||
41 | |||
42 | # Disable IPv6 support | ||
43 | DISABLEV6 = NO | ||
44 | |||
45 | # Do we use addresses from localhost address ranges? (::1, 127.0.0.0/8) | ||
46 | RETURN_LOCAL_ADDRESSES = NO | ||
47 | |||
48 | # How often do we query the DNS resolver | ||
49 | # for our hostname (to get our own IP) | ||
50 | HOSTNAME_DNS_FREQUENCY = 20 min | ||
51 | |||
52 | # How often do we iterate over our | ||
53 | # network interfaces to check for changes | ||
54 | # in our IP address? | ||
55 | IFC_SCAN_FREQUENCY = 15 min | ||
56 | |||
57 | # How often do we query the DNS resolver | ||
58 | # for our hostname (to get our own IP) | ||
59 | DYNDNS_FREQUENCY = 7 min | ||
60 | |||
61 | # SHOULD USE STUN ? | ||
62 | USE_STUN = YES | ||
63 | STUN_FREQUENCY = 5 min | ||
64 | # Default list of stun servers | ||
65 | STUN_SERVERS = stun.gnunet.org stun.services.mozilla.com:3478 stun.ekiga.net:3478 | ||
66 | |||
67 | # After how long do we consider STUN data stale? | ||
68 | STUN_STALE = 60 min | ||
69 | |||
70 | |||
71 | [gnunet-nat-server] | ||
72 | HOSTNAME = gnunet.org | ||
73 | PORT = 5724 | ||
74 | NOARMBIND = YES | ||