LPI
303-200 · Question #46
What effect does the following command have on TCP packets? iptables -A INPUT -d 10 142 232.1 -p tcp -dport 20:21 -j ACCEPT
The correct answer is C. Accept only TCP traffic from 10.142 232.1 destined for port 20 or 21. See the full explanation below for the reasoning.
Question
What effect does the following command have on TCP packets? iptables -A INPUT -d 10 142 232.1 -p tcp -dport 20:21 -j ACCEPT
Options
- AForward all TCP traffic not on port 20 or 21 to the IP address 10.142 232.1
- BDrop all TCP traffic coming from 10 142 232.1 destined for port 20 or 21.
- CAccept only TCP traffic from 10.142 232.1 destined for port 20 or 21.
- DAccept all TCP traffic on port 20 and 21 for the IP address 10.142.232.1
How the community answered
(66 responses)- A15% (10)
- B3% (2)
- C74% (49)
- D8% (5)
Community Discussion
No community discussion yet for this question.