Security
A Linux server has an iptables INPUT chain with a default policy of DROP. The server starts outbound HTTPS connections to a package mirror, but the replies are being dropped. The administrator wants replies accepted without allowing unsolicited inbound packets to high-numbered ports. Which rule BEST meets this requirement?
Show the answer
Correct answerC. iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
Matching ESTABLISHED,RELATED uses connection tracking (stateful), so only packets belonging to connections the host started are accepted. The source-port and ACK rule is stateless: it checks only header fields, so any crafted packet from port 443 with ACK set would also pass.