irule for ddos tcp syn

where can I find an irule to mitigate a ddos TCP SYN attack

just wondering why syn cookie is not usable.

sol14779: Overview of BIG-IP SYN cookie protection (11.3.x - 11.6.x)