UANYTUN(8) | UANYTUN(8) |
uanytun - micro anycast tunneling daemon
uanytun
[ -h|--help ]
[ -D|--nodaemonize ]
[ -u|--username <username> ]
[ -g|--groupname <groupname> ]
[ -C|--chroot <path> ]
[ -P|--write-pid <filename> ]
[ -L|--log <target>:<level>[,<param1>[,<param2>[..]]] ]
[ -U|--debug ]
[ -i|--interface <ip-address> ]
[ -p|--port <port> ]
[ -r|--remote-host <hostname|ip> ]
[ -o|--remote-port <port> ]
[ -4|--ipv4-only ]
[ -6|--ipv6-only ]
[ -d|--dev <name> ]
[ -t|--type <tun|tap> ]
[ -n|--ifconfig <local>/<prefix> ]
[ -x|--post-up-script <script> ]
[ -m|--mux <mux-id> ]
[ -s|--sender-id <sender id> ]
[ -w|--window-size <window size> ]
[ -k|--kd-prf <kd-prf type> ]
[ -e|--role <role> ]
[ -E|--passphrase <pass phrase> ]
[ -K|--key <master key> ]
[ -A|--salt <master salt> ]
[ -c|--cipher <cipher type> ]
[ -a|--auth-algo <algo type> ]
[ -b|--auth-tag-length <length> ]
uAnytun is a tiny implementation of the Secure Anycast Tunneling Protocol (SATP). It provides a complete VPN solution similar to OpenVPN or IPsec in tunnel mode. The main difference is that anycast enables the setup of tunnels between an arbitrary combination of anycast, unicast and multicast hosts. Unlike Anytun which is a full featured implementation uAnytun has no support for multiple connections or synchronisation. It is a small single threaded implementation intended to act as a client on small platforms.
uAnytun has been designed as a peer to peer application, so there is no difference between client and server. The following options can be passed to the daemon:
-D, --nodaemonize
-u, --username <username>
-g, --groupname <groupname>
-C, --chroot <path>
-P, --write-pid <filename>
-L, --log <target>:<level>[,<param1>[,<param2>[..]]]
The file target can be used more than once with different levels. If no target is provided at the command line a single target with the config syslog:3,uanytun,daemon is added.
The following targets are supported:
syslog
file
stdout
stderr
-U, --debug
-i, --interface <ip address>
-p, --port <port>
-r, --remote-host <hostname|ip>
-o, --remote-port <port>
-4, --ipv4-only
-6, --ipv6-only
-d, --dev <name>
By default, tapN is used for Ethernet tunnel interfaces, and tunN for IP tunnels, respectively. This option can be used to manually override these defaults.
-t, --type <tun|tap>
Type of the tunnels to create. Use tap for Ethernet tunnels, tun for IP tunnels.
-n, --ifconfig <local>/<prefix>
<local>
<prefix>
-x, --post-up-script <script>
-m, --mux <mux-id>
-s, --sender-id <sender id>
-w, --window-size <window size>
Sometimes, packets arrive out of order on the receiver side. This option defines the size of a list of received packets' sequence numbers. If, according to this list, a received packet has been previously received or has been transmitted in the past, and is therefore not in the list anymore, this is interpreted as a replay attack and the packet is dropped. A value of 0 deactivates this list and, as a consequence, the replay protection employed by filtering packets according to their secuence number. By default the sequence window is disabled and therefore a window size of 0 is used.
-k, --kd—prf <kd-prf type>
The pseudo random function which is used for calculating the session keys and session salt.
Possible values:
null
aes-ctr
aes-ctr-128
aes-ctr-192
aes-ctr-256
-e, --role <role>
-E, --passphrase <pass phrase>
-K, --key <master key>
Master key in hexadecimal notation, e.g. 01a2b3c4d5e6f708a9b0cadbecfd0fa1, with a mandatory length of 32, 48 or 64 characters (128, 192 or 256 bits).
-A, --salt <master salt>
Master salt in hexadecimal notation, e.g. 01a2b3c4d5e6f708a9b0cadbecfd, with a mandatory length of 28 characters (14 bytes).
-c, --cipher <cipher type>
Encryption algorithm used for encrypting the payload
Possible values:
null
aes-ctr
aes-ctr-128
aes-ctr-192
aes-ctr-256
-a, --auth-algo <algo type>
This option sets the message authentication algorithm.
If HMAC-SHA1 is used, the packet length is increased. The additional bytes contain the authentication data. see --auth-tag-length for more info.
Possible values:
null
sha1
-b, --auth-tag-length <length>
Host A:
uanytun -r hostb.example.com -t tun -n 192.168.123.1/30 -c aes-ctr-256 -k aes-ctr-256 -E have_a_very_safe_and_productive_day -e left
Host B:
uanytun -r hosta.example.com -t tun -n 192.168.123.2/30 -c aes-ctr-256 -k aes-ctr-256 -E have_a_very_safe_and_productive_day -e right
Unicast tunnel endpoint:
uanytun -r anycast.anytun.org -d anytun0 -t tun -n 192.0.2.2/30 -a null -c null -w 0 -e client
Anycast tunnel endpoints:
As uAnytun can’t work as an anycast endpoint it can’t be used for this purpose. You have to use Anytun for that job.
Most likely there are some bugs in uAnytun. If you find a bug, please let the developers know at uanytun@anytun.org. Of course, patches are preferred.
Christian Pointner <equinox@anytun.org>
Main web site: http://www.anytun.org/
Copyright (C) 2008-2014 Christian Pointner. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
06/08/2018 |