topguy wrote: ↑Mon Aug 28, 2017 9:08 am
And those examples I tested might not use the "tables" functionality of Netfilter.
Those are nftables rules files, and the nft command is frontend for nftables, so I think that should exercise it.
After I got on a similar version to you I still don't have the kernel mod nf_tables. While there is no error text, there is an error return code:
Code: Select all
$ sudo nft -f /usr/share/doc/nftables/examples/syntax/inet-filter
$ echo $?
255
$ sudo nft list table inet filter
internal:0:0-0: Error: Could not receive tables from kernel: Invalid argument
'list table inet filter' works on my arch computer using nftables _and_ is documented syntax (naturally there is undocumented nftables sytnax, but let's not get into that). Additionally, it is not just an inet family problem:
Code: Select all
$ sudo nft -f /usr/share/doc/nftables/examples/syntax/ipv4-filter
$ sudo nft list table ipv4-filter
internal:0:0-0: Error: Could not receive tables from kernel: Invalid argument
So it is presumably broken in the same way for you. man nft does not document what error code 255 means

Finally, man nft says that errors like I was initially seeing where the entire error is underlined indicate kernel errors (rather than syntax errors), which lends further credence to my theory that the kernel support is just missing from raspbian kernel.