nerdexam
LPI

117-303 · Question #35

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

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    81% (21)
  • D
    12% (3)

Community Discussion

No community discussion yet for this question.

Full 117-303 Practice