mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2026-12-03 18:42:09 +07:00
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-go#209
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 @EgolOS on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-go/issues/211
The parameter reference says:
Since #188 (
b5928ef) that is no longer what the implementation does. Indevice/receive.go:so with
DisableCookieson, the MAC2 check and the per-source rate limiter are skipped as well — not only the reply.amneziawg-linux-kernel-modulebehaves the same way:src/receive.c:194computesunder_load = !wg->disable_cookies && ..., andwg_cookie_validate_packet()insrc/cookie.conly reacheswg_ratelimiter_allow()whencheck_cookieis true.This is not a request to revert #188 — the trade-off is deliberate and the review on that PR already quantified it. The request is only that the documentation say so, because a reader today concludes that the pre-handshake gate is preserved.
For context, we ported the driver to OpenBSD and measured what a cookie-less interface exposes itself to:
curve25519()from OpenBSDsys/crypto/curve25519.c, one core of a Ryzen AI Max+ 395, 43 µs per operation → ~23,000 initiations/s (~27 Mbit/s at 148 bytes per packet) to pin a core, in the same order as the 20 Mbit/s/core figure from the #188 discussion.Either of these would close it:
DisableCookiesrow/section in the docs: it disables the whole under-load path (no Cookie Reply, no MAC2 requirement, no per-source rate limiting), and state the computational-DoS exposure.Happy to send the documentation PR for (1) if you prefer that over an issue.