Monitor bandwidth with hardware offload on EdgeRouterX running 23.05.3


I would like to know if it is possible to use Netlink Bandwidth Monitor (nlbwmon) on an Ubiquiti EdgeRouter X running OpenWrt 23.05.3 with software and hardware flow offloading enabled. I used to run a custom OpenWrt image made by wulfy23 for RaspberryPi 4 and nlbwmon was able to count packets with flow offloading enabled.

I found a reddit post from 1 year ago ( saying that running this command ”nft add flowtable inet fw4 ft { counter }” will enable the packet counting but when i run it i get the following error:

root@ER-X-openWRT:~# nft add flowtable inet fw4 ft { counter }
Error: missing hook and priority in flowtable declaration
add flowtable inet fw4 ft { counter }

This bandwidth monitor is a good way for me to monitor traffic per IP, especially for IoT devices so i would like for it to work on ER-X.

Thank you.