mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2026-10-14 05:41:59 +00:00
[GH-ISSUE #51] Stopped connecting with version v1.0.20260618 #21
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-tools#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eternal-sorrow on GitHub (Jun 18, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-tools/issues/51
Originally assigned to: @ygurov on GitHub.
After updating amneziawg-tools and restarting the awg-quick service it fails to establish the connection. I noticed that
H1andH2values are missing in theawgoutput.@ygurov commented on GitHub (Jun 18, 2026):
Hi @eternal-sorrow
What backend do you use? awg-go or awg-kmod?
@eternal-sorrow commented on GitHub (Jun 18, 2026):
Does amneziawg-tools work with both? Anyway, I use kmod.
@ygurov commented on GitHub (Jun 18, 2026):
I apologize for the mistake I have made yesterday during a small rework - both h1/h2 was handled improperly leading to a lack of value sent to the targeting interface
Pushed a fix and introduced v1.0.20260618-2
@eternal-sorrow commented on GitHub (Jun 18, 2026):
Everyone makes mistakes. Still, you do amazing stuff.
@RuxaXa commented on GitHub (Aug 17, 2026):
Independent confirmation of the same root cause and fix on the userspace backend:
Environment
amneziawg-go v0.2.19amneziawg-tools v1.0.20260618(commit4cdc357c68b39a0d1e19417b7f03d604c1e1b4cf)2.0.2Observed behavior
The Windows client emitted the expected junk packets and padded AWG handshake initiations, and those datagrams reached the server listener. The server sent no response. The peer's latest-handshake and transfer counters did not change.
The config file contained non-default H1/H2 ranges, but the live interface showed H1=
1and H2=2. H3/H4 loaded correctly. Public keys and PSK matched.Reproducer
amneziawg-gointerface.awg setconf(the same path used byawg-quick).awg show <interface> h1|h2|h3|h4with the config.With
v1.0.20260618, this unchanged regression test fails at H1/H2.Root cause and verification
In
src/config.c, successfulstrdup(value)calls for H1/H2 are checked with== NULL, so their presence flags are not set. H3/H4 use!= NULL.Changing only the H1/H2 checks to
!= NULLmakes the unchanged regression test pass for all H1-H4 values. After rebuilding and reloading the interface:This independently confirms the maintainer fix released as
v1.0.20260618-2. One subtle diagnostic trap is that two Linux endpoints using the same broken tools can still interoperate because both silently fall back to H1/H2 defaults, while the Windows client correctly applies the configured ranges and therefore cannot handshake.