Skip to contentSkip to conversation

linux/iptables + smp question

DISCUSSION Juan Pablo Abuyeres 2 participants 2 messages Apr 28, 2006

lore
Share & tools
lore
#0 lore raw

Hi guys,

I've been using an old single processor / linux 2.4 iptables based firewall for a few years.

Now it's time to upgrade that machine, so, I am wondering, would it be of real benefit if I put a two-processor system for a firewall? This machine is going to have 4 NICs, it's going to make routing (lots of routes), and firewall (iptables). I don't know if these kind of tasks take advantage from a multiple-processor architecture. Please enlighten me :)

Thank you!

#1 lore raw
Quoted 1 line · Juan Pablo Abuyeres

Hi guys,

Hi, please follow up to the netfilter mailinglist, since this is not a kernel [development] question.

Quoted 6 lines

I've been using an old single processor / linux 2.4 iptables based firewall for a few years.

Now it's time to upgrade that machine, so, I am wondering, would it be of real benefit if I put a two-processor system for a firewall? This machine is going to have 4 NICs, it's going to make routing (lots of routes), and firewall (iptables). I don't know if these kind of tasks take advantage from a multiple-processor architecture. Please enlighten me :)

some notes:

1) 2.6. network stack scales better on smp
2) iptables and routing both scale very good on smp systems, if you use multiple interfaces and distribute the interrupts over multiple cpus
3) connection tracking inherently scales less good on SMP systems

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie