-
Notifications
You must be signed in to change notification settings - Fork 21
Make WireGuard persistent on V2.0
Alexander Wolf edited this page Feb 2, 2023
·
1 revision
V2 has wireguard-tools
pre-installed and with that the systemd-unit-Generator wg-quick@.service
. With that, a WireGuard interface can be started, inspected and stopped (assuming interface name wg0
here):
systemctl start wg-quick@wg0.service
systemctl status wg-quick@wg0.service
systemctl stop wg-quick@wg0.service
To start the interface during each system boot:
systemctl enable wg-quick@wg0.service
To disable automatic start during boot:
systemctl disable wg-quick@wg0.service