mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-29 22:14:50 +03:00
docs(amneziawg): explain boot loading and kernel upgrades (#7247)
The reboot fix from #7194 registers the module in modules-load.d, but hosts installed with an older build still lose kernel mode after a reboot and had no page telling them to rerun install-awg-kernel. Document how to pick up boot registration, how to tell the installed module from the loaded one, why modinfo's version can differ from the source tag, and why a module update needs a maintenance reboot.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user