nerdexam
CompTIA

LX0-102 · Question #225

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

The correct answer is C. Forwards all requests from the host 208.77.188.166 on port 22 the internal host 10.142.232.1. See the full explanation below for the reasoning.

Question

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

Options

  • AAccepts traffic on port 22 only from the hosts 208.77.188.166 and 10.142.232.1.
  • BForwards all requests from the host 10.142.232.1 on port 22 the internal host 208.77.188.166
  • CForwards all requests from the host 208.77.188.166 on port 22 the internal host 10.142.232.1
  • DDrops traffic on port 22 only from the hosts 208.77.188.166 and 10.142.232.1.

How the community answered

(22 responses)
  • A
    18% (4)
  • B
    5% (1)
  • C
    68% (15)
  • D
    9% (2)

Community Discussion

No community discussion yet for this question.

Full LX0-102 Practice