Wireguard-Konfiguration auf Ubuntu oder Debian installieren & automatisch starten
English
Deutsch
Es wird angenommen, dass bereits eine Wireguard-Konfigurationsdatei, z.B. MyVPN.conf, vorhanden ist.
MyVPN.confnach/etc/wireguard/MyVPN.confkopieren:
install_wg.sh
sudo cp MyVPN.conf /etc/wireguard/MyVPN.conf- Dienst starten & aktivieren (d.h. Autostart):
wg_systemctl_enable.sh
sudo systemctl enable --now wg-quick@MyVPN- Überprüfen mit
wg_show.sh
sudo wg showBeispiel wg-show-Ausgabe
wg_show_output.txt
interface: MyVPN
public key: xJ+A//t9RbOU4ISIr61tsZwc8SPLbLONXhknnU1QvBQ=
private key: (hidden)
listening port: 12073
peer: xgmml6wPoe9auL5oGhqScQXLByfrI/1xq3sOJzYaNhE=
endpoint: 77.55.81.22:23711
allowed ips: 10.178.212.1/32, 10.39.24.0/24
latest handshake: 37 seconds ago
transfer: 948 B received, 1.40 KiB sent
persistent keepalive: every 30 secondsCheck out similar posts by category:
Networking, VPN, Wireguard
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow