nerdexam
CompTIA

XK0-005 · Question #797

A Linux administrator is removing non-permanent rules from the system firewall. Which of the following commands will allow the administrator to achieve this goal in the safest way possible?

The correct answer is C. firewall-cmd --reload. firewall-cmd --runtime-to-permanent sets the current rules to permanent, it doesn't remove non- permanent rules. --reload will reload the firewall config and remove any non-persistent rules that were added during the current session.

System Management

Question

A Linux administrator is removing non-permanent rules from the system firewall. Which of the following commands will allow the administrator to achieve this goal in the safest way possible?

Options

  • Afirewall-cmd --set-default-zone
  • Bfirewall-cmd --runtime-to-permanent
  • Cfirewall-cmd --reload
  • Dfirewall-cmd --complete-reload

How the community answered

(54 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    93% (50)
  • D
    2% (1)

Explanation

firewall-cmd --runtime-to-permanent sets the current rules to permanent, it doesn't remove non- permanent rules. --reload will reload the firewall config and remove any non-persistent rules that were added during the current session.

Topics

#firewalld#firewall management#network security#command-line interface

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice