Re: sloppy states and dsr

Previous thread: Proveri koliko bodova imas do sad by TopShop on Friday, June 20, 2008 - 1:57 pm. (1 message)

Next thread: Monitor Open Files by Morris, Roy on Friday, June 20, 2008 - 2:52 pm. (3 messages)
To: <misc@...>
Date: Friday, June 20, 2008 - 2:47 pm

One would only use sloppy state tracking on the load balancer, right?
The firewall in front of everything still uses normal tracking?

To: <misc@...>
Date: Monday, June 30, 2008 - 8:33 pm

not necessarily only, but that would be the most common use I bet.
In general, you use it when you cannot avoid it, as in, the other
option is to not filter stateful at all since you don't see all of the

absolutely!

--
Henning Brauer, hb@bsws.de, henning@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam

To: Henning Brauer <lists-openbsd@...>
Cc: <misc@...>
Date: Tuesday, July 1, 2008 - 2:35 am

sloppy state handling use, follow these two rules:

rule one:

if you exactly understand how to use sloppy state safely, use it

NO: otherwise, don't even dream of using it, unless you come from
an linux ipfilter world, in which case, it is probably as good
as that

it is that simple. really.

the second basic rule is:

if the regular 'strict' state handling does not work for you in
specific situations, you probably already already know the
problem in enough detail and can use sloppy, for very specific
situations which you understand in excruciating detail. if you
don't understand those situations exactly go back to NO.

To: Ted Unangst <ted.unangst@...>
Cc: <misc@...>
Date: Friday, June 20, 2008 - 8:24 pm

On Fri, Jun 20, 2008 at 02:47:18PM -0400, Ted Unangst wrote:
| One would only use sloppy state tracking on the load balancer, right?
| The firewall in front of everything still uses normal tracking?

This is why the router should also be running pf/OpenBSD ;)

Cheers,

Paul 'WEiRD' de Weerd

+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/

To: Ted Unangst <ted.unangst@...>
Cc: <misc@...>
Date: Friday, June 20, 2008 - 2:58 pm

Yes, you use sloppy state only on the host(s) seeing half of the trafic.

To: Pierre-Yves Ritschard <pyr@...>
Cc: Ted Unangst <ted.unangst@...>, <misc@...>
Date: Friday, June 20, 2008 - 3:49 pm

So to say it even more plainly... anywhere you are forced to deal with
asymetric routing you can use sloppy state in place of not having any
stateful option. Would that be a fair statement?

--
Darrin Chandler | Phoenix BSD User Group | MetaBUG
dwchandler@stilyagin.com | http://phxbug.org/ | http://metabug.org/
http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation

To: Darrin Chandler <dwchandler@...>
Cc: Ted Unangst <ted.unangst@...>, <misc@...>, Pierre-Yves Ritschard <pyr@...>
Date: Friday, June 20, 2008 - 8:12 pm

It's a fair statement if by 'forced' you mean, 'compelled beyond your
control, with no other options, having fully understood the consequences
and informed all relevant parties of the risks involved'. This
"feature" is NOT a substitute for good network design.

sloppy state performs basically NO security checks on the TCP stream;
more importantly the TCP state tracking is extremely loose and it's
trivial for an attacker to spoof creation of "fully-established" TCP
connections, which will not time out for an extremely long time, filling
your state table and blocking legitimate traffic. It's dangerous.

To: Ryan McBride <mcbride@...>
Cc: Ted Unangst <ted.unangst@...>, <misc@...>, Pierre-Yves Ritschard <pyr@...>
Date: Friday, June 20, 2008 - 8:58 pm

Yes, that is what I meant. Thanks for saying it so much better. :)

--
Darrin Chandler | Phoenix BSD User Group | MetaBUG
dwchandler@stilyagin.com | http://phxbug.org/ | http://metabug.org/
http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation

Previous thread: Proveri koliko bodova imas do sad by TopShop on Friday, June 20, 2008 - 1:57 pm. (1 message)

Next thread: Monitor Open Files by Morris, Roy on Friday, June 20, 2008 - 2:52 pm. (3 messages)