hosts.deny
时间: 2023-09-08 22:15:33 浏览: 254
linux ip访问限制
hosts.deny是一个用于限制访问的配置文件。要关闭wrappers,只需将hosts.allow和hosts.deny文件改成其他文件名即可。一般来说,/etc/hosts.allow的设定优先级高于/etc/hosts.deny,因此只有hosts.allow文件就足够了。hosts.deny文件中可以使用规则来限制特定服务的访问。例如,可以在hosts.deny文件中设置限制所有的ssh服务,除非是从218.64.87.0-127这个网段上来的IP地址。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【TCP wrappers】关于/etc/hosts.allow /etc/hosts.deny](https://blog.csdn.net/michaelwoshi/article/details/121388085)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Linux hosts.allow与hosts.deny文件设置](https://blog.csdn.net/ichen820/article/details/113371247)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文