nerdexam
LPI

117-202 · Question #131

An SSH server is configured to use tcp_wrappers and only hosts from the class C network 192.168.1.0 should be allowed to access it. Which of the following lines would achieve this, when entered…

The correct answer is B. sshd : 192.168.1.0/255.255.255.0 : ALLOW. See the full explanation below for the reasoning.

Question

An SSH server is configured to use tcp_wrappers and only hosts from the class C network 192.168.1.0 should be allowed to access it. Which of the following lines would achieve this, when entered in/etc/hosts.allow?

Options

  • AALLOW: 192.168.1.0/255.255.255.0 : sshd
  • Bsshd : 192.168.1.0/255.255.255.0 : ALLOW
  • C192.168.1.0/255.255.255.0 : ALLOW: sshd
  • Dtcpd: sshd : 192.168.1.0/255.255.255.0 : ALLOW
  • Esshd : ALLOW: 192.168.1.0/255.255.255.0

How the community answered

(62 responses)
  • A
    13% (8)
  • B
    77% (48)
  • C
    2% (1)
  • D
    3% (2)
  • E
    5% (3)

Community Discussion

No community discussion yet for this question.

Full 117-202 Practice