nerdexam
LPI

117-202 · Question #51

117-202 Question #51: Real Exam Question with Answer & Explanation

The correct answer is C. iptables -A FORWARD -p tcp -s 192.168.43.12 -d 10.12.34.56 -dport 443 -j ACCEPT. See the full explanation below for the reasoning.

Question

To be able to access the server with the IP address 10.12.34.56 using HTTPS, a rule for iptables has to be written. Given that the client host's IP address is 192.168.43.12, which of the following commands is correct?

Options

  • Aiptables -A FORWARD -p tcp -s 0/0 -d 10.12.34.56 -dport 80 -j ACCEPT
  • Biptables -A FORWARD -p tcp -s 192.168.43.12 -d 10.12.34.56:443 -j ACCEPT
  • Ciptables -A FORWARD -p tcp -s 192.168.43.12 -d 10.12.34.56 -dport 443 -j ACCEPT
  • Diptables -A INPUT -p tcp -s 192.168.43.12 -d 10.12.34.56:80 -j ACCEPT
  • Eiptables -A FORWARD -p tcp -s 0/0 -d 10.12.34.56 -dport 443 -j ACCEPT

Community Discussion

No community discussion yet for this question.

Full 117-202 Practice