Re: Linux netfilter/iptables firewall : impacts on performances ?
From: P Gentry (rdgentry1_at_cablelynx.com)
Date: 29 Apr 2004 08:18:26 -0700
Philippe <firstname.lastname@example.org> wrote in message news:<email@example.com>...
> I am looking for results of performance studies on the impact of the use
> of the Linux netfilter/iptables firewall, typicaly a comparison of
> bandwidth and delay time with and without the firewall for several types
> of traffic (HTTP, FTP, UDP, etc.).
> For the moment, I only need a local firewall on a Linux box (Mandrake
> 9.2) with only one network interface (FastEthernet).
Suspect you won't find any "types of traffic" studies that would be
meaningful for _your_ setup -- fact is, that's one of the reasons you
won't find many (any?) useful benchmarks re: iptables. There are just
_too_many_ variables. Connection rate, MASQing, number of nics,
traffic patterns, which additional modules are running and how, etc.
The other reason you may have difficulty finding any good studies is
that such things are usually only meaningful in comparison to -- what?
Not using _any_ firewall -- not!
A dedicated box, like a Cisco, will always show better _numbers_
because of its additional processors and trimmed down OS
functionality. But, afaik, all packet/acl filtering takes place in OS
space, not asics attached to ports. And you must distinguish
throughput numbers from latency issues with and without a firewall.
You can try some variations on the following string at Google:
netfilter iptables latency benchmark
Sorry I didn't find any ready made benchmark results at first glance
of ~ 50.
Iptables with a reasonable rule chain and no dynamic editing
(insertions, eg.) of the rules will perform quite well -- that's why
you find Linux/netfilter in commercial firewall boxes.
With luck, maybe you can find some diy tools that will suffice to test
email above disabled