Skip to content

All certifications

XK0-006 question of the day

Question for 2026-11-17. Domain: Security. Objective 3.2: Firewalls. Original SecLern question, written for practice.

An administrator will enable ufw on a server reached over ssh. Which order avoids losing the session?

Show the explanation

The ssh allow rule must be in place before the default-deny policy takes effect.

Each option

  • A. The default deny would cut the session before the rule exists. It would be right for a console session.
  • B. That also blocks ssh because no rule allows it. It would be right with the allow rule added first.
  • C. That leaves the session lost in between and the host open. It would be right for no safe case.
  • D (correct). Correct: The ssh allow rule must be in place before the default-deny policy takes effect.

What this question tests

It maps to XK0-006 objective 3.2, Firewalls: Firewalls Related ideas: ufw, lockout.

The published topics under this objective, so you can check what you have covered:

  • Zones and services
  • Rich rules
  • nftables and iptables

More from the archive

Start a daily session

Several questions at a time, aimed at your gaps.