A Linux host must accept replies to connections it starts while blocking new inbound connections. How does a stateful filter accept those replies?
Show the answer
Correct answerA. It matches the tracked connection state, such as ESTABLISHED
AWhy this is right: Connection tracking remembers outbound connections, so one ESTABLISHED rule admits their replies.
BWhy not this: Matching ports and flags on each packet is how a stateless filter has to handle replies.
CWhy not this: Checking payloads is deep packet inspection; stateful filtering works from connection state.
DWhy not this: conntrack matches replies automatically; no per-reply rule or approval is involved.
Stateless filtering judges each packet alone on header fields, with no memory of earlier packets, so it must match replies by ports and flags. Stateful filtering uses connection tracking (conntrack), so one rule matching established state covers replies to connections the host initiated.