Linux netfilter/iptables firewall : impacts on performances ?

This is a discussion on Linux netfilter/iptables firewall : impacts on performances ? within the Linux Networking forums, part of the Linux Forums category; I am looking for results of performance studies on the impact of the use of the Linux netfilter/iptables firewall, ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-29-2004
Philippe
 
Posts: n/a
Default Linux netfilter/iptables firewall : impacts on performances ?

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).

Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-29-2004
Bit Twister
 
Posts: n/a
Default Re: Linux netfilter/iptables firewall : impacts on performances ?

On Thu, 29 Apr 2004 10:35:55 +0200, Philippe wrote:
> 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).


Hmmm, seems that would depend on your rules. What are you going to do,
run without the firewall. Why not pick something like
http://www.toast.net/performance/
run a test
clear browser cache
disable firewall
run same test again.
clear browser cache
enable firewall
run same test again.

My guess is network latency will washout the firewall delay.
Reply With Quote
  #3 (permalink)  
Old 04-29-2004
P Gentry
 
Posts: n/a
Default Re: Linux netfilter/iptables firewall : impacts on performances ?

Philippe <philou-666@caramail.com> wrote in message news:<c6qera$2n5$1@s1.read.news.oleane.net>...
> 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).
>
> Thanks.


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
_your_ setup.

hth,
prg
email above disabled
Reply With Quote
  #4 (permalink)  
Old 04-29-2004
Juha Laiho
 
Posts: n/a
Default Re: Linux netfilter/iptables firewall : impacts on performances ?

rdgentry1@cablelynx.com (P Gentry) said:
>Philippe <philou-666@caramail.com> wrote in message
>news:<c6qera$2n5$1@s1.read.news.oleane.net>...
>> 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.).

>
>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.


I recall having a discussion in the news with someone who initially
complained about huge slowdowns with iptables. What solved the problem
was to rearrange the rulesets -- there was rather huge number of rules,
and the most frequently used ones were close to the tail of the rulesets.

Luckily, iptables maintains packet counters to show which rules match
the majority of the traffic -- and it's also possible to branch the
rulesets to reduce the average/maximum ruleset lengths.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0