Skip to content

Commit a82783c

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: ip6t_NPT: restrict to mangle table
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>
1 parent bae99f7 commit a82783c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎net/ipv6/netfilter/ip6t_NPT.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ ip6t_dnpt_tg(struct sk_buff *skb, const struct xt_action_param *par)
114114
static struct xt_target ip6t_npt_target_reg[] __read_mostly = {
115115
{
116116
.name = "SNPT",
117+
.table = "mangle",
117118
.target = ip6t_snpt_tg,
118119
.targetsize = sizeof(struct ip6t_npt_tginfo),
119120
.checkentry = ip6t_npt_checkentry,
@@ -124,6 +125,7 @@ static struct xt_target ip6t_npt_target_reg[] __read_mostly = {
124125
},
125126
{
126127
.name = "DNPT",
128+
.table = "mangle",
127129
.target = ip6t_dnpt_tg,
128130
.targetsize = sizeof(struct ip6t_npt_tginfo),
129131
.checkentry = ip6t_npt_checkentry,

0 commit comments

Comments
 (0)