Netfilter is the Linux kernel’s in-kernel packet processing framework. It provides the hooks that tools like nftables use to inspect, accept, drop, rewrite, or route network traffic, including firewall rules, NAT, and connection tracking decisions.
Netfilter matters because it sits inside the trusted kernel path, not in a user-space daemon. That makes it fast and powerful, but also security-critical: a bug in rule evaluation, state tracking, or transaction rollback can affect the whole host. In attacks, flaws in Netfilter-related code may be used for denial of service or local privilege escalation. In defense, administrators rely on it to enforce network policy, segment services, and reduce exposure, so correct kernel patching and careful rule updates are essential.


