小编Nee*_*raj的帖子

如何使用firewalld命令将多个接口添加到受信任区域?

我使用以下命令添加特定接口作为受信任区域

firewall-cmd --zone=trusted --change-interface=eth0
Run Code Online (Sandbox Code Playgroud)

现在假设我有多个接口(如 eth0、eth1、bond0、bond1),并且我想通过执行在 bash 脚本中编写的上述命令将所有接口添加一次。

通过执行一次上述命令来添加所有接口的语法和命令是什么?

linux networking scripting rhel firewalld

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

firewalld ×1

linux ×1

networking ×1

rhel ×1

scripting ×1