What does the following iptables rule accomplish:

What does the following iptables rule accomplish:
iptables A INPUT d 10.142.232.1 p tcp dport 20:21 j ACCEPT
A. Forwards all traffic not on port 20 or 21 to the host 10.142.232.1.
B. Drops all traffic coming from the host 10.142.232.1 destined for port 20 or 21.
C. Accepts all traffic from the host 10.142.232.1 destined for port 20 or 21.
D. Forwards all traffic on port 20 and 21 to the host 10.142.232.1.

Download Printable PDF. VALID exam to help you PASS.

One thought on “What does the following iptables rule accomplish:

  1. -d = destination
    -s = source
    Answer C can’t be correct

    Accept all input on Port 20:21 for 10.142.232.1

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.