URN Logo
UNIX Resources » Linux » Linux Forum » Linux Security » Page.1 » Questions on syn_cookies
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Questions on syn_cookies
Subject: Questions on syn_cookies
Author: Carlos Moreno    Posted: 2006-01-29 11:18:48    Length: 1,229 byte(s)
[Original] [Print] [Top]
I read Wikipedia's definition of SYN Cookies, and also read
Stevens' "TCP/IP Illustrated" vol 1, pages 231-232, describing
the connection establishment protocol (the "three-way handshake"),
and I'm kind of drawing a blank.

It seems from Stevens' description that the sequence numbers
for each end are completely independent, and that the idea is
that the other end follows the received SN.

 From the description of syn_cookies, it would seem like the
server has some secret information that a client has to know
to be accepted.

Can someone shed some light on this?


A second question -- on a Linux machine, I know I just have to
put a 1 in the file /proc/sys/net/ipv4/tcp_syncookies to enable
the feature.  My question is:  is it simply a matter of enabling
that feature, and it will be completely, 100% transparent to all
clients in all possible conditions?  Or will the server suffer
some strange side-effects and there would be some additional
steps to take so that things can work?  (I'm talking about a
web server)

Thanks,

Carlos
--

[Original] [Print] [Top]
Subject: Questions on syn_cookies
Author: Watson Ladd    Posted: 2006-01-29 18:19:29    Length: 554 byte(s)
[Original] [Print] [Top]
First some bg.
In TCP the client sends an "SYN" to the server. Without syn cookies the
client's ip and port are placed in a database.  This leads to a DDOS
were hundreads of half-open connections are formed.  With syn cookies
no such DB is needed.  Instead the SYN-ACK response contains a sequence
number that will allow an ACK to establish a connection if the ACK has
the number. This method is less common, but is supported by TCP, and so
is transparant. Nothing else needs to be set up.

[Original] [Print] [Top]
« Previous thread
can't ls in vsftpd (chroot)
Linux Security
Page. 1
Next thread »
v]0 ***Hot stuff - check this out !!! v]0
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 13:09:53, cost 0.021054029464722 ms.