From 7ee77dc6df625b974b8fc3a00b7144087b60a410 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Thu, 20 Oct 2022 10:49:05 +0200 Subject: services: wireguard: Add more configuration fields. * gnu/services/vpn.scm ()[pre-up, post-up, pre-down, post-down, table]: New fields. (wireguard-configuration-file): Take them into account. * doc/guix.texi (Wireguard): Update it. --- doc/guix.texi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc') 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 -- cgit 1.4.1