Kmod-nft-offload Jun 2026

This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later. kmod-nft-offload - [OpenWrt Wiki] package

# Clone / install the module git clone https://github.com/your-repo/kmod-nft-offload cd kmod-nft-offload make && sudo make install

kmod-nft-offload is an essential component for maximizing the networking potential of modern Linux-based routers. By offloading nftables rules to hardware, it enables fast, efficient packet processing that reduces CPU load and increases throughput, making it highly recommended for gigabit connections.

In OpenWrt, the kmod-nft-offload module is typically installed as a dependency of the firewall4 package. However, if you need to install it manually or verify its presence: kmod-nft-offload

When a connection (like a video stream or a large download) is established, most packets in that stream are predictable. Rather than checking every single packet against every firewall rule, the module "offloads" these established flows to a specialized flow table.

Hardware offloading reduces the CPU overhead associated with managing large numbers of concurrent flows. For a load balancer distributing traffic across multiple servers, the ability to handle hundreds of thousands of established connections without consuming CPU cores is a game-changer.

Are you currently seeing on your router, or are you just planning a custom build ? kmod-nft-offload - [OpenWrt Wiki] package This public link is valid for 7 days

# 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

chain forward type filter hook forward priority filter ct state established flow add @fb

Some nftables rules cannot be offloaded. Complex rules involving queuing or certain Mangle table operations might force traffic to return to the slow software path. Can’t copy the link right now

Packet routing is CPU-intensive. When the CPU runs at 100% load during large downloads, the router generates heat and consumes more power. Offloading keeps the CPU idle, keeping the device cool and extending its lifespan. Eliminate Bufferbloat and Latency Spikes

To understand its role, you must understand the evolution of Linux firewalls:

: Essential for lower-powered routers to achieve full gigabit speeds without maxing out the CPU.