Re: how to check current backlog queue size(against synflood)

From: Seth Arnold (sarnold_at_wirex.com)
Date: 05/12/03

  • Next message: Sebastian Muniz: "Re: IPChains Question (compatibility mode on kernel 2.4.x)"
    Date: Mon, 12 May 2003 14:02:31 -0700
    To: focus-linux@securityfocus.com
    
    
    

    On Mon, May 12, 2003 at 01:58:39AM +0000, SB CH wrote:
    > echo 512 > /proc/sys/net/ipv4/tcp_max_syn_backlog
    > How can I check current backlog queue size? any command or program?

    $ cat /proc/sys/net/ipv4/tcp_max_syn_backlog
    1024

    > What is the theory of the syncookies?

    Dan Bernstein's website is perhaps a good starting point:
    http://cr.yp.to/syncookies.html

    In short: make the sequence numbers 'cryptographically strong' to prevent
    spoofed syn+acks .. this way, the receiving end does not need to store
    state in state tables for simple syns -- when it receives a syn+ack,
    it can re-compute the math, and find that the "cookie" sequence number
    is legitimate. Of course, since sequence numbers are 32 bits long, there
    isn't much cryptographical security here, but TCP is rarely given that
    level of importance. (And IPSec/VPNs exist to help give TCP that level
    of reliability, and SSL/SSH exist to give individual sessions that level
    of reliability.)

    I hope this helps

    -- 
    http://immunix.org/
    
    



  • Next message: Sebastian Muniz: "Re: IPChains Question (compatibility mode on kernel 2.4.x)"

    Relevant Pages

    • Re: ISP Redundancy Configuration
      ... What I posted is directly from RFC793 describing how the TCP connection is ... Ack sequence numbers do not and should not increment ...
      (comp.security.firewalls)
    • Re: [fw-wiz] Firewalls that generate new packets..
      ... You're assuming a blind attack, ... are stymied by hard-to-predict sequence numbers and the attacker ... TCP handshake stage. ... "Prearranged formula decided on during the TCP handshake?" ...
      (Firewall-Wizards)
    • Re: ISP Redundancy Configuration
      ... So I can establish the connection and when I try from the ... Ack sequence numbers do not and should not increment ... after that the end points will be send an ack packet with data, ... In line 2 of figure 7, TCP A begins by sending a SYN segment ...
      (comp.security.firewalls)
    • RE: [Full-Disclosure] Core Internet Vulnerable - News at 11:00
      ... > attack on TCP BGP sessions? ... Sequence number prediction isn't really ... PSEPC AV04-019 SPPCC - TCP ... The fact that TCP sessions can be reset by sending suitable RST and SYN ...
      (Full-Disclosure)
    • [EXPL] TCP Reset Spoofing Generic Exploit
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The TCP stack implementation of numerous vendors contains a flaw that may ... RFC-793 utilizes sequence checking to ensure proper ordering of received ...
      (Securiteam)