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 noise: No <-- OPTIONAL noise enabler
42 cpr: 64 <-- OPTIONAL constant packet rate, KiB/sec
43 encless: No <-- OPTIONAL Encryptionless mode
44 verifier: $argon2d... <-- verifier received from client
48 At least one of either @code{iface} or @code{up} must be specified. If
49 you specify @code{iface}, then it will be forcefully used to determine
50 what TAP interface will be used. If it is not specified, then up-script
51 must output interface's name to stdout (first output line).
53 For example up-script can be just @code{echo tap10}, or more advanced
54 like the following one:
60 $tap=$(ifconfig tap create)
61 ifconfig $tap inet6 fc00::1/96 mtu 1412 up
65 Each minute server rereads and refreshes peers configuration and adds
66 newly appeared identities, deletes an obsolete ones.
68 You can use convenient @code{utils/newclient.sh} script for new client
72 % ./utils/newclient.sh Alice
74 Your client verifier is: $argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg
76 Place the following YAML configuration entry on the server's side:
80 iface: or TAP interface name
81 verifier: $argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg$KCNIqfS4DGsBTtVytamAzcISgrlEWvNxan1UfBrFu10
84 Example configuration file:
88 verifier: $argon2d$m=4096,t=128,p=1$VMirzcshcHuG2V4jhUsEjw$X5fC07L8k61h3S1Oro/rC76+m0oGDTA9Bq+aWJ1uOgY
94 verifier: $argon2d$m=4096,t=128,p=1$YbIA5garDqCOhtI/2EZVNg$gOo5vcEGynmpeepNscwclicfZsWxzgYFRLbgG21EZ1U