]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Extend the SYN DoS defense by adding syncookies to the syncache.
authorJonathan Lemon <jlemon@FreeBSD.org>
Wed, 19 Dec 2001 06:12:14 +0000 (06:12 +0000)
committerJonathan Lemon <jlemon@FreeBSD.org>
Wed, 19 Dec 2001 06:12:14 +0000 (06:12 +0000)
commita9c96841638186f2e8d10962b80e8e9f683d0cbc
tree82f5b8a9871ae2ee7e7df54ece25f5e98fa40922
parentc07dd20b433eda26230c95b5b125dd36365a11aa
Extend the SYN DoS defense by adding syncookies to the syncache.
All TCP ISNs that are sent out are valid cookies, which allows entries
in the syncache to be dropped and still have the ACK accepted later.
As all entries pass through the syncache, there is no sudden switchover
from cache -> cookies when the cache is full; instead, syncache entries
simply have a reduced lifetime.  More details may be found in the
"Resisting DoS attacks with a SYN cache" paper in the Usenix BSDCon 2002
conference proceedings.

Sponsored by: DARPA, NAI Labs
sys/netinet/tcp_syncache.c