[GH-ISSUE #3337] Saving AWG protocol settings hangs the client and removes the server container with its keys #3203

Open
opened 2026-10-30 04:57:46 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @AlexeyIonin on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3337

Environment

  • AmneziaVPN 5.0.3.0 (Sep 18 2026, de93650), macOS
  • Self-hosted server: Ubuntu 26.04, Docker, container amnezia-awg2 (AmneziaWG 3.1 parameters), connected via SSH key

Steps to reproduce

  1. Server settings → AmneziaWG protocol settings
  2. Uncheck Random trailers
  3. Save

Expected
The container is reconfigured with the same server keys, or the user is warned that existing client configs will become invalid.

Actual

  • The client froze and had to be force-quit.
  • On the server, amnezia-awg2 and its image were gone; docker ps -a showed only amnezia-xray. /opt/amnezia/amnezia-awg2 contained only build files, no keys.
  • Reinstalling the protocol from the client worked, but generated new server keys and a new HeaderProtectionKey, so every exported client config (including third-party routers) stopped working.

Why this matters
Users may need to toggle Random trailers for compatibility: Keenetic's AWG implementation (KeeneticOS 5.1.5, awg_proxy) imports a config with RandomTrailers = on without errors, but follow-up handshakes fail and the tunnel drops after ~2–3 minutes. With RandomTrailers off it is stable (related: #3058). Losing all client configs while making that change is painful.

Suggestions

  1. Don't leave the server without the container if reconfiguration fails midway; roll back instead.
  2. Preserve server keys across protocol reconfiguration, or warn before regenerating them.
  3. Show progress or an error instead of hanging the UI.
Originally created by @AlexeyIonin on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3337 **Environment** - AmneziaVPN 5.0.3.0 (Sep 18 2026, de93650), macOS - Self-hosted server: Ubuntu 26.04, Docker, container `amnezia-awg2` (AmneziaWG 3.1 parameters), connected via SSH key **Steps to reproduce** 1. Server settings → AmneziaWG protocol settings 2. Uncheck *Random trailers* 3. Save **Expected** The container is reconfigured with the same server keys, or the user is warned that existing client configs will become invalid. **Actual** - The client froze and had to be force-quit. - On the server, `amnezia-awg2` and its image were gone; `docker ps -a` showed only `amnezia-xray`. `/opt/amnezia/amnezia-awg2` contained only build files, no keys. - Reinstalling the protocol from the client worked, but generated new server keys and a new HeaderProtectionKey, so every exported client config (including third-party routers) stopped working. **Why this matters** Users may need to toggle *Random trailers* for compatibility: Keenetic's AWG implementation (KeeneticOS 5.1.5, `awg_proxy`) imports a config with `RandomTrailers = on` without errors, but follow-up handshakes fail and the tunnel drops after ~2–3 minutes. With RandomTrailers off it is stable (related: #3058). Losing all client configs while making that change is painful. **Suggestions** 1. Don't leave the server without the container if reconfiguration fails midway; roll back instead. 2. Preserve server keys across protocol reconfiguration, or warn before regenerating them. 3. Show progress or an error instead of hanging the UI.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#3203
No description provided.