6 anytun-config - anycast tunneling configuration utility
13 [ *-L|--log* <target>:<level>[,<param1>[,<param2>[..]]]
14 [ *-r|--remote-host* <hostname|ip> ]
15 [ *-o|--remote-port* <port> ]
18 [ *-R|--route* <net>/<prefix length> ]
19 [ *-m|--mux* <mux-id> ]
20 [ *-w|--window-size* <window size> ]
21 [ *-k|--kd-prf* <kd-prf type> ]
22 [ *-e|--role <role>* ]
23 [ *-E|--passphrase* <pass phrase> ]
24 [ *-K|--key* <master key> ]
25 [ *-A|--salt* <master salt> ]
30 *anytun-config* writes routing/connection table entries, that can be read by *anytun-controld*.
35 -L|--log <target>:<level>[,<param1>[,<param2>[..]]]
36 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38 add log target to logging system. This can be invoked several times
39 in order to log to different targets at the same time. Every target
40 hast its own log level which is a number between 0 and 5. Where 0 means
41 disabling log and 5 means debug messages are enabled.
43 The following targets are supported:
45 * *syslog* - log to syslog daemon, parameters <level>[,<logname>[,<facility>]]
46 * *file* - log to file, parameters <level>[,<path>]
47 * *stdout* - log to standard output, parameters <level>
48 * *stderr* - log to standard error, parameters <level>
50 The file target can be used more the once with different levels.
51 If no target is provided at the command line a single target with the
52 following config is added:
54 *syslog:3,uanytun,daemon*
56 -r|--remote-host <hostname|ip>
57 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61 This option can be used to specify the remote tunnel
62 endpoint. In case of anycast tunnel endpoints, the
63 anycast IP address has to be used. If you do not specify
64 an address, it is automatically determined after receiving
65 the first data packet.
67 -o|--remote-port <port>
68 ~~~~~~~~~~~~~~~~~~~~~~~
71 The UDP port used for payload data by the remote host
72 (specified with -p on the remote host). If you do not specify
73 a port, it is automatically determined after receiving
74 the first data packet.
79 Resolv to IPv4 addresses only. The default is to resolv both
80 IPv4 and IPv6 addresses.
85 Resolv to IPv6 addresses only. The default is to resolv both
86 IPv4 and IPv6 addresses.
88 -R|--route <net>/<prefix length>
89 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91 add a route to connection. This can be invoked several times.
96 the multiplex id to use. default: 0
98 -w|--window-size <window size>
99 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
103 Sometimes, packets arrive out of order on the receiver
104 side. This option defines the size of a list of received
105 packets' sequence numbers. If, according to this list,
106 a received packet has been previously received or has
107 been transmitted in the past, and is therefore not in
108 the list anymore, this is interpreted as a replay attack
109 and the packet is dropped. A value of 0 deactivates this
110 list and, as a consequence, the replay protection employed
111 by filtering packets according to their secuence number.
112 By default the sequence window is disabled and therefore a
113 window size of 0 is used.
115 -k|--kd--prf <kd-prf type>
116 ~~~~~~~~~~~~~~~~~~~~~~~~~~
118 key derivation pseudo random function.
120 The pseudo random function which is used for calculating the
121 session keys and session salt.
125 * *null* - no random function, keys and salt are set to 0..00
126 * *aes-ctr* - AES in counter mode with 128 Bits, default value
127 * *aes-ctr-128* - AES in counter mode with 128 Bits
128 * *aes-ctr-192* - AES in counter mode with 192 Bits
129 * *aes-ctr-256* - AES in counter mode with 256 Bits
134 SATP uses different session keys for inbound and outbound traffic. The
135 role parameter is used to determine which keys to use for outbound or
136 inbound packets. On both sides of a vpn connection different roles have
137 to be used. Possible values are *left* and *right*. You may also use
138 *alice* or *server* as a replacement for *left* and *bob* or *client* as
139 a replacement for *right*. By default *left* is used.
141 -E|--passphrase <pass phrase>
142 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
144 This passphrase is used to generate the master key and master salt.
145 For the master key the last n bits of the SHA256 digest of the
146 passphrase (where n is the length of the master key in bits) is used.
147 The master salt gets generated with the SHA1 digest.
148 You may force a specific key and or salt by using *--key* and *--salt*.
150 -K|--key <master key>
151 ~~~~~~~~~~~~~~~~~~~~~
153 master key to use for key derivation
155 Master key in hexadecimal notation, eg
156 01a2b3c4d5e6f708a9b0cadbecfd0fa1, with a mandatory length
157 of 32, 48 or 64 characters (128, 192 or 256 bits).
159 -A|--salt <master salt>
160 ~~~~~~~~~~~~~~~~~~~~~~~
162 master salt to use for key derivation
164 Master salt in hexadecimal notation, eg
165 01a2b3c4d5e6f708a9b0cadbecfd, with a mandatory length
166 of 28 characters (14 bytes).
172 Add a client with Connection ID (Mux) 12 and add 2 Routes to this client
174 ------------------------------------------------------------------------------------------------
175 # anytun-config -w 0 -m 12 -K 0123456789ABCDEFFEDCBA9876543210 -A 0123456789ABCDDCBA9876543210 \
176 -R 192.0.2.0/24 -R 192.168.1.1/32 -e server >> routingtable
177 ------------------------------------------------------------------------------------------------
181 Most likely there are some bugs in *anytun*. If you find a bug, please let
182 the developers know at satp@anytun.org. Of course, patches are preferred.
186 anytun(8), anytun-controld(8), anytun-showtables(8)
190 Design of SATP and wizards of this implementation:
192 Othmar Gsenger <otti@anytun.org>
193 Erwin Nindl <nine@anytun.org>
194 Christian Pointner <equinox@anytun.org>
198 Andreas Hirczy <ahi@itp.tu-graz.ac.at>
202 Alexander List <alex@debian.org>
207 Main web site: http://www.anytun.org/
213 Copyright \(C) 2007-2008 Othmar Gsenger, Erwin Nindl and Christian
214 Pointner. This program is free software; you can redistribute
215 it and/or modify it under the terms of the GNU General Public License
216 version 2 as published by the Free Software Foundation.