nerdexam
LPI

202-400 · Question #51

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…

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

How the community answered

(42 responses)
  • A
    5% (2)
  • B
    12% (5)
  • C
    81% (34)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 202-400 Practice