notiz:wireguard
Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
Wireguard
wg conf
- /etc/wireguard/<interface name
.conf> # Lokales Interface [Interface] Address = 192.168.123.1/24 PrivateKey = <private key of local interface> ListenPort = 51820 # Netzwerport PostUp = <bash command> PostDown = <bash command> # Client 1 [Peer] PublicKey = <public key of client 1> AllowedIPs = 192.168.123.12/32 # Client 2 [Peer] PublicKey = <public key of client 2> AllowedIPs = 192.168.123.11/32
Wireguard verwenden
Interface starten
wg-quick up <interface name>
Interface stoppen
wg-quick down <interface name>
Interface starten systemd
systemctl start wg-quick@<interface name>
Interface stoppen systemd
systemctl stop wg-quick@<interface name>
Interface persistent starten systemd
systemctl enable wg-quick@<interface name>
notiz/wireguard.1584556388.txt.gz · Zuletzt geändert: 2020/03/18 19:33 von clerie