Wireguard
Server konfigurieren
- Private Key erstellen und Public Key daraus ableiten
wg genkey > privatekey.txt wg pubkey < privatekey.txt > publickey.txt
- Wireguard-Interface erstellen und IP zuweisen
ip l add dev WG type wireguard ip a add dev WG 172.31.0.11/24 ip a add dev WG fd00:ffff:2000::11/48 ip l set WG up
- Wireguard Peer konfigurieren
wg set WG private-key privkeywg peer <PublicKey des Servers> endpoint darkrealm.dyndns.org:51820 allowed-ips 0.0.0.0/0,::/0
- Konfiguration in Datei exportieren
wg showconf WG > WG.conf
- Konfiguration aus Datei lesen und anwenden
wg setconf WG wg.conf