X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=doc%2Fexample.texi;h=f734c65de829ba19e5e5ede3ff47e58d9268c2e6;hb=af08408334c3e2f23acde5f74e77f628c85b532a;hp=6fd62dfd12becda2f470b11ec204e98793b4bbde;hpb=933703051138e099c2fde03861278477058c3517;p=govpn.git diff --git a/doc/example.texi b/doc/example.texi index 6fd62df..f734c65 100644 --- a/doc/example.texi +++ b/doc/example.texi @@ -29,6 +29,7 @@ Place the following JSON configuration entry on the server's side: "Alice": { "up": "/path/to/up.sh", + "iface": "or TAP interface name", "verifier": "$argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg$KCNIqfS4DGsBTtVytamAzcISgrlEWvNxan1UfBrFu10" } @@ -39,14 +40,21 @@ Verifier was generated with: @end verbatim @strong{Prepare the server}. Add this entry to @code{peers.json} -configuration file. +configuration file: + +@verbatim +{ + "Alice": { + "iface": "tap10", + "verifier": "$argon2d$m=4096,t=128,p=1$bwR5VjeCYIQaa8SeaI3rqg$KCNIqfS4DGsBTtVytamAzcISgrlEWvNxan1UfBrFu10" + } +} +@end verbatim @strong{Prepare network on GNU/Linux IPv4 server}: @example server% umask 077 -server% echo "#!/bin/sh" > /path/to/up.sh -server% echo "echo tap10" >> /path/to/up.sh server% ip addr add 192.168.0.1/24 dev wlan0 server% tunctl -t tap10 server% ip link set mtu 1432 dev tap10