Courseiva
System ArchitecturemediumDrag & DropObjective-mapped

LPIC-1 System Architecture Practice Question

Arrange the steps to configure a firewall rule using iptables to allow SSH.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Step 1: Add the SSH allow rule using iptables (e.g., iptables -A INPUT -p tcp --dport 22 -j ACCEPT). Step 2: Save the current iptables rules to a file (e.g., iptables-save > /etc/iptables/rules.v4). Step 3: Install and enable iptables-persistent to load rules on boot.

iptables rules are added, then saved to a file, and persistence ensures they survive reboot.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Step 1: Add the SSH allow rule using iptables (e.g., iptables -A INPUT -p tcp --dport 22 -j ACCEPT). Step 2: Save the current iptables rules to a file (e.g., iptables-save > /etc/iptables/rules.v4). Step 3: Install and enable iptables-persistent to load rules on boot.

    Why this is correct

    This is the correct order because you first define the rule, then save the current ruleset, and finally ensure the rules persist after reboot by installing iptables-persistent.

  • Step 1: Save the current iptables rules to a file. Step 2: Add the SSH allow rule. Step 3: Install and enable iptables-persistent.

    Why it's wrong here

    This order is incorrect because saving before adding the rule would save an empty or outdated ruleset, missing the new SSH rule.

  • Step 1: Add the SSH allow rule. Step 2: Install and enable iptables-persistent. Step 3: Save the current iptables rules.

    Why it's wrong here

    This order is incorrect because installing persistence before saving means the persistence setup may not include the new rule, and saving after persistence might overwrite the persistence configuration.

  • Step 1: Install and enable iptables-persistent. Step 2: Add the SSH allow rule. Step 3: Save the current iptables rules.

    Why it's wrong here

    This order is incorrect because setting up persistence before adding the rule will load an empty or previous ruleset on boot, and adding the rule after persistence does not automatically make it persistent unless saved correctly.

About these practice questions

Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.