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.deny」檔案存在,則只會拒絕存在於「/etc/hosts.deny」檔案的主機名稱透過網路連入。若「/etc/hosts.allow」檔案和「/etc/hosts.deny」檔案都存在,會先檢查「/etc/hosts.allow」檔案,符合的話就允許連入,不符合的話再檢查「/etc/hosts.deny」檔案,符合的話就拒絕連入。若「/etc/hosts.allow」檔案和「/etc/hosts.deny」檔案都不存在,則所有主機都允許連入。
選項 A,不需要傳送 SIGHUP。
選項 B,不需要重啟服務。
選項 C,不需要重新開機。
選項 D,正確。
選項 E,正確,這個算是一個網路框架,程式可以遵循這個框架,也可以不遵循這個框架。
