Page MenuHomeFreeBSD

if_ovpn: notify userspace when we've used half of the sequence numbers
ClosedPublic

Authored by kp on Apr 14 2023, 9:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
May 3 2024, 9:58 AM
Unknown Object (File)
May 3 2024, 7:05 AM
Unknown Object (File)
Mar 25 2024, 9:41 PM
Unknown Object (File)
Dec 20 2023, 7:18 AM
Unknown Object (File)
Dec 12 2023, 8:21 AM
Unknown Object (File)
Nov 17 2023, 11:26 PM
Unknown Object (File)
Nov 17 2023, 9:18 PM
Unknown Object (File)
Nov 17 2023, 9:13 PM

Details

Summary

OpenVPN uses the sequence number (as well as a userspace supplied nonce)
to build the IV. This means we should avoid re-using sequence numbers.
However, userspace doesn't know how many packets we've sent (and thus
what sequence number we're up to).

Notify userspace when we've used half of the available sequence numbers
to tell it that it's time for a key renegotiaton.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Apr 14 2023, 9:41 AM

This is a first draft for discussion with the OpenVPN project.

This revision was not accepted when it landed; it landed in state Needs Review.May 8 2023, 4:14 PM
This revision was automatically updated to reflect the committed changes.