Skip to contentSkip to conversation

scripts for adding rulesets for performance testing?

DISCUSSION Kristen Carlson 4 participants 4 messages Oct 9, 2003 – Nov 4, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

Hi there. I'm doing some performance testing of iptables with increasing rulesets and am wondering if anybody already has some scripts for adding rules (many many rules) that they would like to share? I noticed in the archives that the nf-hipac folks had posted a link to a script they had used for their performance testing which seemed to do exactly what I wanted, but the link is busted.
Thanks,
Kristen

Signature · 1 line
WWXD (What Would Xena Do?) 
#1 lore raw
Quoted 6 lines · Kristen Carlson

Hi there. I'm doing some performance testing of iptables with increasing rulesets and am wondering if anybody already has some scripts for adding rules (many many rules) that they would like to share? I noticed in the archives that the nf-hipac folks had posted a link to a script they had used for their performance testing which seemed to do exactly what I wanted, but the link is busted.

If your problem is "how to load a very high number of rules in a limited time", then I strongly suggest that you use iptables-restore, which will load them instantly at once. I have a ppro200 somewhere which takes less than a second to load 4000 nat rules with it, while loading iptables for each of them took ages (>15mn).

If your problem is "how to generate a lot of non-matching rules", then a simple for() loop in shell, possibly including randoms will do the trick.

Hoping this helps
Willy

#2 lore raw
In reply to Kristen Carlson
Quoted 6 lines · Kristen Carlson

Hi there. I'm doing some performance testing of iptables with increasing rulesets and am wondering if anybody already has some scripts for adding rules (many many rules) that they would like to share? I noticed in the archives that the nf-hipac folks had posted a link to a script they had used for their performance testing which seemed to do exactly what I wanted, but the link is busted.

please contact them at the email address given on their homepage. I am sure they are very willing to fix that broken link.

Quoted 2 lines

Thanks,
Kristen

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.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
#3 lore raw
In reply to Kristen Carlson

Hi,

Quoted 5 lines

Hi there. I'm doing some performance testing of iptables with increasing rulesets and am wondering if anybody already has some scripts for adding
rules (many many rules) that they would like to share? I noticed in the archives that the nf-hipac folks had posted a link to a script they had used
for their performance testing which seemed to do exactly what I wanted, but the link is busted.

Ok, it's up again, DNS hasn't been propagated yet. The link to the script, in case you still need it, is:

http://69.55.226.176/~ratz/genrules.sh

I hope to continue my test conducts with the recent development all in netfilter, nf-hipac, tc action and OpenBSD pf.

Best regards,
Roberto Nibali, ratz

Signature · 1 line
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc