SYN Flooding Attack

376 views Asked by At

I am trying to stop SYN Flooding Attack

but when I set net.ipv4.tcp_syncookies = 1

in sysctl.conf

I get this error

/proc/sys/net/ipv4/tcp_syncookies: No such file or directory

1

There are 1 answers

2
jnovack On

Unfortunately, there's no good news.

Your kernel was not compiled with the option CONFIG_SYN_COOKIES, because the default value of tcp_syncookies is 1.

You can TRY to use sysctl directly.

sysctl -w net.ipv4.tcp_syncookies=1

If that fails, there is a larger issue. Your kernel needs to be recompiled (good luck) or your operating system choice needs to be adjusted, whichever you are more comfortable with.