From: Peter Surda <shurdeek@routehat.org>
To: netfilter-devel@lists.netfilter.org
Subject: Re: netfilter efficiency
Date: Fri, 21 Jan 2005 14:30:14 +0100 [thread overview]
Message-ID: <20050121133013.GF31012@soldats.localdomain> (raw)
In-Reply-To: <005c01c4ff19$508ade80$c0de623e@MAURO>
On Thu, Jan 20, 2005 at 06:56:04PM +0100, MauroTablo' wrote:
> Hi all.
hi
> The question is: iptables confronts the TCP packet with all my 90 rules, or
> it confronts the packet ONLY WITH rules for tcp packets (-p tcp)? In other
> words, is there a function in netfilter that looks up to the protocol type
> of a transit packet and decides which rules to confront the packet with?
You can optimise this like this:
iptables -N tcp
iptables -N udp
iptables -N icmp
iptables -A FORWARD -p tcp -j tcp
iptables -A FORWARD -p udp -j udp
iptables -A FORWARD -p icmp -j icmp
iptables -A tcp my tcp rules
iptables -A udp my udp rules
iptables -A icmp my icmp rules
> Thank you.
> Mauro.
Bye,
Peter Surda (Shurdeek) <shurdeek@routehat.org>, ICQ 10236103, +436505122023
--
Hello, this is Bill Gates and I pronounce Monopoly, er, Windows as Windows.
next prev parent reply other threads:[~2005-01-21 13:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-20 17:56 netfilter efficiency MauroTablo'
2005-01-21 13:30 ` Peter Surda [this message]
2005-01-21 13:39 ` Samuel Jean
2005-01-21 13:42 ` Sven-Haegar Koch
2005-01-21 19:35 ` Maxime Ducharme
2005-01-22 10:12 ` Jan Du Caju
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050121133013.GF31012@soldats.localdomain \
--to=shurdeek@routehat.org \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.