Skip to content

Commit

Permalink
man: set private key in PreUp rather than PostUp
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
zx2c4 committed May 18, 2023
1 parent e6888dd commit 729242a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/man/wg-quick.8
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 729242a

Please sign in to comment.