From 8108e41d89bb771fe8bcf887919de3f581f1cc0d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 16 Dec 2016 10:53:58 +0100 Subject: add PORT to NAT configuration, generate nat.conf from nat.conf.in, implement more of new NAT service --- src/nat/nat.conf.in | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 src/nat/nat.conf.in (limited to 'src/nat/nat.conf.in') 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 @@ +[nat] +AUTOSTART = @AUTOSTART@ +@UNIXONLY@ PORT = 2121 +HOSTNAME = localhost +BINARY = gnunet-service-nat +ACCEPT_FROM = 127.0.0.1; +ACCEPT_FROM6 = ::1; +UNIXPATH = $GNUNET_RUNTIME_DIR/gnunet-service-nat.sock +UNIX_MATCH_UID = YES +UNIX_MATCH_GID = YES + +# Are we behind NAT? +BEHIND_NAT = NO + +# Is the NAT hole-punched? +PUNCHED_NAT = NO + +# Enable UPNP by default? +ENABLE_UPNP = NO + +# Use addresses from the local network interfaces (inluding loopback, but also others) +USE_LOCALADDR = YES + +# Use address obtained from a DNS lookup of our hostname +USE_HOSTNAME = NO + +# External IP address of the NAT box (if known); IPv4 dotted-decimal ONLY at this time (should allow DynDNS!) +# normal interface IP address for non-NATed peers; +# possibly auto-detected (using UPnP) if possible if not specified +# EXTERNAL_ADDRESS = + +# Should we use ICMP-based NAT traversal to try connect to NATed peers +# or, if we are behind NAT, to allow connections to us? +ENABLE_ICMP_CLIENT = NO +ENABLE_ICMP_SERVER = NO + +# IP address of the interface connected to the NAT box; IPv4 dotted-decimal ONLY; +# normal interface IP address for non-NATed peers; +# likely auto-detected (via interface list) if not specified (!) +# INTERNAL_ADDRESS = + +# Disable IPv6 support +DISABLEV6 = NO + +# Do we use addresses from localhost address ranges? (::1, 127.0.0.0/8) +RETURN_LOCAL_ADDRESSES = NO + +# How often do we query the DNS resolver +# for our hostname (to get our own IP) +HOSTNAME_DNS_FREQUENCY = 20 min + +# How often do we iterate over our +# network interfaces to check for changes +# in our IP address? +IFC_SCAN_FREQUENCY = 15 min + +# How often do we query the DNS resolver +# for our hostname (to get our own IP) +DYNDNS_FREQUENCY = 7 min + +# SHOULD USE STUN ? +USE_STUN = YES +STUN_FREQUENCY = 5 min +# Default list of stun servers +STUN_SERVERS = stun.gnunet.org stun.services.mozilla.com:3478 stun.ekiga.net:3478 + +# After how long do we consider STUN data stale? +STUN_STALE = 60 min + + +[gnunet-nat-server] +HOSTNAME = gnunet.org +PORT = 5724 +NOARMBIND = YES -- cgit v1.2.3