diff --git a/docs/content/docs/en/config/amneziawg.mdx b/docs/content/docs/en/config/amneziawg.mdx index 08ee6abfc..92152a2f4 100644 --- a/docs/content/docs/en/config/amneziawg.mdx +++ b/docs/content/docs/en/config/amneziawg.mdx @@ -164,6 +164,33 @@ after it is not charged. Interfaces and configs the panel cannot prove are its own — a same-named link with a different key, or an unmarked, non-regular or symlinked config file — are never changed or removed. +### Reboots and kernel module updates + +The installer registers amneziawg in `/etc/modules-load.d/amneziawg.conf` so the +host loads it during boot. If you installed it with an older panel build and +kernel mode stops working after reboot, rerun the `install-awg-kernel` command +above using a build that includes boot registration. + +Run these checks on the host to identify the installed and loaded module. + +```sh +modinfo amneziawg +lsmod | grep '^amneziawg ' +awg --version +``` + +`modinfo` looks up the module built for the running kernel. `lsmod` lists the +module only after the kernel has loaded it. The panel's systemd service cannot +load kernel modules itself, so kernel mode requires the host to load amneziawg +before the panel starts. + +Use the same `install-awg-kernel` command to update the module and tools to the +versions pinned by your panel build. The installer prints the source tags. +`modinfo` reports the version declared by the compiled module, which can differ +from its source tag. An in-use module stays loaded during the install. Schedule +a maintenance reboot to load the updated module and allow for tunnel +interruption. + ## Keepalive ranges AmneziaWG clients accept `keepAlive` as a number or an ordered range from 0 to 65535, such as `15-25`. Omitted values keep the existing setting; explicit `0` disables keepalive. Native `.conf` files preserve ranges, while Clash/Mihomo scalar-only output uses the lower bound (`0-25` therefore disables keepalive). Plain WireGuard clients support only a scalar value. Upgrade sub-nodes before sending them range values because older nodes parse keepalive as an integer.