Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to enable syn cookies in a server, but I can't.

root@server [~]# echo '1' > /proc/sys/net/ipv4/tcp_syncookies
root@server [~]# cat /proc/sys/net/ipv4/tcp_syncookies
root@server [~]# 

What is wrong, and how could I enable syn cookies?

share|improve this question
Are there any log messages (dmesg, kern, syslog)? sysctl net.inet.tcp.syncookies does say the same thing? Is /proc really the /proc you expect (this stands for the basic questions like mountpoints set up properly and not just writing to some directory structure that looks like /proc) – Server Horror Jun 12 '11 at 19:11
@ServerHorror /proc is the /proc I expect, sysctl net.ipv4.tcp_syncookies outputs net.ipv4.tcp_syncookies = 0 and dmesg outputs nothing. – Artur Gaspar Jun 12 '11 at 19:40
Is this a physical server or a virtual server? – Janne Pikkarainen Jun 13 '11 at 6:50
@Janne Pikkarainen It is a virtual server. – Artur Gaspar Jun 13 '11 at 22:53
What is the output of lsattr /proc/sys/net/ipv4/tcp_syncookies – QuentinMoss Dec 7 '11 at 21:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.