Monitor bandwidth with hardware offload on EdgeRouterX running 23.05.3

Hello.

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 (https://www.reddit.com/r/openwrt/comments/11oim5a/monitor_bandwidth_with_hardware_offload/) 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.

Fixed one year before your post?

Works with software offload, not with hardware offload...

Your message is about some redditer solving problem, offload counters are transferred only when state exits offload, like on 30s timer.