XK0-005 · Question #621
A systems administrator is working on a security report from the Linux servers. Which of the following commands can the administrator use to display all the firewall rules applied to the Linux…
The correct answer is D. firewall-cmd --list-all E. ufw status. firewall-cmd --list-all (Option D) displays all active zones, services, ports, and rules managed by firewalld. ufw status (Option E) displays the current status and all rules configured in UFW (Uncomplicated Firewall). Together they cover the two most common Linux firewall…
Question
A systems administrator is working on a security report from the Linux servers. Which of the following commands can the administrator use to display all the firewall rules applied to the Linux servers? (Choose two.)
Options
- Aufw limit
- Biptables -F
- Csystemctl status firewalld
- Dfirewall-cmd --list-all
- Eufw status
- Fiptables -A
How the community answered
(43 responses)- A2% (1)
- B2% (1)
- C7% (3)
- D88% (38)
Explanation
firewall-cmd --list-all (Option D) displays all active zones, services, ports, and rules managed by firewalld. ufw status (Option E) displays the current status and all rules configured in UFW (Uncomplicated Firewall). Together they cover the two most common Linux firewall frontends. Option A (ufw limit) sets rate-limiting rules rather than displaying them. Option B (iptables -F) flushes (deletes) all iptables rules - a destructive action. Option C (systemctl status firewalld) shows only the service's running state, not the actual rules. Option F (iptables -A) appends a new rule rather than listing existing ones.
Topics
Community Discussion
No community discussion yet for this question.