[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140220193231.GB7119@breakpoint.cc>
Date: Thu, 20 Feb 2014 20:32:31 +0100
From: Florian Westphal <fw@...len.de>
To: Artie Hamilton <artiemhamilton@...oo.com>
Cc: Pablo Neira Ayuso <pablo@...filter.org>,
Patrick McHardy <kaber@...sh.net>,
Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>,
"\"David S. Miller\"" <davem@...emloft.net>,
Alexey Kuznetsov <kuznet@....inr.ac.ru>,
James Morris <jmorris@...ei.org>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
"netfilter-devel@...r.kernel.org" <netfilter-devel@...r.kernel.org>,
"netfilter@...r.kernel.org" <netfilter@...r.kernel.org>,
"coreteam@...filter.org" <coreteam@...filter.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: BUG: ip6tables IPv6-REDIRECT over bridges
Artie Hamilton <artiemhamilton@...oo.com> wrote:
> Now the same thing should be done for IPv6. It should works quite similar
> (I justĀ assume the above mentioned steps are already done):
>
> $ sysctl -w net.ipv6.conf.br0.accept_ra=2
> $ sysctl -w net.bridge.bridge-nf-call-ip6tables=1
> $ ip6tables -t nat -A PREROUTING -p tcp -m tcp --dport 8080 -j REDIRECT --to-ports 81
>
> But here is the problem: Connections will not be started. I see for example
> connections getting started to the service like this on the client:
Yes, because bridge layer does not detect when addresses have been
rewritten.
The check is only implemented for ipv4, see dnat_took_place use in br_netfilter.c
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists