From: John Lister <john.lister@kickstone.com>
To: Evan Pierce <evan@pierce.co.za>,
Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: Load Balancing issue
Date: Mon, 11 Apr 2011 16:37:57 +0100 [thread overview]
Message-ID: <4DA32055.9030904@kickstone.com> (raw)
In-Reply-To: <4DA2FB80.4050306@pierce.co.za>
On 11/04/2011 14:00, Evan Pierce wrote:
> On 2011/04/11 2:31 PM, John Lister wrote:
>> Have you saved/restored the marks in the conntrack table? Otherwise they
>> will be lost for all subsequent packets.. eg:
>>
>> -j CONNMARK --save-mark
>>
>> John
>>
> John
>
> No I haven't do I need a rule like:
>
> iptables -t mangle -A PREROUTING -j CONNMARK --save-mark
>
> or rather
>
> iptables -t mangle -A POSTROUTING -j CONNMARK --save-mark
I do this:
iptables -t mangle -A PREROUTING -j CONNMARK --restore-mark
iptables -t mangle -A PREROUTING -somerules -j MARK --set-mark xx
iptables -t mangle -A PREROUTING -somerules -j CONNMARK --save-mark
Generally, i have separate tables that do the mark/saving so as to only put the rules in once.
I also have a route for the local net in my fwmark(ed) tables.
Hope that helps
John
next prev parent reply other threads:[~2011-04-11 15:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-11 9:35 Load Balancing issue Evan Pierce
2011-04-11 12:31 ` John Lister
[not found] ` <4DA2FB80.4050306@pierce.co.za>
2011-04-11 15:37 ` John Lister [this message]
2011-04-11 16:23 ` Evan Pierce
2011-04-11 17:46 ` Andrew Beverley
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=4DA32055.9030904@kickstone.com \
--to=john.lister@kickstone.com \
--cc=evan@pierce.co.za \
--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).