From: Pablo Neira Ayuso <pablo@netfilter.org>
To: "Dirk H. Schulz" <dirk.schulz@kinzesberg.de>
Cc: netfilter@vger.kernel.org
Subject: Re: conntrackd working, but netfilter not impressed
Date: Tue, 12 Aug 2008 13:40:18 +0200 [thread overview]
Message-ID: <48A176A2.6000301@netfilter.org> (raw)
In-Reply-To: <0F0E3430135185A207EFA41A@Dirks-MacBook-Pro.local>
Dirk H. Schulz wrote:
> <misch@multinet.de> wrote:
>> Did you conntrackd tell to import sync'ed tables into the kernel tables?
>> Scripts see:
>> /usr/share/doc/examples/sync/ftfw/script_master.sh
>
> That is what I missed. I have looked into the example script now - it
> looks like committing the external cache into the kernel tables is
> something to do manually?!?
No. The scripts are there for for the primary-backup or multi-primary
with flow persistency, ie. when we can guarantee that the same firewall
handles the same subset of flows at any time - symmetric routing.
> That means in an active-active setup like mine I would have to commit
> every second - which of course can be done, but does that make sense? I
> would have expected conntrackd to do it automatically or to have an
> option that makes it do it automatically.
The CacheWriteThrough clause should do that for you but with some
important considerations: higher CPU consumption and possible race
conditions - the time to transmit the state to the other firewall
replica should be smaller than the RTT between the firewall and the
end-peer. This is generally true if your firewall is connected to a DSL
line or whatever that inherently inserts some latency in the communications.
Anyhow, the multi-primary setup with asynchronous routing is really bad
design for stateful firewalls. The key problem is that stateful
firewalling works with at flow-level and OSPF only knows about packets.
The preferred way to go should be the multi-primary with symmetric
routing or simply use primary-backup instead if you cannot guarantee the
previous statement.
I'm finishing some documentation for the upcoming release that should
stop this confusion, that will be out soon.
--
"Los honestos son inadaptados sociales" -- Les Luthiers
next prev parent reply other threads:[~2008-08-12 11:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 10:50 conntrackd working, but netfilter not impressed Dirk H. Schulz
[not found] ` <200808111322.58469.misch@multinet.de>
2008-08-11 12:23 ` Dirk H. Schulz
2008-08-12 11:40 ` Pablo Neira Ayuso [this message]
2008-08-12 20:20 ` Dirk H. Schulz
2008-08-13 15:51 ` Pablo Neira Ayuso
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=48A176A2.6000301@netfilter.org \
--to=pablo@netfilter.org \
--cc=dirk.schulz@kinzesberg.de \
--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