aboutsummaryrefslogtreecommitdiffstats
path: root/doc/wireguard.md
blob: 59b094802df120d3741911cedfd2fe45ee1c49ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 -- -
```