Maximum Number of Chains
Greetings, I hope everyone is well.
Though I suspect the subject line adequately conveys my question, I will restate it: Does anyone out there know the maximum number of chains per table?
Many thanks,
Paul
Signature · 6 lines
------------------------------ Paul James Caritj President Freespace Networks, Inc. [email protected]
Am Sam, 2003-08-30 um 06.16 schrieb Paul Caritj:
Quoted 4 lines
Greetings, I hope everyone is well.
Though I suspect the subject line adequately conveys my question, I will restate it: Does anyone out there know the maximum number of chains per table?
Well, I just created 1000 and it still worked. for i in seq 1 1000; do iptables -N chain$i; done
How many do you need?
Cheers,
Ralf
Signature · 6 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
On Sat, Aug 30, 2003 at 12:16:13AM -0400, Paul Caritj spoke thusly:
Quoted 4 lines
Greetings, I hope everyone is well.
Though I suspect the subject line adequately conveys my question, I will restate it: Does anyone out there know the maximum number of chains per table?
No idea what is the maximum. But the more rules you add, the slower the additions become (I think Harald mentioned this previously).
Also, if you have a long list of rules (eg: 700 different rules within the FORWARD chain) -- and you decide to remove rule #467. All the rules need to be copied to a temporary area, rule #467 removed, everything from the temporary buffer copied back. That adds to the slowness.
I think the devel guys are working on tweaking the table type used in the 2.5/2.6 kernels. They should be able to shed more information, or you can dig through the archives.