Hi,
I'm running GL-MT3600BE (Beryl 7) on firmware 4.8.6 and trying to set up AmneziaWG 2.0 client with my own VPS (running amnezia-awg2 Docker container).
The server config contains AWG2 parameters including H1–H4 as ranges (e.g. H1 = 1820558476-2116XXXXX73) and S3/S4 parameters.
Issue 1 — Config import truncates H1–H4 values
When uploading the .conf file via the web interface, the H1–H4 values get silently truncated. For example:
# What's in the uploaded file:
H1 = 1820558476-2116XXXXX73
# What gets saved to /etc/wireguard/profile/XXXX/peer_XXXX:
H1 = 1820558476-2116
The web UI shows "Passed" on upload but the values are cut off. This means the import parser is treating the - as a negative sign or separator and only keeping the first part of the range.
Issue 2 — Web UI does not allow editing config values manually
After noticing the truncation, I tried to fix the values directly in the web interface via VPN → WireGuard Client → Edit. However, any changes made in the web UI are not saved — the values revert back to the truncated ones. The web interface does not provide a way to manually correct the config.
Issue 3 — Parser rejects H1–H4 range format even after manual fix via SSH
As a workaround, I manually corrected the truncated values via SSH directly in /etc/wireguard/profile/XXXX/peer_XXXX:
# Before (truncated):
H1 = 1820558476-2116
H2 = 2125884291-2132
H3 = 2142557457-2146
H4 = 2147186404-2147
# After (manually fixed via SSH):
H1 = 1820558476-2116XXXXX73
H2 = 2125884291-2132XXXXX42
H3 = 2142557457-2146XXXXX40
H4 = 2147186404-2147XXXXX65
I also made sure there are no spaces around the - as suggested in another thread. However the interface still fails to start with the following error:
daemon.notice netifd: wgclient1 (3998): Unable to parse H1: `1820558476-2116XXXXX73'
So it appears the AWG2 parser on the router does not support the range format for H1–H4 (two integers separated by a dash), even though AWG 2.0 support was announced in the 4.8.6 release notes.
Steps to reproduce:
- Generate AmneziaWG 2.0 config from Amnezia client (amnezia-awg2 Docker container on VPS)
- Upload .conf to GL-MT3600BE via VPN → WireGuard Client → upload config
- Web UI shows "Passed" but H1–H4 values are truncated after upload
- Try to edit values in web UI → changes are not saved
- Fix values manually via SSH in
/etc/wireguard/profile/XXXX/peer_XXXX
- Try to connect → "Unable to parse H1" error in logs, no handshake
Environment:
- Router: GL-MT3600BE (Beryl 7)
- Firmware: 4.8.6 release
- Server: amnezia-awg2 Docker container (AWG2 format)
- Config has S3/S4 and H1–H4 as ranges (two integers separated by dash)
Note: Regular WireGuard works perfectly fine on the same router. The issue is specific to AmneziaWG 2.0 range format for H1–H4 parameters.
Thanks!