Re: CARP and OUT rules
Chris Buechler <[email protected]>
| Newsgroups | gmane.comp.security.firewalls.m0n0wall |
|---|---|
| Message-ID | <CAOmxWMVf6OeUYumENCv17YJdKVtk2S9SFD8sOyyXFAkJ99gm+Q@mail.gmail.com> |
On Wed, Sep 7, 2011 at 5:41 PM, Tonix (Antonio Nati) <[email protected]> wrote: > > Practically speaking instead of several "pass in" > > pass in on eth0 proto tcp from any to 100.100.100.100 > pass in on eth1 proto tcp from any to 100.100.100.100 > pass in on eth2 proto tcp from any to 100.100.100.100 > pass in on eth3 proto tcp from any to 100.100.100.100 > ............................... > pass in on ethN proto tcp from any to 100.100.100.100 > > it would become simply > > pass out on eth5 proto tcp from any to 100.100.100.100 > > This "pass out" rules eliminatex all N rules needed for every incoming > interface. > > So, I feel handling of a rules table 20 times smaller would help a lot rules > checking performance. > That's correct - to an extent. I haven't specifically tested with ipfilter and am not extremely familiar with its internals, but the more rules you have, the more resources are required to evaluate the ruleset. From my testing on other BSD packet filters, it's not really relevant unless you're talking about a difference between 50000+ rules and a few dozen, it takes an extremely large ruleset to have a measurable difference. Even at that, the biggest impact to performance is the maximum number of new connections per second achievable, the time difference between opening a single connection with 1 rule and 100,000 rules is minuscule in the scheme of things in most all scenarios.