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,正确,这个算是一个网络框架,程序可以遵循这个框架,也可以不遵循这个框架。
