nerdexam
CompTIA

XK0-005 · Question #666

A Linux engineer is removing a previously created firewall rule. Which of the following commands will help the administrator accomplish this task?

The correct answer is B. ufw delete deny 80/tcp. The correct ufw syntax for deleting a rule is 'ufw delete [rule]', where [rule] matches the original rule as it was added. If the rule was added with 'ufw deny 80/tcp', it must be deleted with 'ufw delete deny 80/tcp'. Option A ('ufw delete 80/tcp') omits the rule action…

Security

Question

A Linux engineer is removing a previously created firewall rule. Which of the following commands will help the administrator accomplish this task?

Options

  • Aufw delete 80/tcp
  • Bufw delete deny 80/tcp
  • Cufw delete 80/tcp deny
  • Dufw 80/tcp delete

How the community answered

(27 responses)
  • B
    93% (25)
  • C
    4% (1)
  • D
    4% (1)

Explanation

The correct ufw syntax for deleting a rule is 'ufw delete [rule]', where [rule] matches the original rule as it was added. If the rule was added with 'ufw deny 80/tcp', it must be deleted with 'ufw delete deny 80/tcp'. Option A ('ufw delete 80/tcp') omits the rule action (deny/allow) and is invalid. Options C and D use incorrect syntax-ufw does not accept the action or port after 'delete' in those formats.

Topics

#Linux Firewall#ufw#Firewall Rule Management#Network Security

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice