4 Except for common @code{-mtu}, @code{-stats}, @code{-egd} options server
5 has the following ones:
10 @ref{Network, network protocol} to use. Can be @emph{udp} (default),
11 @emph{tcp} or @emph{all}.
14 Address (@code{host:port} format) we must bind to.
17 Path to JSON file with the configuration.
20 Start trivial HTTP @ref{Proxy} server on specified @emph{host:port}.
24 Configuration file is JSON file with following example structure:
28 "stargrave": { <-- Peer human readable name
29 "up": "./stargrave-up.sh", <-- up-script
30 "down": "./stargrave-down.sh", <-- OPTIONAL down-script
31 "timeout": 60, <-- OPTIONAL overriden timeout
32 "noise": true, <-- OPTIONAL noise enabler
34 "cpr": 64, <-- OPTIONAL constant packet
36 "verifier": "$argon2d..." <-- verifier received from client
42 up-script executes each time connection with the client is established.
43 Its @emph{stdout} output must contain TAP interface name as the first
44 line. This script can be simple @code{echo tap10}, or maybe more
48 $tap=$(ifconfig tap create)
49 ifconfig $tap inet6 fc00::1/96 mtu 1412 up
53 Each minute server rereads and refreshes peers configuration and adds
54 newly appeared identities, deletes an obsolete ones.
56 You can use convenient @code{utils/newclient.sh} script for new client
60 % ./utils/newclient.sh Alice
62 Your client verifier is: $argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg
64 Place the following JSON configuration entry on the server's side:
67 "up": "/path/to/up.sh",
68 "verifier": "$argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg$KCNIqfS4DGsBTtVytamAzcISgrlEWvNxan1UfBrFu10"