aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/man/wg-quick.8
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-05-18 03:17:02 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2023-05-18 16:39:49 +0200
commit729242a11466934f47690ddaf9a3465983b859e5 (patch)
tree8e6416a0d1c5b288b59100d4dd09f8dc5a6ff1d1 /src/man/wg-quick.8
parentwg-quick: run PreUp hook after creating interface (diff)
downloadwireguard-tools-729242a11466934f47690ddaf9a3465983b859e5.tar.xz
wireguard-tools-729242a11466934f47690ddaf9a3465983b859e5.zip
man: set private key in PreUp rather than PostUp
This is probably more sensible, since there's no point in letting traffic flow before the interface is configured. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--src/man/wg-quick.82
1 files changed, 1 insertions, 1 deletions
diff --git a/src/man/wg-quick.8 b/src/man/wg-quick.8
index b84eb64..bc9e145 100644
--- a/src/man/wg-quick.8
+++ b/src/man/wg-quick.8
@@ -168,7 +168,7 @@ sockets, which bypass Netfilter.) When IPv6 is in use, additional similar lines
Or, perhaps it is desirable to store private keys in encrypted form, such as through use of
.BR pass (1):
- \fBPostUp = wg set %i private-key <(pass WireGuard/private-keys/%i)\fP
+ \fBPreUp = wg set %i private-key <(pass WireGuard/private-keys/%i)\fP
.br
For use on a server, the following is a more complicated example involving multiple peers: