WIP: Wireguard module for maintenance vpn #29

Closed
ahtlon wants to merge 5 commits from vpn into master
2 changed files with 12 additions and 0 deletions
Showing only changes of commit 2f419a99d7 - Show all commits

View File

@@ -12,5 +12,6 @@
- [musik](./projekte/musik.md)
- [TODO](./todo.md)
- [How-to]()
- [Wireguard](./anleitung/wireguard.md)
- [Updates](./anleitung/updates.md)
- [Rollbacks](./anleitung/rollback.md)

View File

@@ -0,0 +1,11 @@
# Wireguard
Running on the raspberry pi
- Create new keys
- Enter nix shell for wg commands `nix-shell -p wireguard-tools`
- New private key `wg genkey > secrets/keys/wireguard/example.key`
- Encrypt with `sops -e -i secrets/keys/wireguard/example.key`
- commit keys only after encrypting
- Decrypt to stdout `sops -d secrets/keys/wireguard/example.key`
- Decrypt for use on a client `sops -d secrets/keys/wireguard/private.key > /tmp/private.key`
- Display public key `sops -d secrets/keys/wireguard/example.key | wg pubkey`