Re: firewall is very slow, something's wrong

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Florin Andrei
Date: Tuesday, October 9, 2007 - 1:49 pm

Henning Brauer wrote:

Then I will do some tests with 4.2 on gigabit-capable hardware. If 
anything noteworthy comes out, I'll post the results.
Don't expect something too fancy, but I guess anything is better than 
nothing.


Hmmm.

Please correct me if I'm wrong:
Let's say a firewall is connected to a pretty fast Internet pipe (in the 
gigabit range). Let's say there's a DDoS against this environment. In 
theory, the firewall would need lots of RAM so that it can deal with the 
incoming nasty packets, create an entry for each packet in the state 
table (don't know the correct name for it in OpenBSD, sorry), then 
expire it after a while.
In theory, the firewall could be tweaked to expire unused states 
quickly, but still, more RAM is better when dealing with a DDoS.

What's still not clear to me is how much RAM I should provision per 1Gb 
of bandwidth on OpenBSD, assuming there's an incoming 
worst-case-scenario DDoS, that consumes RAM (and other resources) on the 
firewall yet leaves some bandwidth open for legitimate traffic (so the 
firewall must be able to continue to let the good traffic pass through). 
Also assuming some tweaking has been done on the firewall to expire the 
bad stuff quickly without affecting legitimate traffic.

But all that depends on the actual legitimate traffic and on the 
firewall rules.
I guess that's another way of saying "more tests are needed". :-/


Aw, damn. I was hoping that's not quite the case.

Well, then hopefully the dynamic routing daemons won't get too greedy 
and DoS the firewall from within. :-) Or I may have to re-think the 
whole environment and forget the idea of doing any kind of dynamic 
routing on the firewall - from a security perspective, dynamic routing 
on the firewall sucks anyway.

Looks like my performance test matrix just got bigger by a factor of 2x. 
:-/ But the bad combinations should get pruned pretty quickly, I guess.

+-----+-------+-------+
|  \  | i386  | amd64 |
+-----+-------+-------+
| SMP |       |       |
+-----+-------+-------+
| UP  |       |       |
+-----+-------+-------+

-- 
Florin Andrei

http://florin.myip.org/
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
firewall is very slow, something's wrong, Florin Andrei, (Thu Oct 4, 5:48 pm)
Re: firewall is very slow, something's wrong, Stuart Henderson, (Fri Oct 5, 1:31 am)
Re: firewall is very slow, something's wrong, Claudio Jeker, (Sun Oct 7, 12:15 pm)
Re: firewall is very slow, something's wrong, Florin Andrei, (Mon Oct 8, 10:41 am)
Re: firewall is very slow, something's wrong, Florin Andrei, (Mon Oct 8, 10:59 am)
Re: firewall is very slow, something's wrong, knitti, (Mon Oct 8, 1:49 pm)
Re: firewall is very slow, something's wrong, Florin Andrei, (Mon Oct 8, 5:28 pm)
Re: firewall is very slow, something's wrong, Karsten McMinn, (Mon Oct 8, 6:05 pm)
Re: firewall is very slow, something's wrong, Henning Brauer, (Tue Oct 9, 4:32 am)
Re: firewall is very slow, something's wrong, Florin Andrei, (Tue Oct 9, 9:07 am)
Re: firewall is very slow, something's wrong, Florin Andrei, (Tue Oct 9, 9:27 am)
Re: firewall is very slow, something's wrong, Henning Brauer, (Tue Oct 9, 11:03 am)
Re: firewall is very slow, something's wrong, Florin Andrei, (Tue Oct 9, 1:49 pm)
Re: firewall is very slow, something's wrong, Henning Brauer, (Wed Oct 10, 12:35 am)
Re: firewall is very slow, something's wrong, Siju George, (Wed Oct 10, 6:04 am)
Re: firewall is very slow, something's wrong, Henning Brauer, (Wed Oct 10, 6:15 am)
Re: firewall is very slow, something's wrong, Peter N. M. Hansteen, (Wed Oct 10, 6:35 am)
Re: firewall is very slow, something's wrong, Scott Wells, (Wed Oct 10, 7:01 am)
Re: firewall is very slow, something's wrong, Robert C Wittig, (Wed Oct 10, 7:24 am)
Re: firewall is very slow, something's wrong, Paul de Weerd, (Wed Oct 10, 7:41 am)
Re: firewall is very slow, something's wrong, Jon Radel, (Wed Oct 10, 7:47 am)
Re: firewall is very slow, something's wrong, Tony Abernethy, (Wed Oct 10, 7:59 am)
Re: firewall is very slow, something's wrong, Siju George, (Wed Oct 10, 8:23 am)
Re: firewall is very slow, something's wrong, Tony Abernethy, (Wed Oct 10, 9:20 am)
Re: firewall is very slow, something's wrong, Stuart Henderson, (Wed Oct 10, 10:04 am)
Re: firewall is very slow, something's wrong, Robert C Wittig, (Wed Oct 10, 10:34 am)
Re: firewall is very slow, something's wrong, Ted Unangst, (Wed Oct 10, 11:54 am)
Re: firewall is very slow, something's wrong, Paul de Weerd, (Wed Oct 10, 12:01 pm)
Re: firewall is very slow, something's wrong, Henning Brauer, (Wed Oct 10, 1:20 pm)
Re: [side thread] security implcations of multiple kernel ..., Douglas A. Tutty, (Wed Oct 10, 3:25 pm)
SOLVED [was: firewall is very slow, something's wrong], Florin Andrei, (Tue Oct 16, 2:57 pm)
Re: SOLVED [was: firewall is very slow, something's wrong], Stuart Henderson, (Tue Oct 16, 3:44 pm)
Re: SOLVED [was: firewall is very slow, something's wrong], Henning Brauer, (Wed Oct 17, 1:38 am)