computer-playbook/roles/native-wireguard/README.md
Kevin Veen-Birkenbach 3125161468 Updated README.md
2021-01-12 11:19:08 +01:00

35 lines
789 B
Markdown

# Role Native Wireguard
Manages wireguard on host.
## Client
### Setup wireguard
```bash
pacman -S wireguard-tools
```
### Create Client Keys
```bash
wg_private_key="$(wg genkey)"
wg_public_key="$(echo "$wg_private_key" | wg pubkey)"
echo "PrivateKey: $wg_private_key"
echo "PublicKey: $wg_public_key"
echo "PresharedKey: $(wg genpsk)"
```
### Activate Configuration
```bash
cp /path/to/wg0.conf /etc/wireguard/wg0.conf
systemctl enable wg-quick@wg0.service --now
```
### Check status
```bash
systemctl status wg-quick@wg0.service
```
## See
- https://golb.hplar.ch/2019/01/expose-server-vpn.html
- https://wiki.archlinux.org/index.php/WireGuard
- https://wireguard.how/server/raspbian/
- https://www.scaleuptech.com/de/blog/was-ist-und-wie-funktioniert-subnetting/