From: pablo@netfilter.org
To: netfilter-devel@vger.kernel.org
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: [PATCH 3/7] netfilter: ip6t_NPT: restrict to mangle table
Date: Wed, 20 Mar 2013 11:49:30 +0100 [thread overview]
Message-ID: <1363776574-4766-4-git-send-email-pablo@netfilter.org> (raw)
In-Reply-To: <1363776574-4766-1-git-send-email-pablo@netfilter.org>
From: Florian Westphal <fw@strlen.de>
As the translation is stateless, using it in nat table
doesn't work (only initial packet is translated).
filter table OUTPUT works but won't re-route the packet after translation.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
net/ipv6/netfilter/ip6t_NPT.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/ipv6/netfilter/ip6t_NPT.c b/net/ipv6/netfilter/ip6t_NPT.c
index 83acc14..33608c6 100644
--- a/net/ipv6/netfilter/ip6t_NPT.c
+++ b/net/ipv6/netfilter/ip6t_NPT.c
@@ -114,6 +114,7 @@ ip6t_dnpt_tg(struct sk_buff *skb, const struct xt_action_param *par)
static struct xt_target ip6t_npt_target_reg[] __read_mostly = {
{
.name = "SNPT",
+ .table = "mangle",
.target = ip6t_snpt_tg,
.targetsize = sizeof(struct ip6t_npt_tginfo),
.checkentry = ip6t_npt_checkentry,
@@ -124,6 +125,7 @@ static struct xt_target ip6t_npt_target_reg[] __read_mostly = {
},
{
.name = "DNPT",
+ .table = "mangle",
.target = ip6t_dnpt_tg,
.targetsize = sizeof(struct ip6t_npt_tginfo),
.checkentry = ip6t_npt_checkentry,
--
1.7.10.4
next prev parent reply other threads:[~2013-03-20 10:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-20 10:49 [PATCH 0/7] netfilter fixes for 3.9-rc pablo
2013-03-20 10:49 ` [PATCH 1/7] netfilter: nf_conntrack: register pernet subsystem before register L4 proto pablo
2013-03-20 10:49 ` [PATCH 2/7] netfilter: nfnetlink_queue: fix incorrect initialization of copy range field pablo
2013-03-20 13:33 ` Sergei Shtylyov
2013-03-20 10:49 ` pablo [this message]
2013-03-20 10:49 ` [PATCH 4/7] ipvs: fix sctp chunk length order pablo
2013-03-20 10:49 ` [PATCH 5/7] ipvs: add backup_only flag to avoid loops pablo
2013-03-20 10:49 ` [PATCH 6/7] ipvs: remove extra rcu lock pablo
2013-03-20 10:49 ` [PATCH 7/7] netfilter: remove unused "config IP_NF_QUEUE" pablo
2013-03-20 14:25 ` [PATCH 0/7] netfilter fixes for 3.9-rc David Miller
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=1363776574-4766-4-git-send-email-pablo@netfilter.org \
--to=pablo@netfilter.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@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).