* DU 4.0 and Ultrix under SYN flooding attacks ?
@ 1996-09-21 4:00 Thomas Leitner
1996-09-24 4:00 ` Jeffrey Mogul
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Leitner @ 1996-09-21 4:00 UTC (permalink / raw)
Hi,
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?
Is there some kernel parameter for the max. # of SYN_RECEIVED (or whatever
they are called) states which are left by such attacks?
Thanks -- Tom
--
--------------------------------------------------------------------------
T o m L e i t n e r Dept. of Communications
Graz University of Technology,
e-mail : tom@finwds01.tu-graz.ac.at Inffeldgasse 12
Phone : +43-316-873-7455 A-8010 Graz / Austria / Europe
Fax : +43-316-463-697
Home page : http://wiis.tu-graz.ac.at/people/tom.html
PGP public key on : ftp://wiis.tu-graz.ac.at/pgp-keys/tom.asc or send
mail with subject "get Thomas Leitner" to pgp-public-keys@keys.pgp.net
--------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DU 4.0 and Ultrix under SYN flooding attacks ?
1996-09-21 4:00 DU 4.0 and Ultrix under SYN flooding attacks ? Thomas Leitner
@ 1996-09-24 4:00 ` Jeffrey Mogul
1996-09-28 4:00 ` Eric A. Bishop
0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey Mogul @ 1996-09-24 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DU 4.0 and Ultrix under SYN flooding attacks ?
1996-09-24 4:00 ` Jeffrey Mogul
@ 1996-09-28 4:00 ` Eric A. Bishop
1996-10-08 4:00 ` Jeffrey Mogul
0 siblings, 1 reply; 4+ messages in thread
From: Eric A. Bishop @ 1996-09-28 4:00 UTC (permalink / raw)
Jeffrey Mogul (mogul@actitis.pa.dec.com) wrote:
: 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.
I am running 3.2C and would like to modify the somaxconn value.
Is the correct procedure for changing this using dbx on the kernel
and using "patch somaxconn=32767" ? Also, is changing SOMAXCONN in
/usr/sys/include/sys/socket.h to reflect this value the only other
change that needs to be made?
--
Eric Bishop
ebishop@csugrad.cs.vt.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DU 4.0 and Ultrix under SYN flooding attacks ?
1996-09-28 4:00 ` Eric A. Bishop
@ 1996-10-08 4:00 ` Jeffrey Mogul
0 siblings, 0 replies; 4+ messages in thread
From: Jeffrey Mogul @ 1996-10-08 4:00 UTC (permalink / raw)
In article <52k1ea$jl8@csugrad.cs.vt.edu>, ebishop@csugrad.cs.vt.edu (Eric A. Bishop) writes:
|> : 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.
|>
|> I am running 3.2C and would like to modify the somaxconn value.
|> Is the correct procedure for changing this using dbx on the kernel
|> and using "patch somaxconn=32767" ? Also, is changing SOMAXCONN in
|> /usr/sys/include/sys/socket.h to reflect this value the only other
|> change that needs to be made?
First of all, do NOT change any constants in system header files.
It won't do you any good. Period.
Second, here's one way to change somaxconn using dbx:
# dbx -k /vmunix /dev/mem
dbx version 3.11.6
Type 'help' for help.
stopped at [thread_block:1642 ,0x00397470] Source not available
warning: Files compiled -g3: parameter values probably wrong
(dbx)
(dbx) patch somaxconn = 32767
1024
(dbx) quit
#
If you do it like this, you'll need to reboot before it takes effect.
I think if you *also* use the "assign somaxconn = 32767" command,
you can get by without a reboot, but you will still have to kill
and restart your Web server(s) because this parameter is not consulted
except when the server's initial socket is created.
-Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-10-08 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-21 4:00 DU 4.0 and Ultrix under SYN flooding attacks ? Thomas Leitner
1996-09-24 4:00 ` Jeffrey Mogul
1996-09-28 4:00 ` Eric A. Bishop
1996-10-08 4:00 ` Jeffrey Mogul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox