7 anytun-config - anycast tunneling configuration utility
15 [ -L|--log <target>:<level>[,<param1>[,<param2>[..]]]
17 [ -r|--remote-host <hostname|ip> ]
18 [ -o|--remote-port <port> ]
21 [ -R|--route <net>/<prefix length> ]
23 [ -w|--window-size <window size> ]
24 [ -k|--kd-prf <kd-prf type> ]
26 [ -E|--passphrase <pass phrase> ]
27 [ -K|--key <master key> ]
28 [ -A|--salt <master salt> ]
34 *anytun-config* writes routing/connection table entries, that can be read by *anytun-controld*.
39 *-L, --log '<target>:<level>[,<param1>[,<param2>[..]]]'*::
40 add log target to logging system. This can be invoked several times
41 in order to log to different targets at the same time. Every target
42 hast its own log level which is a number between 0 and 5. Where 0 means
43 disabling log and 5 means debug messages are enabled. +
44 The file target can be used more the once with different levels.
45 If no target is provided at the command line a single target with the
46 config 'syslog:3,anytun-config,daemon' is added. +
47 The following targets are supported:
49 'syslog';; log to syslog daemon, parameters <level>[,<logname>[,<facility>]]
50 'file';; log to file, parameters <level>[,<path>]
51 'stdout';; log to standard output, parameters <level>
52 'stderr';; log to standard error, parameters <level>
55 This option instructs *Anytun* to run in debug mode. It implicits *-D*
56 (don't daemonize) and adds a log target with the configuration
57 'stdout:5' (logging with maximum level). In future releases there might
58 be additional output when this option is supplied.
60 *-r, --remote-host '<hostname|ip>'*::
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 The UDP port used for payload data by the remote host
69 (specified with -p on the remote host). If you do not specify
70 a port, it is automatically determined after receiving
71 the first data packet.
74 Resolv to IPv4 addresses only. The default is to resolv both
75 IPv4 and IPv6 addresses.
78 Resolv to IPv6 addresses only. The default is to resolv both
79 IPv4 and IPv6 addresses.
81 *-R, --route '<net>/<prefix length>'*::
82 add a route to connection. This can be invoked several times.
84 *-m, --mux '<mux-id>'*::
85 the multiplex id to use. default: 0
87 *-w, --window-size '<window size>'*::
89 Sometimes, packets arrive out of order on the receiver
90 side. This option defines the size of a list of received
91 packets' sequence numbers. If, according to this list,
92 a received packet has been previously received or has
93 been transmitted in the past, and is therefore not in
94 the list anymore, this is interpreted as a replay attack
95 and the packet is dropped. A value of 0 deactivates this
96 list and, as a consequence, the replay protection employed
97 by filtering packets according to their secuence number.
98 By default the sequence window is disabled and therefore a
99 window size of 0 is used.
101 *-k, --kd--prf '<kd-prf type>'*::
102 key derivation pseudo random function +
103 The pseudo random function which is used for calculating the
104 session keys and session salt. +
107 'null';; no random function, keys and salt are set to 0..00
108 'aes-ctr';; AES in counter mode with 128 Bits, default value
109 'aes-ctr-128';; AES in counter mode with 128 Bits
110 'aes-ctr-192';; AES in counter mode with 192 Bits
111 'aes-ctr-256';; AES in counter mode with 256 Bits
113 *-e, --role '<role>'*::
114 SATP uses different session keys for inbound and outbound traffic. The
115 role parameter is used to determine which keys to use for outbound or
116 inbound packets. On both sides of a vpn connection different roles have
117 to be used. Possible values are *left* and *right*. You may also use
118 *alice* or *server* as a replacement for *left* and *bob* or *client* as
119 a replacement for *right*. By default *left* is used.
121 *-E, --passphrase '<pass phrase>'*::
122 This passphrase is used to generate the master key and master salt.
123 For the master key the last n bits of the SHA256 digest of the
124 passphrase (where n is the length of the master key in bits) is used.
125 The master salt gets generated with the SHA1 digest.
126 You may force a specific key and or salt by using *--key* and *--salt*.
128 *-K, --key '<master key>'*::
129 master key to use for key derivation +
130 Master key in hexadecimal notation, e.g.
131 01a2b3c4d5e6f708a9b0cadbecfd0fa1, with a mandatory length
132 of 32, 48 or 64 characters (128, 192 or 256 bits).
134 *-A, --salt '<master salt>'*::
135 master salt to use for key derivation +
136 Master salt in hexadecimal notation, e.g.
137 01a2b3c4d5e6f708a9b0cadbecfd, with a mandatory length
138 of 28 characters (14 bytes).
144 Add a client with Connection ID (Mux) 12 and add 2 Routes to this client
146 ------------------------------------------------------------------------------------------------
147 # anytun-config -w 0 -m 12 -K 0123456789ABCDEFFEDCBA9876543210 -A 0123456789ABCDDCBA9876543210 \
148 -R 192.0.2.0/24 -R 192.168.1.1/32 -e server >> routingtable
149 ------------------------------------------------------------------------------------------------
153 Most likely there are some bugs in *Anytun*. If you find a bug, please let
154 the developers know at satp@anytun.org. Of course, patches are preferred.
158 anytun(8), anytun-controld(8), anytun-showtables(8)
163 Othmar Gsenger <otti@anytun.org>
164 Erwin Nindl <nine@anytun.org>
165 Christian Pointner <equinox@anytun.org>
171 Main web site: http://www.anytun.org/
177 Copyright \(C) 2007-2009 Othmar Gsenger, Erwin Nindl and Christian
178 Pointner. This program is free software: you can redistribute it
179 and/or modify it under the terms of the GNU General Public License
180 as published by the Free Software Foundation, either version 3 of
181 the License, or any later version.