sudo systemctl enable --now wg-quick@wg0

Category: Self-Hosting

sudo systemctl enable --now wg-quick@wg0

Enable the WireGuard tunnel to start automatically on boot

Creates a systemd service for the wg0 interface so WireGuard reconnects automatically after every reboot.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.