102-500 · Question #160
In the output of iptables -L -n is the line ACCEPT all - - 10.69.70.5 0.0.0.0/0 listed under the INPUT chain. What does this line mean?
The correct answer is C. All traffic from 10.69.70.5 to anywhere is allowed. Option C is correct because in iptables -L -n output, the columns are ordered target, protocol, options, source, destination - so 10.69.70.5 is the source and 0.0.0.0/0 (meaning "any address") is the destination. This INPUT chain rule therefore accepts all protocol traffic from…
Question
Options
- AThat all traffic from 0.0.0.0/0 to 10.69.70.5 is explicitly allowed
- BTCP traffic to 10.69.70.5 with all of the TCP flags is allowed
- CAll traffic from 10.69.70.5 to anywhere is allowed
- DThe ACCEPT chain is responsible for all traffic from 10.69.70.1 to 0.0.0.0
How the community answered
(30 responses)- A3% (1)
- B7% (2)
- C80% (24)
- D10% (3)
Explanation
Option C is correct because in iptables -L -n output, the columns are ordered target, protocol, options, source, destination - so 10.69.70.5 is the source and 0.0.0.0/0 (meaning "any address") is the destination. This INPUT chain rule therefore accepts all protocol traffic from host 10.69.70.5 going to anywhere.
Why the distractors fail:
- A reverses the source/destination columns -
0.0.0.0/0is the destination, not the source, so it does not describe traffic from 0.0.0.0/0 to 10.69.70.5. - B is wrong on two counts: the protocol field shows
all, not TCP, and no TCP flags are specified anywhere in this rule. - D confuses
ACCEPTas a chain name (it's a target/action), invents the IP10.69.70.1which doesn't appear in the rule, and misreads the field order entirely.
Memory tip: Memorize the column order as "T-P-O-S-D" (Target, Protocol, Opt, Source, Destination) - think "The Protocol Often Sends Data". When you see a rule, slot each value into that template left-to-right and the meaning becomes unambiguous.
Topics
Community Discussion
No community discussion yet for this question.