LFCS Networking Practice Question
Exhibit
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- * * 10.0.0.0/8 0.0.0.0/0 tcp dpt:22
0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22Refer to the exhibit. The output of 'iptables -L -n' shows the INPUT chain rules. What will happen to an SSH connection attempt from 10.0.0.1?
⚠ Common exam trap
Linux Foundation often tests the sequential nature of iptables rule processing, where candidates mistakenly think the default policy applies before all rules are checked, or that a later rule could override an earlier match.
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
✓
The connection will be accepted
The exhibit shows iptables rules for the INPUT chain. The first rule explicitly accepts SSH (port 22) from 10.0.0.1, so the connection attempt from that source IP will be accepted. Since iptables processes rules sequentially and this rule matches, the packet is accepted immediately without checking subsequent rules or the default policy.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The connection will be accepted
Why this is correct
The ACCEPT rule matches the source 10.0.0.0/8, so the connection is allowed.
- ✗
The connection will be dropped by the first rule
Why it's wrong here
The first rule accepts, not drops.
- ✗
The connection will be rate-limited
Why it's wrong here
No rate limiting is configured.
- ✗
The connection will be dropped by the default policy
Why it's wrong here
Default policy is ACCEPT, and there is a specific ACCEPT rule.
Go deeper
Related to this question
About these practice questions
This LFCS question is part of Courseiva's 507-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.