From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b6df4dac54d8bd64 X-Google-Attributes: gidfee84,public From: mogul@actitis.pa.dec.com (Jeffrey Mogul) Subject: Re: DU 4.0 and Ultrix under SYN flooding attacks ? Date: 1996/09/24 Message-ID: <527aae$les@usenet.pa.dec.com>#1/1 X-Deja-AN: 184925789 references: <520436$ird@fstgal00.tu-graz.ac.at> organization: DEC Western Research newsgroups: comp.unix.osf.osf1 In article <520436$ird@fstgal00.tu-graz.ac.at>, tom@finwds01.tu-graz.ac.at (Thomas Leitner) writes: |> Given the recently posted CERT advisory on SYN flooding attacks from the |> Internet (ftp://info.cert.org/pub/cert_advisories/CA-96.21.tcp_syn_flooding) |> I'd be interested to know how DU 4.0, and Ultrix 4.4, 4.5 would react to such |> an attack? Would they crash, slow down considerably or just continue |> normal operation without accepting and new incoming connections? ***This is just my opinion, and does not represent Digital's official ***response to the CERT advisory! It's been so long since I've looked at Ultrix that I do not feel confident answering such questions about that system. Probably (no promises) Digital UNIX will simply fail to accept new connections. Of course, if the packet arrival rate is very high, the system may slow down significantly. Digital UNIX V4.0 (and V3.2G) uses a hash table for TCP PCB lookups, and so is less likely to slow down "considerably." |> Is there some kernel parameter for the max. # of SYN_RECEIVED (or whatever |> they are called) states which are left by such attacks? We've looked fairly closely at Digital UNIX, and the answer is that you can easily configure V4.0 to be resistant to SYN-flooding attacks. (Note that I said "resistant", not "invulnerable".) The relevant parameter is "somaxconn" in the "socket" subsystem. In Digital UNIX V4.0, this defaults to 1024 (instead of to 8, the original BSD default), but for best resistance to SYN-flooding, you should set this to 32767. DO NOT set it to a value above 32767, or you'll get undefined results. You should probably also set "sominconn" to the same value. This causes the kernel to ignore whatever value the application uses in its listen() system call, which is useful if you don't have sources for the application. This applies to V3.2G, as well. In older versions of Digital UNIX, the "somaxconn" value can be set using dbx, but not with sysconfig. Also, the "sominconn" value does not exist in older versions, although if you install the latest patches to V3.2C,D,E,F then it is available via dbx (but not via sysconfig). (And if you install these patches, you'll also get the PCB hash table feature.) -Jeff