shione/doc/wireguard.md

16 lines
303 B
Markdown
Raw Normal View History

2024-08-27 16:22:06 -04:00
# 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 -- -
```