From: Anatoly Muliarski <x86ever@gmail.com>
To: netfilter@vger.kernel.org
Subject: Re: question about NAT rule
Date: Mon, 28 Jun 2010 20:42:09 +0300 [thread overview]
Message-ID: <AANLkTin0repbbkj42wJF5fivDlApG8VaAn0JvK8JiKbh@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinOd_6m6UvbqKcB3v2-FinNQzHUmhymFE9Z5RHm@mail.gmail.com>
2010/6/23 Pete Kay <petedao@gmail.com>:
> Hi,
>
> I guess I may have misunderstood the purpose of the
> netfilter-conntrack module. What I would like to do is to set up a
> alot of iptables NAT rules ( > 10K at 500 rules (add/drop)/s). Using
> the system iptables command is not going to be fast enough for me.
> All I want is to deliver the packets received from specific IP:port to
> another IP:port. Therefore, I am looking into using
> netfilter-conntrack api to actually "set" those rules dynamically. Is
> this the right approach in doing that?
>
> Could someone please give me some suggestions?
Adding/dropping iptables rule for a whole set of 10K rules is a very
time-consuming procedure.
Probably you ought to try to change the algoritm logic. As a way I
suggest using ipset for storing info about IPs and ports and to build
an unchangable set of iptables rules for walking through them in a
binary tree manner.
--
Best regards
Anatoly Muliarski
prev parent reply other threads:[~2010-06-28 17:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-22 14:20 question about NAT rule Pete Kay
2010-06-22 15:10 ` Pascal Hambourg
2010-06-23 1:57 ` Pete Kay
2010-06-28 17:42 ` Anatoly Muliarski [this message]
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=AANLkTin0repbbkj42wJF5fivDlApG8VaAn0JvK8JiKbh@mail.gmail.com \
--to=x86ever@gmail.com \
--cc=netfilter@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).