gnunet-nat — interact with the NAT service
Contents
Bugs
Report bugs by using https://bugs.gnunet.org or by sending electronic mail to
⟨gnunet-developers@gnu.org⟩.
Debian October 26, 2018 GNUNET-NAT(1)
Description
This tool allows testing various NAT traversal functions, as well as attempting auto-configuration.
Examples
Basicexamples#gnunet-nat-i0.0.0.0:8080-u
We are bound to "0.0.0.0:8080" on UDP and want to obtain all applicable IP addresses.
#gnunet-nat-i'[::0]':8080-t
We are bound to "::0" on port 8080 on TCP and want to obtain all applicable IP addresses.
#gnunet-nat-i127.0.0.1:8080-u
We are bound to "127.0.0.1:8080" on UDP and want to obtain all applicable IP addresses:
ICMP-basedNATtraversal#gnunet-nat-Wt-i192.168.178.12:8080
Watch for connection reversal request (you must be bound to NAT range or to wildcard, 0.0.0.0), only
works for IPv4:
#gnunet-nat-t-r1.2.3.4:8080-i2.3.4.5:8080#gnunet-nat-t-r1.2.3.4:8080-i0.0.0.0:8080
Initiate connection reversal request from peer at external IPv4 address 1.2.3.4, and let the kernel fill
in whatever IPv4 address we happen to have:
Manualholepunching#gnunet-nat-t-pAUTO:8080
Assume manually punched NAT, but determine external IP automatically:
STUN-basedXXX:#gnunet-natFIXME-s
XXX
Name
gnunet-nat — interact with the NAT service
Options
-bADDRESS | --bind=ADDRESS
Assume that the service is (locally) bound to ADDRESS.
-cFILENAME | --config=FILENAME
Use the configuration file FILENAME.
-eADDRESS | --external=ADDRESS
Assume that ADDRESS is the globally visible address of the peer.
-iADDRESS | --in=ADDRESS
Assuming we are listening at ADDRESS for connection reversal requests.
-rADDRESS | --remote=ADDRESS
Ask the peer at ADDRESS for connection reversal, using the local address for the target address
of the reversal.
-SNAME | --section=NAME
Name of section in configuration file to use for additional options.
-s | --stun
Enable processing of STUN requests. Will try to read UDP packets from the bind address and
handle the packets if they are STUN packets. Will only work with UDP.
-t | --tcp
Use TCP.
-u | --udp
Use UDP.
-W | --watch
Watch for connection reversal requests.
See Also
gnunet-transport(1) The full documentation for gnunet is maintained as a Texinfo manual. If the info(1) and gnunet programs are properly installed at your site, the command infognunet should give you access to the complete handbook, infognunet-c-tutorial will give you access to a tutorial for developers. Depending on your installation, this information is also available in gnunet(7) and gnunet-c-tutorial(7).
Synopsis
gnunet-nat [-bADDRESS | --bind=ADDRESS] [-cFILENAME | --config=FILENAME]
[-eADDRESS | --external=ADDRESS] [-iADDRESS | --in=ADDRESS] [-rADDRESS | --remote=ADDRESS]
[-SNAME | --section=NAME] [-s | --stun] [-t | --tcp] [-u | --udp] [-W | --watch]
