Linux_FoundationLinux_Foundation
LFCS · Question #224
LFCS Question #224: Real Exam Question with Answer & Explanation
The correct answer is D: Drops all traffic from 208.77.188.166.. The iptables rule described will block all incoming network traffic originating from the specified source IP address.
Submitted by jian89· Apr 18, 2026Networking
Question
What does the following iptables rule accomplish: iptables A INPUT s 208.77.188.166 j DROP
Options
- AForwards all incoming traffic to the host 208.77.188.166.
- BAccepts all traffic from 208.77.188.166.
- CNothing, there is a syntax error.
- DDrops all traffic from 208.77.188.166.
Explanation
The iptables rule described will block all incoming network traffic originating from the specified source IP address.
Common mistakes.
- A. This rule does not forward traffic; it explicitly blocks it. Forwarding is typically handled by the
FORWARDchain or NAT rules. - B. The
j DROPtarget explicitly discards traffic, it does not accept it. TheACCEPTtarget is used for allowing traffic. - C. The rule
iptables -A INPUT -s 208.77.188.166 -j DROPhas correctiptablessyntax and will execute as intended.
Concept tested. Iptables basic packet filtering
Reference. https://linux.die.net/man/8/iptables
Topics
#iptables#firewall rules#packet filtering#network security
Community Discussion
No community discussion yet for this question.