LPI
202-400 · 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
(41 responses)- A2% (1)
- B76% (31)
- C12% (5)
- D2% (1)
- E7% (3)
Community Discussion
No community discussion yet for this question.