]> Cypherpunks.ru repositories - govpn.git/blobdiff - doc/example.texi
Ability to explicitly specify TAP interface, without up-script using
[govpn.git] / doc / example.texi
index 6fd62dfd12becda2f470b11ec204e98793b4bbde..f734c65de829ba19e5e5ede3ff47e58d9268c2e6 100644 (file)
@@ -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