[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151130022459.GC29878@breakpoint.cc>
Date: Mon, 30 Nov 2015 03:24:59 +0100
From: Florian Westphal <fw@...len.de>
To: Lorenzo Colitti <lorenzo@...gle.com>
Cc: Florian Westphal <fw@...len.de>,
Matt Bennett <Matt.Bennett@...iedtelesis.co.nz>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Luuk Paulussen <Luuk.Paulussen@...iedtelesis.co.nz>,
Kyeong Yoo <Kyeong.Yoo@...iedtelesis.co.nz>
Subject: Re: Increasing skb->mark size
Lorenzo Colitti <lorenzo@...gle.com> wrote:
> On Mon, Nov 30, 2015 at 11:08 AM, Florian Westphal <fw@...len.de> wrote:
> > We have ctnetlink which allows direct setting of ctmark/ctlabels.
>
> Can those labels be set early enough in the stack to affect the source
> address chosen for outgoing connections?
No, same restrictions as connmarks or skb marks apply.
Furthermore, since its stored in the conntrack area, the conntrack isn't
created until after the first packet hits NF output hook, and its not
visible until after POSTROUTING hook.
There was an out of tree patch to allow to use ipsets to select
source addresses instead of mark+fwmark:
https://lkml.org/lkml/2012/12/3/93
I think thats something we shouldn't really go for this.
However, if fwmark is too limiting (and given these hacks exist),
maybe we should start thinking for alternatives?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists