29.15. 防火墙组规则集
设置防火墙规则属性
使用方法:
| 值 | 概述 |
|---|---|
| <firewall-rule> | 设定的防火墙规则(名称或 id) |
| 值 | 概述 |
|---|---|
| --share | 共享要在所有项目中使用的防火墙规则(默认情况下,限制当前项目使用)。 |
| --no-source-ip-address | 分离源 IP 地址 |
| --source-ip-address <source-ip-address> | 源 IP 地址或子网 |
| --ip-version <ip-version> | 设置 ip 版本 4 或 6 (默认为 4) |
| --private | 限制将防火墙规则限制到当前项目。此选项已弃用,并将在 R 发行版本中删除。 |
| --no-source-port | 分离源端口号或范围 |
| --name <name> | 防火墙规则的名称 |
| --enable-rule | 启用此规则(默认启用) |
| --destination-port <destination-port> | 目标端口号或范围(整数为 [1, 65535] 或范围,如 123:456) |
| --source-port <source-port> | 源端口号或范围(整数为 [1, 65535] 或范围,如 123:456) |
| --disable-rule | 禁用这个规则 |
| --no-share | 限制对当前项目的防火墙规则的使用 |
| --no-destination-port | 分离目标端口号或范围 |
| --no-destination-ip-address | 分离目的地 IP 地址 |
| --destination-ip-address <destination-ip-address> | 目标 IP 地址或子网 |
| -h, --help | 显示帮助信息并退出 |
| --description <description> | 防火墙规则的描述 |
| --protocol {tcp,udp,icmp,any} | 防火墙规则的协议 |
| --action {allow,deny,reject} | 防火墙规则的操作 |
| --public | 将防火墙策略设为公共,允许它在所有项目中使用(而不是默认值),这是限制其对当前项目的使用。这个选项已弃用,并将在 R Release 中删除 |