Skip to contentSkip to conversation

Performance losings with iptables

DISCUSSION Michael Albrecht 3 participants 3 messages May 13, 2003 – May 20, 2003

lore
Share & tools
lore
#0 lore raw

Hello,
i use iptables with Debian-Linux (2.4.20).
Wenn i install 150 Input-Chains like this:
iptables -A input -s 192.168.81.xxx
i will lose a lot of perfomance (for example: apache take a lot of time, ssh ...) Wenn i show the perfomance with vmstat - vmstat says that 99 % is idel... Wer is the Problem ???

Thanks for helping ... Michael

#1 lore raw

Am Die, 2003-05-13 um 17.40 schrieb Michael Albrecht:

Quoted 7 lines

Hello,
i use iptables with Debian-Linux (2.4.20).
Wenn i install 150 Input-Chains like this:
iptables -A input -s 192.168.81.xxx
i will lose a lot of perfomance (for example: apache take a lot of time, ssh ...) Wenn i show the perfomance with vmstat - vmstat says that 99 % is idel... Wer is the Problem ???

I doubt that iptables itself is responsible for the performance loss. I rather suspect name resolution.
Can you post you rules or at least some timing information?

Cheers,

Ralf

Signature · 7 lines
Ralf Spenneberg
RHCE, RHCX

Book: Intrusion Detection für Linux Server   http://www.spenneberg.com
IPsec-Howto				     http://www.ipsec-howto.org
Honeynet Project Mirror:                    
http://honeynet.spenneberg.org
#2 lore raw

On Tue, May 20, 2003 at 09:50:01AM +0200, Ralf Spenneberg spoke thusly:

Quoted 5 lines

Am Die, 2003-05-13 um 17.40 schrieb Michael Albrecht:

Quoted 4 lines

iptables -A input -s 192.168.81.xxx
i will lose a lot of perfomance (for
example: apache take a lot of time, ssh ...) Wenn i show the perfomance with vmstat - vmstat says that 99 % is

As Michael has already mentioned, I too doubt its an iptables fault. I've had in excess of 1,300 rules running on a production firewall, for dynamic dumping of Nimda infected hosts. Its almost certainly a name resolving issue as Michael has already pointed to.