Date: 2023aug28
Language: mixed
Q. Wireguard: start/stop/enable/disable on Linux and Windows
A. If your system has systemd (eg Fedora):
systemctl status wg-quick@wg0
systemctl start wg-quick@wg0
systemctl stop wg-quick@wg0
systemctl enable wg-quick@wg0
systemctl disable wg-quick@wg0
For other Linux:
wg-quick up wgo
wg-quick down wg0
Windows - using class commandprompt
sc query wireguard
sc start wireguard
sc stop wireguard
Windows - open a PowerShell Window:
Get-Service wireguard
Start-Service wireguard
Stop-Service wireguard