From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Igor Neves <igor@3gnt.net>
Cc: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: conntrackd + mark problems
Date: Tue, 11 Nov 2008 11:23:10 +0100 [thread overview]
Message-ID: <49195D0E.2050906@netfilter.org> (raw)
In-Reply-To: <491879DD.2060608@3gnt.net>
Igor Neves wrote:
> Hi,
>
> First of all, i would like to thanks you, for your great your.
>
> I have setup two firewalls with conntrackd in Centos 5, and everything
> it's ok and working as it should. By the way I have used heartbeat as HA
> manager, for that I have to develop conntrackd init script, and one ocf
> script for heartbeat. There are any interest in adding them to tree?
If they are generic enough to help others to set up hearbeat +
conntrackd, I'll be fine with it. Please, send them to me so I can check
them and don't forget to add the corresponding credits.
> I just have found one problem, in this 2 firewalls I need to setup
> "Policy Routing" and "Policy Shaper", but our solutions are based on
> mark's.
>
> I noticed that when the the backup firewall takes over the service(go to
> primary), and the primary goes to state backup, the connmark connections
> move from one to the other without any problem but it does not take the
> mark with it, it always insert the rule in the new primary with "mark=0".
>
> Is this a configuration problem? A todo item? A bug?
Looking at the archives, conntrack-tools >= 0.9.5 and Linux kernel >=
2.6.20 supports connmarking. Please, try to guess where the connmark is
getting lost:
(in the primary) # conntrack -L # shows kernel table
(in the primary) # conntrackd -i # shows userspace cache
(in the backup)# conntrackd -e # shows external cache
They all should show the connmark. And also try:
# conntrack -I -s 1.1.1.1 -d 2.2.2.2 -p tcp --sport 1111 --dport 2222 -t
10 -u SEEN_REPLY --state SYN_SENT -m 1
This lines creates an entry manually with the command line tool - line
above. Please, check that the mark is set.
> Thanks for your help,
> PS: I know I should send this to the list, but I'm not subscribed, sorry.
I'm Cc'ing netfilter users mailing list, just to keep this for the record.
--
"Los honestos son inadaptados sociales" -- Les Luthiers
next parent reply other threads:[~2008-11-11 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <491879DD.2060608@3gnt.net>
2008-11-11 10:23 ` Pablo Neira Ayuso [this message]
[not found] ` <491964D0.8030407@3gnt.net>
2008-11-11 15:04 ` conntrackd + mark problems 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=49195D0E.2050906@netfilter.org \
--to=pablo@netfilter.org \
--cc=igor@3gnt.net \
--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