CompTIA Linux+ XK0-006 (V8) Practice Question

You are hardening a public-facing web server that uses firewalld. The requirements are:

  • Permit HTTPS (TCP 443) only when the source is 192.0.2.0/24.
  • Log each accepted packet with the prefix "https_in" at the "info" level.
  • Make the rule permanent so it persists after a reboot.
  • Ensure the rule is evaluated with priority 10.

Which single command meets all of these requirements?

  • firewall-cmd --permanent --zone=public --add-service=https --source 192.0.2.0/24 --log-prefix https_in

  • firewall-cmd --permanent --zone=public --add-rich-rule='rule priority=10 family="ipv4" service name="httpss" source address="192.0.2.0/24" accept log prefix="https_in" level="info"'

  • firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" source address="192.0.2.0/24" service name="httpss" log prefix="https_in" level="info" accept'

  • firewall-cmd --permanent --zone=public --add-rich-rule='rule priority=10 family="ipv4" source address="192.0.2.0/24" service name="httpss" log prefix="https_in" level="info" accept'

CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot