Linux Netfilter discussions
 help / color / mirror / Atom feed
* Whats faster? multiple rules vs. multiport match
@ 2007-02-15 21:37 Maximilian Wilhelm
  2007-02-17 13:55 ` Jan Engelhardt
  0 siblings, 1 reply; 4+ messages in thread
From: Maximilian Wilhelm @ 2007-02-15 21:37 UTC (permalink / raw)
  To: netfilter

Hi!

While hacking on alff [42] I asked myself what would be more wise to
use for matching multiple ports on multiple servers/ips

 a) on rule for every ip/port combination
 b) two rules for every server, one for tcp and one for udp
    (assumend I only have to match for udp and tcp stuff).

(The whole scenario is the following:
 I generate rules to regulate access to different services.
 Every service is transalted into an own chain.
 Therein I generate a matrix of host running this service and port
 related to it - like a))

As there are some services with ~ 20 ports (think: Windows(r) DC)
there might be some advantage in choosing the faster way.

Is there any "benchmark" which might enligthen me which way to use?
Any comments?

Thanks in advance
Ciao
Max
-- 
	Follow the white penguin.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-17 15:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-15 21:37 Whats faster? multiple rules vs. multiport match Maximilian Wilhelm
2007-02-17 13:55 ` Jan Engelhardt
2007-02-17 14:24   ` Pascal Hambourg
2007-02-17 15:33     ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox