A correctly formatted entry has been added to /etc/hosts.deny to prevent certain clients from connecting to a service but this is having no effect. What could be the cause of this? (Choose TWO correct answers.)



A. tcpd needs to be sent the HUP signal.
B. The service needs to be restarted.
C. The machine needs to be restarted.
D. There is a conflicting entry in /etc/hosts.allow.
E. The service does not support tcpwrapper.

題解

「/etc/hosts.allow」設定檔可用來設定允許透過網路連入使用服務的主機。若「/etc/hosts.allow」檔案存在,則只會接受存在於「/etc/hosts.allow」檔案內的主機名稱透過網路連入。若「/etc/hosts.deny」檔案存在,則只會拒絕存在於「/etc/hosts.deny」檔案的主機名稱透過網路連入。若「/etc/hosts.allow」檔案和「/etc/hosts.deny」檔案都存在,只會使用「/etc/hosts.allow」檔案。若「/etc/hosts.allow」檔案和「/etc/hosts.deny」檔案都不存在,則所有主機都允許連入。

選項A,不需要傳送SIGHUP。

選項B,不需要重啟服務。

選項C,不需要重新開機。

選項D,正確。

選項E,正確,這個算是一個網路框架,程式可以遵循這個框架,也可以不遵循這個框架。