May 30, 2024 ~ 3 min read

Input vs Forward chain nftables


In nftables, the distinction between input and forward rules lies in how packets are processed based on their destination. Here is a detailed explanation:

Input Chain

Forward Chain

Example Scenario

Consider a machine with nftables acting as both a server and a router:

Summary

Understanding these differences is crucial for configuring nftables correctly to manage both local and transit traffic.


Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on distributed systems.