Windows Server uses uses TCP syn cookies to protect itself from syn-flooding attacks.
Is it known, how the operating system (Windows Server 2008 R2 and Windows Server 2012) calculates the syn cookie? If so, how is the calculation done?
Windows Server uses uses TCP syn cookies to protect itself from syn-flooding attacks.
Is it known, how the operating system (Windows Server 2008 R2 and Windows Server 2012) calculates the syn cookie? If so, how is the calculation done?
The formula is given on Wikipedia - http://en.wikipedia.org/wiki/SYN_cookies
time()
logically right-shifted 6 positions, which gives a resolution of 64 seconds)The initial TCP sequence number, i.e. the SYN cookie, is computed as follows:
Only Microsoft know for sure if this is how Windows implements SYN Cookies, because it's closed source, but for interoperability with other OSes it would make sense to follow this formula.
You can see one implementation of SYN Cookies in net/ipv4/syncookies.c in Linux.