How to use bridge-nf-call in nftables

I use OpenWrt as a transparent bridge. It needs to add the following 3 lines to /etc/sysctl.conf

net.bridge.bridge-nf-call-arptables=1
net.bridge.bridge-nf-call-ip6tables=1
net.bridge.bridge-nf-call-iptables=1

My OpenWrt uses nftables, but don't know how to modify them.

simply add them to the file ?

1 Like

Yes. On OpenWrt using iptables, only need to install kmod-br-netfilter and add these 3 lines to /etc/sysctl.conf. I have bridged two lan interfaces before this.

1 Like

Isn’t it possible to simply add 3 lines like OpenWrt using iptables?

nftables don't need any sysctl parameters.
You need to add nftables rules to the bridge table.

1 Like