wireguard: document initial setup
This commit is contained in:
parent
3ef40e24e4
commit
3bdf09e661
1 changed files with 15 additions and 0 deletions
15
doc/wireguard.md
Normal file
15
doc/wireguard.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Wireguard
|
||||
|
||||
## Initial setup
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
cd -- ../../secrets/files/etc/wireguard
|
||||
(umask 077; wg genkey | tee shione.private.key | wg pubkey > shione.public.key)
|
||||
# TODO: chmod 0600 all files under files/etc/wireguard.
|
||||
# TODO: Update files/etc/wireguard/wg0.conf accordingly.
|
||||
cd -- -
|
||||
```
|
Loading…
Reference in a new issue