WireGuard: Difference between revisions
Hughobrien (talk | contribs) m add note about systemd not adding a routing entry by default |
Eflanagan0 (talk | contribs) m →Client setup: caveat wireguard private key ownership |
||
| Line 17: | Line 17: | ||
Alternatively, you can use <tt>networking.wireguard.interfaces.[name].generatePrivateKeyFile</tt> option. | Alternatively, you can use <tt>networking.wireguard.interfaces.[name].generatePrivateKeyFile</tt> option. | ||
If you decide to use files for storing your private keys and also use networkd, you'll need to modify the private key file permissions. For example, the following command configures the correct ownership of <code>/run/keys/my-wireguard.key</code><syntaxhighlight lang="bash"> | |||
sudo chown systemd-network:systemd-network /run/keys/my-wireguard.key | |||
</syntaxhighlight> | |||
===Server setup=== | ===Server setup=== | ||