Skip to content

Use ip+port for calculating cookie#490

Open
JeroenRobben wants to merge 1 commit into
cloudflare:masterfrom
JeroenRobben:cookie-ip-port
Open

Use ip+port for calculating cookie#490
JeroenRobben wants to merge 1 commit into
cloudflare:masterfrom
JeroenRobben:cookie-ip-port

Conversation

@JeroenRobben

Copy link
Copy Markdown
Contributor

BoringTun currently uses only the remote peer's IP address when computing the cookie for cookie reply messages, not IP+port. The WireGuard whitepaper is a bit unclear on this: section 5.4.7 explicitly defines the cookie as a MAC over "a concatenation of the external IP source address and UDP source port", while the informal description in section 5.3 mentions only the source IP. Upstream implementations include the port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant