brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: delete /boot/config/wireguard/autostart when WireGuard locks you out

Troubleshooting
~/tips/tip-unraid-wireguard-autostart-recovery

/boot/config/wireguard/autostart

Stop a broken WireGuard tunnel from starting at boot so you get your WebGUI back.

WireGuard on Unraid is set and forget, right up to the moment a change in Settings, VPN Manager leaves you without a WebGUI. With Autostart enabled, a reboot just brings the same broken tunnel back.

The docs have an emergency exit for this in the WireGuard troubleshooting section. If you lose access to the WebGUI and need to stop WireGuard from starting at boot, delete this file from the boot drive and reboot:

/boot/config/wireguard/autostart

From a keyboard and monitor on the server, or an SSH session that still works, that’s:

rm /boot/config/wireguard/autostart
reboot

No console at all? Shut the server down, put the USB boot device in another computer and delete config/wireguard/autostart there. The tunnel configs stay where they are. After the reboot WireGuard just isn’t running, you get back into the WebGUI, fix what you changed and switch Autostart back on yourself.

How do you end up here? The docs warn that adding a new peer can temporarily disable the WireGuard tunnel, and they tell you to make sure you have local access before you change anything. My advice is the boring version: only edit tunnels and peers from a device on your home LAN, never from the VPN connection you’re changing. Sawing off the branch you sit on is the classic way in.

The caveat is that this is a recovery step, not a fix. Clients also need fresh configuration files after server-side changes, and the docs say to save your changes before you show the QR code or download a peer config. Otherwise you hand out the old settings and start the whole puzzle again.

Further reading: Unraid docs: WireGuard

Going deeper: Why a Tailscale device vanishes after 180 days, and how to stop it

More Troubleshooting tips Get-NetTCPConnection -State Listen modinfo -p usb_storage ps -o pid,lstart,etime,cmd -p 1234 sudo lsof -nP -p 1234 fc-match Helvetica All Troubleshooting tips (21) All topics

Link