Kmod-nft-offload -
The kmod-nft-offload module works in conjunction with the nftables framework to offload rules to compatible hardware. Here's a step-by-step overview of the process:
Add or modify the following lines in the defaults section:
Network monitoring tools (like darkstat or vnStat) may fail to accurately report bandwidth statistics because they cannot "see" the offloaded packets.
It accelerates traffic flowing between isolated home networks (e.g., keeping IoT devices separate from local data servers), processing packets at the physical limit of the ports. Technical Trade-offs and Limitations kmod-nft-offload
The benefits of using kmod-nft-offload are numerous:
This module acts as a bridge between the Linux networking stack and specialized hardware accelerators or optimized software paths.
: This is the most critical requirement. The network chipset in your device must have hardware offloading capabilities that are supported by the Linux kernel and your specific driver. In the OpenWrt community, MediaTek hardware (such as mt7621, mt7622, mt798x, etc.) is the most widely supported platform for kmod-nft-offload . The kmod-nft-offload module works in conjunction with the
Check (only if your router chipset explicitly supports it). Click Save & Apply . Option B: Using the Command Line Interface (CLI)
# Enable Software Offloading uci set firewall.@defaults[0].flow_offloading='1' # Enable Hardware Offloading (Requires hardware compatibility) uci set firewall.@defaults[0].flow_offloading_hw='1' # Commit changes and restart the firewall service uci commit firewall /etc/init.d/firewall restart Use code with caution. Verifying Active Offloading Status
Note: Real-world figures vary depending on your specific SoC (System on Chip), active SQM (Smart Queue Management) scripts, and total concurrent connection states. 4. The Transition from iptables ( fw3 ) to nftables ( fw4 ) Technical Trade-offs and Limitations The benefits of using
🔧 kmod = kernel module 🔧 nft = nftables framework 🔧 offload = push work to hardware
: You are using a bridge interface (like br-lan ) for your LAN, but offload is not working.