aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat.conf.in
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-12-16 10:53:58 +0100
committerChristian Grothoff <christian@grothoff.org>2016-12-16 10:53:58 +0100
commit8108e41d89bb771fe8bcf887919de3f581f1cc0d (patch)
tree970c382485c663f8c8516b59e34790d33878dbfb /src/nat/nat.conf.in
parentf88d55e43f3d3a4468c2faa0621044ad17594e5f (diff)
downloadgnunet-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.in74
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]
2AUTOSTART = @AUTOSTART@
3@UNIXONLY@ PORT = 2121
4HOSTNAME = localhost
5BINARY = gnunet-service-nat
6ACCEPT_FROM = 127.0.0.1;
7ACCEPT_FROM6 = ::1;
8UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-nat.sock
9UNIX_MATCH_UID = YES
10UNIX_MATCH_GID = YES
11
12# Are we behind NAT?
13BEHIND_NAT = NO
14
15# Is the NAT hole-punched?
16PUNCHED_NAT = NO
17
18# Enable UPNP by default?
19ENABLE_UPNP = NO
20
21# Use addresses from the local network interfaces (inluding loopback, but also others)
22USE_LOCALADDR = YES
23
24# Use address obtained from a DNS lookup of our hostname
25USE_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?
34ENABLE_ICMP_CLIENT = NO
35ENABLE_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
43DISABLEV6 = NO
44
45# Do we use addresses from localhost address ranges? (::1, 127.0.0.0/8)
46RETURN_LOCAL_ADDRESSES = NO
47
48# How often do we query the DNS resolver
49# for our hostname (to get our own IP)
50HOSTNAME_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?
55IFC_SCAN_FREQUENCY = 15 min
56
57# How often do we query the DNS resolver
58# for our hostname (to get our own IP)
59DYNDNS_FREQUENCY = 7 min
60
61# SHOULD USE STUN ?
62USE_STUN = YES
63STUN_FREQUENCY = 5 min
64# Default list of stun servers
65STUN_SERVERS = stun.gnunet.org stun.services.mozilla.com:3478 stun.ekiga.net:3478
66
67# After how long do we consider STUN data stale?
68STUN_STALE = 60 min
69
70
71[gnunet-nat-server]
72HOSTNAME = gnunet.org
73PORT = 5724
74NOARMBIND = YES