LPI
117-303 · Question #36
What does the following iptables rule accomplish: iptables A INPUT d 10.142.232.1 p tcp dport 20:21 j ACCEPT
The correct answer is D. Forwards all traffic on port 20 and 21 to the host 10.142.232.1. See the full explanation below for the reasoning.
Question
What does the following iptables rule accomplish: iptables A INPUT d 10.142.232.1 p tcp dport 20:21 j ACCEPT
Options
- AForwards all traffic not on port 20 or 21 to the host 10.142.232.1.
- BDrops all traffic coming from the host 10.142.232.1 destined for port 20 or 21.
- CAccepts all traffic from the host 10.142.232.1 destined for port 20 or 21.
- DForwards all traffic on port 20 and 21 to the host 10.142.232.1.
How the community answered
(51 responses)- A4% (2)
- B10% (5)
- C16% (8)
- D71% (36)
Community Discussion
No community discussion yet for this question.