15 lines
303 B
Markdown
15 lines
303 B
Markdown
# 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 -- -
|
|
```
|