Skip to content

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 [email protected]. With that, a WireGuard interface can be started, inspected and stopped (assuming interface name wg0 here):

systemctl start  [email protected] 
systemctl status [email protected] 
systemctl   stop [email protected] 

To start the interface during each system boot: systemctl enable [email protected]

To disable automatic start during boot: systemctl disable [email protected]