firewall开启网段白名单
时间: 2023-10-09 12:09:30 浏览: 194
网站白名单
要在firewall中开启网段白名单,可以使用以下命令:
firewall-cmd --permanent --zone=public --add-rich-rule="rule family="ipv4" source address="网段IP地址" accept"
其中,将"网段IP地址"替换为你想要添加到白名单的网段IP地址。这个命令将在public区域中添加一个规则,允许来自指定网段的IP访问。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [firewall ip白名单设置](https://blog.csdn.net/qq_23936389/article/details/113202729)[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_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文