Page MenuHomeFreeBSD

pf: syncookie support
ClosedPublic

Authored by kp on Jul 11 2021, 8:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 12, 8:20 PM
Unknown Object (File)
Tue, Jun 30, 6:27 PM
Unknown Object (File)
Sun, Jun 28, 12:42 PM
Unknown Object (File)
Fri, Jun 26, 1:54 AM
Unknown Object (File)
Tue, Jun 23, 4:19 AM
Unknown Object (File)
Sun, Jun 21, 7:04 PM
Unknown Object (File)
May 26 2026, 6:58 PM
Unknown Object (File)
May 18 2026, 1:17 AM

Details

Summary

Import OpenBSD's syncookie support for pf. This feature help pf resist
TCP SYN floods by only creating states once the remote host completes
the TCP handshake rather than when the initial SYN packet is received.

This is accomplished by using the initial sequence numbers to encode a
cookie (hence the name) in the SYN+ACK response and verifying this on
receipt of the client ACK.

Obtained from: OpenBSD
MFC after: 1 week
Sponsored by: Modirum MDPay

Diff Detail

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