* Why inet table doesn't support nat prerouting chain?
@ 2020-03-06 11:32 Glen Huang
2020-03-06 11:37 ` Florian Westphal
0 siblings, 1 reply; 3+ messages in thread
From: Glen Huang @ 2020-03-06 11:32 UTC (permalink / raw)
To: netfilter
Hi,
It seems I can create a nat prerouting chain in either ip or ip6 table, but not inet, I wonder if that’s by design?
$ nft list ruleset
<empty output>
$ nft create table inet tbl
<empty output>
$ nft add chain inet tbl prerouting \{ type nat hook prerouting priority dstnat \; \}
Error: Could not process rule: No such file or directory
add chain inet tbl prerouting { type nat hook prerouting priority dstnat ; }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
$ nft list ruleset
table inet tbl {
}
If I replace inet with ip or ip6 then the previous commands work.
I tried them in docker with manually compiled nft 0.9.3, and also in debian 10.3 which has nft 0.9.0 (it doesn’t recognize dstnat, but replacing it with 0 results in the same error).
Do I have to create such chains separately for ip and ip6 tables?
Regards
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why inet table doesn't support nat prerouting chain?
2020-03-06 11:32 Why inet table doesn't support nat prerouting chain? Glen Huang
@ 2020-03-06 11:37 ` Florian Westphal
2020-03-06 11:40 ` Glen Huang
0 siblings, 1 reply; 3+ messages in thread
From: Florian Westphal @ 2020-03-06 11:37 UTC (permalink / raw)
To: Glen Huang; +Cc: netfilter
Glen Huang <heyhgl@gmail.com> wrote:
> Hi,
>
> It seems I can create a nat prerouting chain in either ip or ip6 table, but not inet, I wonder if that’s by design?
Kernel too old? Should work as of 5.2.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why inet table doesn't support nat prerouting chain?
2020-03-06 11:37 ` Florian Westphal
@ 2020-03-06 11:40 ` Glen Huang
0 siblings, 0 replies; 3+ messages in thread
From: Glen Huang @ 2020-03-06 11:40 UTC (permalink / raw)
To: Florian Westphal; +Cc: netfilter
Oh, that explains it. Debian 10.3 comes with 4.19.
Thanks, guess I have to create them separately for now.
> On Mar 6, 2020, at 7:37 PM, Florian Westphal <fw@strlen.de> wrote:
>
> Glen Huang <heyhgl@gmail.com> wrote:
>> Hi,
>>
>> It seems I can create a nat prerouting chain in either ip or ip6 table, but not inet, I wonder if that’s by design?
>
> Kernel too old? Should work as of 5.2.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-06 11:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-06 11:32 Why inet table doesn't support nat prerouting chain? Glen Huang
2020-03-06 11:37 ` Florian Westphal
2020-03-06 11:40 ` Glen Huang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.