summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2022-10-20 10:49:05 +0200
committerMathieu Othacehe <othacehe@gnu.org>2022-10-20 13:07:46 +0200
commit7ee77dc6df625b974b8fc3a00b7144087b60a410 (patch)
treef9d95afd60c4b6683e0cd66add83958c65ca4741 /doc
parent2a5c2a6184d65a1314fdf15bcfa5ddda5756ec18 (diff)
downloadguix-7ee77dc6df625b974b8fc3a00b7144087b60a410.tar.gz
services: wireguard: Add more configuration fields.
* gnu/services/vpn.scm (<wireguard-configuration>)[pre-up, post-up, pre-down,
post-down, table]: New fields.
(wireguard-configuration-file): Take them into account.
* doc/guix.texi (Wireguard): Update it.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 3bf2dee752..fd8b19fe46 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -31442,6 +31442,24 @@ the file does not exist.
 The authorized peers on this interface.  This is a list of
 @var{wireguard-peer} records.
 
+@item @code{pre-up} (default: @code{'()})
+The script commands to be run before setting up the interface.
+
+@item @code{post-up} (default: @code{'()})
+The script commands to be run after setting up the interface.
+
+@item @code{pre-down} (default: @code{'()})
+The script commands to be run before tearing down the interface.
+
+@item @code{post-down} (default: @code{'()})
+The script commands to be run after tearing down the interface.
+
+@item @code{table} (default: @code{"auto"})
+The routing table to which routes are added, as a string.  There are two
+special values: @code{"off"} that disables the creation of routes
+altogether, and @code{"auto"} (the default) that adds routes to the
+default table and enables special handling of default routes.
+
 @end table
 @end deftp