Security

A junior administrator asks how packet filtering is structured on a Linux server. Which statements about Netfilter are accurate? (Choose three.)

Choose 3 answers

Show the answer

Correct answersA. It places hooks at fixed points in the kernel network stack where packets can be inspected, modified or dropped.C. Its connection tracking lets rules match packets by connection state, such as NEW or ESTABLISHED.D. The nft and iptables commands are user-space tools that load rules into the Netfilter framework in the kernel.

AWhy this is right: Netfilter hooks such as PREROUTING, INPUT, FORWARD, OUTPUT and POSTROUTING sit at fixed points in the kernel stack.

BWhy not this: Netfilter is in the kernel; rules take effect as soon as a tool loads them, with no daemon to start.

CWhy this is right: The conntrack subsystem tracks connections, so rules can match states such as NEW or ESTABLISHED.

DWhy this is right: nft and iptables run in user space and only load rules into the kernel framework.

EWhy not this: Netfilter filters IPv6 too, through ip6tables or nftables ip6 and inet tables.

FWhy not this: Loaded rules live in kernel memory and vanish at reboot unless saved, for example by nftables.service.

Netfilter is the kernel framework: it provides hooks and connection tracking, and nft and iptables are only front-ends that configure it. It is not a daemon. Rules are enforced by the kernel as soon as they are loaded, with no service to start. It handles IPv6 as well as IPv4, and loaded rules live in kernel memory, so they must be saved to a file and restored at boot to survive a reboot.