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
F142986701: D39570.id121688.diff
Sun, Jan 25, 2:42 AM
F142932958: D39570.id120299.diff
Sat, Jan 24, 7:15 PM
Unknown Object (File)
Wed, Jan 21, 9:23 AM
Unknown Object (File)
Dec 22 2025, 11:34 PM
Unknown Object (File)
Dec 20 2025, 5:29 PM
Unknown Object (File)
Nov 23 2025, 9:56 PM
Unknown Object (File)
Nov 23 2025, 9:56 PM
Unknown Object (File)
Nov 23 2025, 9:55 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 50907
Build 47798: arc lint + arc unit

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.