4 @cindex Server configuration
9 Except for common @code{-stats}, @code{-egd} options server has the
15 @ref{Network, network protocol} to use. Can be @emph{udp} (default),
16 @emph{tcp} or @emph{all}.
19 Address (@code{host:port} format) we must bind to.
22 Path to YAML file with the configuration.
25 Start trivial HTTP @ref{Proxy} server on specified @emph{host:port}.
30 @cindex YAML configuration
31 @cindex Configuration file
32 Configuration file is YAML file with following example structure:
35 stargrave: { <-- Peer human readable name
36 iface: tap10 <-- OPTIONAL TAP interface name
37 mtu: 1514 <-- OPTIONAL overriden MTU
38 up: ./stargrave-up.sh <-- OPTIONAL up-script
39 down: ./stargrave-down.sh <-- OPTIONAL down-script
40 timeout: 60 <-- OPTIONAL overriden timeout
41 timesync: 0 <-- OPTIONAL time synchronization requirement
42 noise: No <-- OPTIONAL noise enabler
43 cpr: 64 <-- OPTIONAL constant packet rate, KiB/sec
44 encless: No <-- OPTIONAL Encryptionless mode
45 verifier: $argon2d... <-- verifier received from client
49 At least one of either @code{iface} or @code{up} must be specified. If
50 you specify @code{iface}, then it will be forcefully used to determine
51 what TAP interface will be used. If it is not specified, then up-script
52 must output interface's name to stdout (first output line).
54 For example up-script can be just @code{echo tap10}, or more advanced
55 like the following one:
61 $tap=$(ifconfig tap create)
62 ifconfig $tap inet6 fc00::1/96 mtu 1412 up
66 Each minute server rereads and refreshes peers configuration and adds
67 newly appeared identities, deletes an obsolete ones.
69 You can use convenient @code{utils/newclient.sh} script for new client
73 % ./utils/newclient.sh Alice
75 Your client verifier is: $argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg
77 Place the following YAML configuration entry on the server's side:
81 iface: or TAP interface name
82 verifier: $argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg$KCNIqfS4DGsBTtVytamAzcISgrlEWvNxan1UfBrFu10
85 Example configuration file:
89 verifier: $argon2d$m=4096,t=128,p=1$VMirzcshcHuG2V4jhUsEjw$X5fC07L8k61h3S1Oro/rC76+m0oGDTA9Bq+aWJ1uOgY
95 verifier: $argon2d$m=4096,t=128,p=1$YbIA5garDqCOhtI/2EZVNg$gOo5vcEGynmpeepNscwclicfZsWxzgYFRLbgG21EZ1U