What does the following iptables rule accomplish: <code> iptables A INPUT s 208.77.188.166 d 10.142.232.1 p tcp dport 22 j ACCEPT </code>

What does the following iptables rule accomplish:
<code>
iptables A INPUT s 208.77.188.166 d 10.142.232.1 p tcp dport 22 j ACCEPT
</code>

What does the following iptables rule accomplish:

iptables A INPUT s 208.77.188.166 d 10.142.232.1 p tcp dport 22 j ACCEPT

A.
Accepts traffic on port 22 only from the hosts 208.77.188.166 and 10.142.232.1.

B.
Forwards all requests from the host 10.142.232.1 on port 22 the internal host 208.77.188.166

C.
Forwards all requests from the host 208.77.188.166 on port 22 the internal host 10.142.232.1

D.
Drops traffic on port 22 only from the hosts 208.77.188.166 and 10.142.232.1.



Leave a Reply 3

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


test

test

sure?

how does appending to INPUT chain result in forwarding..?

Kenneth Peiruza

Kenneth Peiruza

Or the question is wrong or all answers are wrong.

It’s close to the option C, but it’s not.

typos

typos

One should most probably read “route” instead of “forward” in answers B and C.