All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dennis Jacobfeuerborn <dennisml@conversis.de>
To: neal.p.murphy@alum.wpi.edu, netfilter@vger.kernel.org
Subject: Re: Recommended hardware for iptables based firewall/router
Date: Sun, 09 Nov 2014 01:40:36 +0100	[thread overview]
Message-ID: <545EB804.3080903@conversis.de> (raw)
In-Reply-To: <201411021738.56897.neal.p.murphy@alum.wpi.edu>

On 02.11.2014 23:38, Neal Murphy wrote:
> On Saturday, November 01, 2014 11:51:28 PM Dennis Jacobfeuerborn wrote:
>> Hi,
>> we recently bought an Uqbiquity EdgeRouter Pro but it seems the claims
>> about 2 Mio. pps that it should be able to handle are not real-world
>> numbers. We are running about 120mbit through this system and are
>> already seeing the two risc cores struggling with high softirq load and
>> packet drops.
>>
>> So my question is what a good hardware base would look like for a linux
>> based firewall using iptables/conntrack/ipset. Do offload features help
>> or can't these be used because iptables needs to process the packets
>> anyway? I assume multiqueuing would be nice too.
>> The idea is to be able to actually process 1gbit of traffic i.e. handle
>> two gbit ports (WAN and LAN) at wire-speed.
>>
>> Does anyone have any specific recommendations for NICs and maybe tips
>> for other bottlenecks to look out for?
> 
> I've been using a Lanner 7530 for some time now (the 7525 is the current 
> 'replacement' for it); it runs the recently released Smoothwall 3.1 firewall*. 
> Basically, a dual-core 1.6GHz Atom CPU with Intel NICs and 64MiB RAM can 
> saturate four gigE links long term using 17-25W.
> 
> If you want more than netfilter (such as squid, snort, clamav, et al.), you'll 
> want 1-2 GiB RAM and faster CPUs. And maybe more CPUs. If you want VPNs IPSEC 
> and/or OpenVPN), you'll need at least faster CPUs.
> 
> Offload features usually preclude proper operation of netfilter.
> 
> GigE PCI NICs usually top out at 250-350Mb/s (limited by the PCI bus).
> 
> Intel NICs are generally the best. (I believe their lineage goes back to DEC, 
> which might explain it.) RealTek's offerings of the last five years or so are 
> also pretty good.

After seeing the EdgeRouter not being able to handle the promised
capacity even remotely I'm a bit suspicious of these "embedded"
solutions. These processors only seem to be able to handle a decent
amount of traffic in a pure routing best case scenario. I get the
impression that as soon as you do add a bit of firewalling they need to
fall back to slow execution paths and then the cpu's are seriously
underpowered.

But then it might just be the EdgeRouter that is especially terrible. We
immediately ran into problems when I found out that they had *reduced*
the size of the connection tracking table to 16k entries from the
default 64k. I cannot imagine why anyone would do this for a system that
is designed to be a firewall.

Regards,
  Dennis



  reply	other threads:[~2014-11-09  0:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-02  3:51 Recommended hardware for iptables based firewall/router Dennis Jacobfeuerborn
2014-11-02 22:38 ` Neal Murphy
2014-11-09  0:40   ` Dennis Jacobfeuerborn [this message]
     [not found]     ` <CAJygYd07-y0bDSr8THXWjNEW-e1rK5ZhGiE8aeJ_jXYJpFiL2A@mail.gmail.com>
2014-11-09  0:49       ` Yucong Sun
2014-11-09  1:11         ` Dennis Jacobfeuerborn
  -- strict thread matches above, loose matches on Subject: below --
2014-11-09  5:15 Stig Thormodsrud
2014-11-09 14:05 ` Dennis Jacobfeuerborn
2014-11-09 14:52   ` Dennis Jacobfeuerborn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545EB804.3080903@conversis.de \
    --to=dennisml@conversis.de \
    --cc=neal.p.murphy@alum.wpi.edu \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.