PDA

View Full Version : [ubuntu] Enabling SYN cookies


bugmenot2006
May 19th, 2009, 06:39 AM
Hello,

I am trying to enable SYN cookies in ubuntu but to no avail.
I have uncommented net.ipv4.tcp_syncookies=1 in /etc/sysctl.conf and restarted the PC, but syn cookies doesn't seem to be enabled.

I check this by sending a TCP SYN request to the PC and looked at the reply. The SEQ number is always 0, it should be some random numbers.

Please Help

Thanks

kryptoz
May 21st, 2009, 07:23 AM
You can enable it run time without rebooting the server and check. Try `echo "1" > /proc/sys/net/ipv4/tcp_syncookies`