CompTIA Linux+ (XK0-005) — Question 261
A Linux administrator is implementing a stateful firewall on the Linux server. Which of the following iptables options will be required to build the stateful rules? (Choose two.)
Answer options
- A. --name ESTABLISHED
- B. -m recent
- C. -m conntrack
- D. --cstate
- E. --remove
- F. -j DROP
Correct answer: B, C
Explanation
The correct options are B and C because '-m recent' and '-m conntrack' are both modules that facilitate tracking the state of connections in iptables. The other options do not provide the necessary functionality for stateful rules, with some being unrelated to state management in iptables.