Hi all, trying to implement a nftables NFLOG rule to allow nhrpd to intercept multicast packets as detailed here under Multicast Functionality https://docs.frrouting.org/en/latest/nhrpd.html on OpenWrt 22.03
The original ip tables command is as follows:
iptables -A OUTPUT -d 224.0.0.0/24 -o gre1 -j NFLOG --nflog-group 2
I have tried using the following commands to create the command for nftables but with no success:
root@OpenWrt:/# nft add chain ip filter OUTPUT { type filter hook input priority
root@OpenWrt:/# nft add rule filter OUTPUT oif gre1 log ip daddr 224.0.0.0/24 ct
state new logging prefix \"NHRP Multicast: \" group 2 accept
Error: syntax error, unexpected prefix
add rule filter OUTPUT oif gre1 log ip daddr 224.0.0.0/24 ct state new logging prefix "NHRP Multicast: " group 2 accept
^^^^^^
root@OpenWrt:/# ```
It doesn't appear to like the prefix syntax, I have also tried this without to no avail:
```root@OpenWrt:/# nft add rule filter OUTPUT oif gre1 log ip daddr 224.0.0.0/24 ct
state new logging group 2 accept
Error: syntax error, unexpected group
add rule filter OUTPUT oif gre1 log ip daddr 224.0.0.0/24 ct state new logging group 2 accept ```
^^^^^
I've installed the following packages as recommended previously too:
opkg install ip6tables-nft
opkg install kmod-ipt-core
opkg install kmod-ip6tables
Any help would be greatly received, thanks in advance!