Skip to content

All certifications

XK0-006 practice question on Firewalls, 2026-11-11

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

A rule that blocks ssh works for IPv4 but a client still connects over IPv6. ``` $ sudo iptables -S INPUT -P INPUT ACCEPT -A INPUT -p tcp -m tcp --dport 22 -j DROP $ sudo ip6tables -S INPUT -P INPUT ACCEPT ``` Why does the IPv6 connection still work?

Show the explanation

IPv4 and IPv6 use separate rule sets in iptables.

Each option

  • A. The same port 22 applies to both protocols. It would be right for a service on another port.
  • B. The order is irrelevant because the IPv6 table has no rule. It would be right with two rules in one table.
  • C. A policy applies only when no rule matches. It would be right for traffic without a matching rule.
  • D (correct). Correct: IPv4 and IPv6 use separate rule sets in iptables.

What this question tests

It maps to XK0-006 objective 3.2, Firewalls: Firewalls Related ideas: ip6tables, ipv6.

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.