差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:commands:network:firewall-cmd [2022/09/13 08:32] – [参考文献] ともやん | linux:commands:network:firewall-cmd [2025/02/21 12:16] (現在) – [サービスで許可されるポートを調べる] ともやん | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== firewalld(Fedora) ====== | + | ====== firewalld (Linux) ====== |
| firewall-cmd は firewalld パッケージに含まれている。 | firewall-cmd は firewalld パッケージに含まれている。 | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo dnf install firewalld | + | <font color="# |
| </ | </ | ||
| </ | </ | ||
| - | ===== 定義済みゾーンの確認 ===== | + | ===== 定義済みゾーンの確認 |
| + | Fedora 36\\ | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --get-zones | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 17: | 行 18: | ||
| </ | </ | ||
| - | ===== デフォルトゾーンの確認 ===== | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --get-default-zone | + | <font color="# |
| + | </ | ||
| + | <WRAP color_result_long>< | ||
| + | FedoraServer | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: cockpit dhcpv6-client ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | FedoraWorkstation (active) | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: wlp2s0 | ||
| + | sources: | ||
| + | services: dhcpv6-client mdns samba-client ssh vnc-server | ||
| + | ports: 1025-65535/ | ||
| + | protocols: | ||
| + | forward: no | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | block | ||
| + | target: %%REJECT%% | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | dmz | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | drop | ||
| + | target: DROP | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | external | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: yes | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | home | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcpv6-client mdns samba-client ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | internal | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcpv6-client mdns samba-client ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | libvirt | ||
| + | target: ACCEPT | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcp dhcpv6 dns ssh tftp | ||
| + | ports: | ||
| + | protocols: icmp ipv6-icmp | ||
| + | forward: no | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | rule priority=" | ||
| + | |||
| + | nm-shared | ||
| + | target: ACCEPT | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcp dns ssh | ||
| + | ports: | ||
| + | protocols: icmp ipv6-icmp | ||
| + | forward: no | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | rule priority=" | ||
| + | |||
| + | public | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcpv6-client mdns ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | trusted | ||
| + | target: ACCEPT | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | work | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcpv6-client mdns ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Ubuntu 22.04.1 LTS\\ | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | <font color="# | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | block dmz drop external home internal nm-shared public trusted work | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | <font color="# | ||
| + | </ | ||
| + | <WRAP color_result_long>< | ||
| + | block | ||
| + | target: %%REJECT%% | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | dmz | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | drop | ||
| + | target: DROP | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | external | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: yes | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | home | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcpv6-client mdns samba-client ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | internal | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcpv6-client mdns samba-client ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | nm-shared | ||
| + | target: ACCEPT | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcp dns ssh | ||
| + | ports: | ||
| + | protocols: icmp ipv6-icmp | ||
| + | forward: no | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | rule priority=" | ||
| + | |||
| + | public (active) | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: enp1s0 | ||
| + | sources: | ||
| + | services: dhcpv6-client ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | trusted | ||
| + | target: ACCEPT | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | work | ||
| + | target: default | ||
| + | icmp-block-inversion: | ||
| + | interfaces: | ||
| + | sources: | ||
| + | services: dhcpv6-client ssh | ||
| + | ports: | ||
| + | protocols: | ||
| + | forward: yes | ||
| + | masquerade: no | ||
| + | forward-ports: | ||
| + | source-ports: | ||
| + | icmp-blocks: | ||
| + | rich rules: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== デフォルトゾーンとアクティブゾーンの確認 ===== | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | <font color="# | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | FedoraWorkstation | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | <font color="# | ||
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| FedoraWorkstation | FedoraWorkstation | ||
| + | interfaces: wlp2s0 | ||
| </ | </ | ||
| </ | </ | ||
| - | <WRAP left round tip 95%> | + | <WRAP left round tip 95% minfont_12> |
| はじめに__デフォルトゾーンの確認を行っておくことは重要__です。\\ | はじめに__デフォルトゾーンの確認を行っておくことは重要__です。\\ | ||
| < | < | ||
| 行 35: | 行 420: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --get-default-zone | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 41: | 行 426: | ||
| </ | </ | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --list-services | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 47: | 行 432: | ||
| </ | </ | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --zone=FedoraWorkstation --list-services | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 53: | 行 438: | ||
| </ | </ | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --zone=FedoraServer --list-services | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 63: | 行 448: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --get-default-zone | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 69: | 行 454: | ||
| </ | </ | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --get-active-zones | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 78: | 行 463: | ||
| </ | </ | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --zone=FedoraServer --change-interface=enp8s0 | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 84: | 行 469: | ||
| </ | </ | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --get-active-zones | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 94: | 行 479: | ||
| </ | </ | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --list-services | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 114: | 行 499: | ||
| </ | </ | ||
| - | ===== デフォルトゾーンの変更 ===== | + | ===== デフォルトゾーンとアクティブゾーンの変更 ===== |
| - | workゾーンへ変更 | + | デフォルトゾーンを FedoraServer |
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --set-default-zone=work | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | success | ||
| </ | </ | ||
| - | </ | ||
| - | |||
| - | すべてのアクセスを許可するtrustedゾーンへ変更 | ||
| - | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --set-default-zone=trusted | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | FedoraServer | ||
| </ | </ | ||
| - | </ | ||
| - | ※これらの変更はすぐに反映される。 | ||
| - | |||
| - | ===== アクティブゾーンの確認 ===== | ||
| - | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --get-active-zones | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| - | FedoraServer | + | FedoraWorkstation |
| - | interfaces: | + | interfaces: |
| </ | </ | ||
| </ | </ | ||
| - | + | ※デフォルトゾーンを変更してもアクティブゾーンが変更される訳ではない🤔\\ | |
| - | ===== アクティブゾーンの変更 | + | これらの変更はすぐに反映される🤔\\ |
| + | \\ | ||
| + | アクティブゾーンを FedoraServer へ変更\\ | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --zone=work --change-interface=ens33 | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | success | ||
| + | </ | ||
| + | <WRAP color_command>< | ||
| + | <font color="# | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | FedoraServer | ||
| + | interfaces: wlp2s0 | ||
| </ | </ | ||
| </ | </ | ||
| 行 157: | 行 545: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --list-services | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 167: | 行 555: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --list-ports | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 177: | 行 565: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --get-services | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 187: | 行 575: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --permanent --add-service=ssh | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | success | ||
| </ | </ | ||
| </ | </ | ||
| 行 196: | 行 585: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --permanent --remove-service=ssh | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | success | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 複数サービスの許可を一括で永続的に削除🤤\\ | ||
| + | <WRAP color_term> | ||
| + | <WRAP color_command>< | ||
| + | <font color="# | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | success | ||
| </ | </ | ||
| </ | </ | ||
| 行 205: | 行 605: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --permanent --add-port=22022/ | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | success | ||
| </ | </ | ||
| </ | </ | ||
| 行 214: | 行 615: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --permanent --remove-port=22022/ | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | success | ||
| </ | </ | ||
| </ | </ | ||
| 行 223: | 行 625: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --permanent --add-source=192.168.1.0/ | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | success | ||
| </ | </ | ||
| </ | </ | ||
| 行 233: | 行 636: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --permanent --add-source=192.168.1.0/ | + | <font color="# |
| - | $ sudo firewall-cmd --permanent --add-source=192.168.1.1 --zone=drop | + | |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | success | ||
| + | </ | ||
| + | <WRAP color_command>< | ||
| + | <font color="# | ||
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | success | ||
| </ | </ | ||
| </ | </ | ||
| 行 243: | 行 652: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --list-sources --zone=drop | + | <font color="# |
| 192.168.1.0/ | 192.168.1.0/ | ||
| </ | </ | ||
| 行 253: | 行 662: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --permanent --remove-source=192.168.1.0/ | + | <font color="# |
| - | $ sudo firewall-cmd --permanent --remove-source=192.168.1.1 --zone=drop | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| 行 263: | 行 672: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ sudo firewall-cmd --reload | + | <font color="# |
| </ | </ | ||
| <WRAP color_result>< | <WRAP color_result>< | ||
| + | success | ||
| </ | </ | ||
| </ | </ | ||
| 行 273: | 行 683: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ cat / | + | <font color="# |
| + | </ | ||
| + | <WRAP color_result>< | ||
| + | <font color="# | ||
| + | <font color="# | ||
| + | <font color="# | ||
| + | <font color="# | ||
| + | <font color="# | ||
| + | <font color="# | ||
| </ | </ | ||
| - | <WRAP color_result> | ||
| - | <code xml> | ||
| - | <?xml version=" | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <port protocol=" | ||
| - | </ | ||
| - | </ | ||
| </ | </ | ||
| 行 289: | 行 698: | ||
| <WRAP color_term> | <WRAP color_term> | ||
| <WRAP color_command>< | <WRAP color_command>< | ||
| - | $ firewall-cmd --help | + | <font color="# |
| </ | </ | ||
| <WRAP color_result_long>< | <WRAP color_result_long>< | ||
| 行 310: | 行 719: | ||
| Log Denied Options | Log Denied Options | ||
| --get-log-denied | --get-log-denied | ||
| - | --set-log-denied=<value> | + | --set-log-denied=<value> |
| Set log denied value | Set log denied value | ||
| 行 319: | 行 728: | ||
| Zone Options | Zone Options | ||
| --get-default-zone | --get-default-zone | ||
| - | --set-default-zone=<zone> | + | --set-default-zone=<zone> |
| Set default zone | Set default zone | ||
| --get-active-zones | --get-active-zones | ||
| 行 325: | 行 734: | ||
| --get-services | --get-services | ||
| --get-icmptypes | --get-icmptypes | ||
| - | --get-zone-of-interface=<interface> | + | --get-zone-of-interface=<interface> |
| Print name of the zone the interface is bound to [P] | Print name of the zone the interface is bound to [P] | ||
| - | --get-zone-of-source=<source> | + | --get-zone-of-source=<source> |
| Print name of the zone the source is bound to [P] | Print name of the zone the source is bound to [P] | ||
| --list-all-zones | --list-all-zones | ||
| - | --new-zone=<zone> | + | --new-zone=<zone> |
| - | --new-zone-from-file=<filename> | + | --new-zone-from-file=<filename> |
| Add a new zone from file with optional name [P only] | Add a new zone from file with optional name [P only] | ||
| - | --delete-zone=<zone> Delete an existing zone [P only] | + | --delete-zone=<zone> Delete an existing zone [P only] |
| - | --load-zone-defaults=<zone> | + | --load-zone-defaults=<zone> |
| Load zone default settings [P only] | Load zone default settings [P only] | ||
| - | --zone=<zone> | + | --zone=<zone> |
| | | ||
| - | --info-zone=<zone> | + | --info-zone=<zone> |
| - | --path-zone=<zone> | + | --path-zone=<zone> |
| Policy Options | Policy Options | ||
| 行 346: | 行 755: | ||
| Print currently active policies | Print currently active policies | ||
| --list-all-policies | --list-all-policies | ||
| - | --new-policy=<policy> | + | --new-policy=<policy> |
| Add a new empty policy | Add a new empty policy | ||
| - | --new-policy-from-file=<filename> | + | --new-policy-from-file=<filename> |
| Add a new policy from file with optional name override [P only] | Add a new policy from file with optional name override [P only] | ||
| - | --delete-policy=<policy> | + | --delete-policy=<policy> |
| | | ||
| - | --load-policy-defaults=<policy> | + | --load-policy-defaults=<policy> |
| Load policy default settings | Load policy default settings | ||
| - | --policy=<policy> | + | --policy=<policy> |
| | | ||
| - | --info-policy=<policy> | + | --info-policy=<policy> |
| Print information about a policy | Print information about a policy | ||
| - | --path-policy=<policy> | + | --path-policy=<policy> |
| Print file path of a policy | Print file path of a policy | ||
| IPSet Options | IPSet Options | ||
| --get-ipset-types | --get-ipset-types | ||
| - | --new-ipset=<ipset> --type=<ipset type> [--option=<key>[=<value> | + | --new-ipset=<ipset> --type=<ipset type> [--option=<key>[=<value> |
| Add a new ipset [P only] | Add a new ipset [P only] | ||
| - | --new-ipset-from-file=<filename> | + | --new-ipset-from-file=<filename> |
| Add a new ipset from file with optional name [P only] | Add a new ipset from file with optional name [P only] | ||
| - | --delete-ipset=<ipset> | + | --delete-ipset=<ipset> |
| | | ||
| - | --load-ipset-defaults=<ipset> | + | --load-ipset-defaults=<ipset> |
| Load ipset default settings [P only] | Load ipset default settings [P only] | ||
| - | --info-ipset=<ipset> Print information about an ipset | + | --info-ipset=<ipset> Print information about an ipset |
| - | --path-ipset=<ipset> Print file path of an ipset [P only] | + | --path-ipset=<ipset> Print file path of an ipset [P only] |
| --get-ipsets | --get-ipsets | ||
| - | --ipset=<ipset> --set-description=<description> | + | --ipset=<ipset> --set-description=<description> |
| Set new description to ipset [P only] | Set new description to ipset [P only] | ||
| - | --ipset=<ipset> --get-description | + | --ipset=<ipset> --get-description |
| Print description for ipset [P only] | Print description for ipset [P only] | ||
| - | --ipset=<ipset> --set-short=<description> | + | --ipset=<ipset> --set-short=<description> |
| Set new short description to ipset [P only] | Set new short description to ipset [P only] | ||
| - | --ipset=<ipset> --get-short | + | --ipset=<ipset> --get-short |
| Print short description for ipset [P only] | Print short description for ipset [P only] | ||
| - | --ipset=<ipset> --add-entry=<entry> | + | --ipset=<ipset> --add-entry=<entry> |
| Add a new entry to an ipset [P] | Add a new entry to an ipset [P] | ||
| - | --ipset=<ipset> --remove-entry=<entry> | + | --ipset=<ipset> --remove-entry=<entry> |
| | | ||
| - | --ipset=<ipset> --query-entry=<entry> | + | --ipset=<ipset> --query-entry=<entry> |
| | | ||
| - | --ipset=<ipset> --get-entries | + | --ipset=<ipset> --get-entries |
| List entries of an ipset [P] | List entries of an ipset [P] | ||
| - | --ipset=<ipset> --add-entries-from-file=<entry> | + | --ipset=<ipset> --add-entries-from-file=<entry> |
| Add a new entries to an ipset [P] | Add a new entries to an ipset [P] | ||
| - | --ipset=<ipset> --remove-entries-from-file=<entry> | + | --ipset=<ipset> --remove-entries-from-file=<entry> |
| | | ||
| IcmpType Options | IcmpType Options | ||
| - | --new-icmptype=<icmptype> | + | --new-icmptype=<icmptype> |
| Add a new icmptype [P only] | Add a new icmptype [P only] | ||
| - | --new-icmptype-from-file=<filename> | + | --new-icmptype-from-file=<filename> |
| Add a new icmptype from file with optional name [P only] | Add a new icmptype from file with optional name [P only] | ||
| - | --delete-icmptype=<icmptype> | + | --delete-icmptype=<icmptype> |
| | | ||
| - | --load-icmptype-defaults=<icmptype> | + | --load-icmptype-defaults=<icmptype> |
| Load icmptype default settings [P only] | Load icmptype default settings [P only] | ||
| - | --info-icmptype=<icmptype> | + | --info-icmptype=<icmptype> |
| Print information about an icmptype | Print information about an icmptype | ||
| - | --path-icmptype=<icmptype> | + | --path-icmptype=<icmptype> |
| Print file path of an icmptype [P only] | Print file path of an icmptype [P only] | ||
| - | --icmptype=<icmptype> | + | --icmptype=<icmptype> |
| Set new description to icmptype [P only] | Set new description to icmptype [P only] | ||
| - | --icmptype=<icmptype> | + | --icmptype=<icmptype> |
| Print description for icmptype [P only] | Print description for icmptype [P only] | ||
| - | --icmptype=<icmptype> | + | --icmptype=<icmptype> |
| Set new short description to icmptype [P only] | Set new short description to icmptype [P only] | ||
| - | --icmptype=<icmptype> | + | --icmptype=<icmptype> |
| Print short description for icmptype [P only] | Print short description for icmptype [P only] | ||
| - | --icmptype=<icmptype> | + | --icmptype=<icmptype> |
| | | ||
| - | --icmptype=<icmptype> | + | --icmptype=<icmptype> |
| | | ||
| - | --icmptype=<icmptype> | + | --icmptype=<icmptype> |
| | | ||
| - | --icmptype=<icmptype> | + | --icmptype=<icmptype> |
| List destinations in icmptype [P only] | List destinations in icmptype [P only] | ||
| Service Options | Service Options | ||
| - | --new-service=<service> | + | --new-service=<service> |
| Add a new service [P only] | Add a new service [P only] | ||
| - | --new-service-from-file=<filename> | + | --new-service-from-file=<filename> |
| Add a new service from file with optional name [P only] | Add a new service from file with optional name [P only] | ||
| - | --delete-service=<service> | + | --delete-service=<service> |
| | | ||
| - | --load-service-defaults=<service> | + | --load-service-defaults=<service> |
| Load icmptype default settings [P only] | Load icmptype default settings [P only] | ||
| - | --info-service=<service> | + | --info-service=<service> |
| Print information about a service | Print information about a service | ||
| - | --path-service=<service> | + | --path-service=<service> |
| Print file path of a service [P only] | Print file path of a service [P only] | ||
| - | --service=<service> --set-description=<description> | + | --service=<service> --set-description=<description> |
| Set new description to service [P only] | Set new description to service [P only] | ||
| - | --service=<service> --get-description | + | --service=<service> --get-description |
| Print description for service [P only] | Print description for service [P only] | ||
| - | --service=<service> --set-short=<description> | + | --service=<service> --set-short=<description> |
| Set new short description to service [P only] | Set new short description to service [P only] | ||
| - | --service=<service> --get-short | + | --service=<service> --get-short |
| Print short description for service [P only] | Print short description for service [P only] | ||
| - | --service=<service> --add-port=<portid> | + | --service=<service> --add-port=<portid> |
| Add a new port to service [P only] | Add a new port to service [P only] | ||
| - | --service=<service> --remove-port=<portid> | + | --service=<service> --remove-port=<portid> |
| | | ||
| - | --service=<service> --query-port=<portid> | + | --service=<service> --query-port=<portid> |
| | | ||
| - | --service=<service> --get-ports | + | --service=<service> --get-ports |
| List ports of service [P only] | List ports of service [P only] | ||
| - | --service=<service> --add-protocol=<protocol> | + | --service=<service> --add-protocol=<protocol> |
| Add a new protocol to service [P only] | Add a new protocol to service [P only] | ||
| - | --service=<service> --remove-protocol=<protocol> | + | --service=<service> --remove-protocol=<protocol> |
| | | ||
| - | --service=<service> --query-protocol=<protocol> | + | --service=<service> --query-protocol=<protocol> |
| | | ||
| - | --service=<service> --get-protocols | + | --service=<service> --get-protocols |
| List protocols of service [P only] | List protocols of service [P only] | ||
| - | --service=<service> --add-source-port=<portid> | + | --service=<service> --add-source-port=<portid> |
| Add a new source port to service [P only] | Add a new source port to service [P only] | ||
| - | --service=<service> --remove-source-port=<portid> | + | --service=<service> --remove-source-port=<portid> |
| | | ||
| - | --service=<service> --query-source-port=<portid> | + | --service=<service> --query-source-port=<portid> |
| | | ||
| - | --service=<service> --get-source-ports | + | --service=<service> --get-source-ports |
| List source ports of service [P only] | List source ports of service [P only] | ||
| - | --service=<service> --add-helper=<helper> | + | --service=<service> --add-helper=<helper> |
| Add a new helper to service [P only] | Add a new helper to service [P only] | ||
| - | --service=<service> --remove-helper=<helper> | + | --service=<service> --remove-helper=<helper> |
| | | ||
| - | --service=<service> --query-helper=<helper> | + | --service=<service> --query-helper=<helper> |
| | | ||
| - | --service=<service> --get-service-helpers | + | --service=<service> --get-service-helpers |
| List helpers of service [P only] | List helpers of service [P only] | ||
| - | --service=<service> --set-destination=<ipv>:<address> | + | --service=<service> --set-destination=<ipv>:<address> |
| Set destination for ipv to address in service [P only] | Set destination for ipv to address in service [P only] | ||
| - | --service=<service> --remove-destination=<ipv> | + | --service=<service> --remove-destination=<ipv> |
| | | ||
| - | --service=<service> --query-destination=<ipv>:<address> | + | --service=<service> --query-destination=<ipv>:<address> |
| | | ||
| - | --service=<service> --get-destinations | + | --service=<service> --get-destinations |
| List destinations in service [P only] | List destinations in service [P only] | ||
| - | --service=<service> --add-include=<service> | + | --service=<service> --add-include=<service> |
| Add a new include to service [P only] | Add a new include to service [P only] | ||
| - | --service=<service> --remove-include=<service> | + | --service=<service> --remove-include=<service> |
| | | ||
| - | --service=<service> --query-include=<service> | + | --service=<service> --query-include=<service> |
| | | ||
| - | --service=<service> --get-includes | + | --service=<service> --get-includes |
| List includes of service [P only] | List includes of service [P only] | ||
| Options to Adapt and Query Zones and Policies | Options to Adapt and Query Zones and Policies | ||
| --list-all | --list-all | ||
| - | --timeout=<timeval> | + | --timeout=<timeval> |
| a number followed by one of letters ' | a number followed by one of letters ' | ||
| | | ||
| - | --set-description=<description> | + | --set-description=<description> |
| Set new description [P only] [Z] [O] | Set new description [P only] [Z] [O] | ||
| --get-description | --get-description | ||
| --get-target | --get-target | ||
| - | --set-target=<target> | + | --set-target=<target> |
| Set the target [P only] [Z] [O] | Set the target [P only] [Z] [O] | ||
| - | --set-short=<description> | + | --set-short=<description> |
| Set new short description [Z] [O] | Set new short description [Z] [O] | ||
| --get-short | --get-short | ||
| --list-services | --list-services | ||
| - | --add-service=<service> | + | --add-service=<service> |
| Add a service [P] [Z] [O] [T] | Add a service [P] [Z] [O] [T] | ||
| - | --remove-service=<service> | + | --remove-service=<service> |
| | | ||
| - | --query-service=<service> | + | --query-service=<service> |
| | | ||
| --list-ports | --list-ports | ||
| - | --add-port=<portid> | + | --add-port=<portid> |
| Add the port [P] [Z] [O] [T] | Add the port [P] [Z] [O] [T] | ||
| - | --remove-port=<portid> | + | --remove-port=<portid> |
| | | ||
| - | --query-port=<portid> | + | --query-port=<portid> |
| | | ||
| --list-protocols | --list-protocols | ||
| - | --add-protocol=<protocol> | + | --add-protocol=<protocol> |
| Add the protocol [P] [Z] [O] [T] | Add the protocol [P] [Z] [O] [T] | ||
| - | --remove-protocol=<protocol> | + | --remove-protocol=<protocol> |
| | | ||
| - | --query-protocol=<protocol> | + | --query-protocol=<protocol> |
| | | ||
| --list-source-ports | --list-source-ports | ||
| - | --add-source-port=<portid> | + | --add-source-port=<portid> |
| Add the source port [P] [Z] [O] [T] | Add the source port [P] [Z] [O] [T] | ||
| - | --remove-source-port=<portid> | + | --remove-source-port=<portid> |
| | | ||
| - | --query-source-port=<portid> | + | --query-source-port=<portid> |
| | | ||
| --list-icmp-blocks | --list-icmp-blocks | ||
| - | --add-icmp-block=<icmptype> | + | --add-icmp-block=<icmptype> |
| Add an ICMP block [P] [Z] [O] [T] | Add an ICMP block [P] [Z] [O] [T] | ||
| - | --remove-icmp-block=<icmptype> | + | --remove-icmp-block=<icmptype> |
| | | ||
| - | --query-icmp-block=<icmptype> | + | --query-icmp-block=<icmptype> |
| | | ||
| --list-forward-ports List IPv4 forward ports added [P] [Z] [O] | --list-forward-ports List IPv4 forward ports added [P] [Z] [O] | ||
| - | --add-forward-port=port=<portid> | + | --add-forward-port=port=<portid> |
| Add the IPv4 forward port [P] [Z] [O] [T] | Add the IPv4 forward port [P] [Z] [O] [T] | ||
| - | --remove-forward-port=port=<portid> | + | --remove-forward-port=port=<portid> |
| | | ||
| - | --query-forward-port=port=<portid> | + | --query-forward-port=port=<portid> |
| | | ||
| --add-masquerade | --add-masquerade | ||
| 行 555: | 行 964: | ||
| --query-masquerade | --query-masquerade | ||
| --list-rich-rules | --list-rich-rules | ||
| - | --add-rich-rule=<rule> | + | --add-rich-rule=<rule> |
| Add rich language rule ' | Add rich language rule ' | ||
| - | --remove-rich-rule=<rule> | + | --remove-rich-rule=<rule> |
| | | ||
| - | --query-rich-rule=<rule> | + | --query-rich-rule=<rule> |
| | | ||
| added [P] [Z] [O] | added [P] [Z] [O] | ||
| 行 580: | 行 989: | ||
| Options to Adapt and Query Policies | Options to Adapt and Query Policies | ||
| --get-priority | --get-priority | ||
| - | --set-priority=<priority> | + | --set-priority=<priority> |
| Set the priority [P only] [O] | Set the priority [P only] [O] | ||
| --list-ingress-zones | --list-ingress-zones | ||
| List ingress zones that are bound to a policy [P] [O] | List ingress zones that are bound to a policy [P] [O] | ||
| - | --add-ingress-zone=<zone> | + | --add-ingress-zone=<zone> |
| Add the ingress zone to a policy [P] [O] | Add the ingress zone to a policy [P] [O] | ||
| - | --remove-ingress-zone=<zone> | + | --remove-ingress-zone=<zone> |
| | | ||
| - | --query-ingress-zone=<zone> | + | --query-ingress-zone=<zone> |
| Query whether the ingress zone has been adedd to a | Query whether the ingress zone has been adedd to a | ||
| | | ||
| --list-egress-zones | --list-egress-zones | ||
| List egress zones that are bound to a policy [P] [O] | List egress zones that are bound to a policy [P] [O] | ||
| - | --add-egress-zone=<zone> | + | --add-egress-zone=<zone> |
| Add the egress zone to a policy [P] [O] | Add the egress zone to a policy [P] [O] | ||
| - | --remove-egress-zone=<zone> | + | --remove-egress-zone=<zone> |
| | | ||
| - | --query-egress-zone=<zone> | + | --query-egress-zone=<zone> |
| Query whether the egress zone has been adedd to a | Query whether the egress zone has been adedd to a | ||
| | | ||
| 行 603: | 行 1012: | ||
| Options to Handle Bindings of Interfaces | Options to Handle Bindings of Interfaces | ||
| --list-interfaces | --list-interfaces | ||
| - | --add-interface=<interface> | + | --add-interface=<interface> |
| - | Bind the <interface> | + | Bind the <interface> |
| - | --change-interface=<interface> | + | --change-interface=<interface> |
| - | | + | |
| - | --query-interface=<interface> | + | --query-interface=<interface> |
| - | Query whether | + | Query whether |
| - | --remove-interface=<interface> | + | --remove-interface=<interface> |
| - | | + | |
| Options to Handle Bindings of Sources | Options to Handle Bindings of Sources | ||
| --list-sources | --list-sources | ||
| - | --add-source=<source> | + | --add-source=<source> |
| Bind the source to a zone [P] [Z] | Bind the source to a zone [P] [Z] | ||
| - | --change-source=<source> | + | --change-source=<source> |
| | | ||
| - | --query-source=<source> | + | --query-source=<source> |
| Query whether the source is bound to a zone [P] [Z] | Query whether the source is bound to a zone [P] [Z] | ||
| - | --remove-source=<source> | + | --remove-source=<source> |
| | | ||
| Helper Options | Helper Options | ||
| - | --new-helper=<helper> --module=<module> [--family=<family>] | + | --new-helper=<helper> --module=<module> [--family=<family>] |
| Add a new helper [P only] | Add a new helper [P only] | ||
| - | --new-helper-from-file=<filename> | + | --new-helper-from-file=<filename> |
| Add a new helper from file with optional name [P only] | Add a new helper from file with optional name [P only] | ||
| - | --delete-helper=<helper> | + | --delete-helper=<helper> |
| | | ||
| - | --load-helper-defaults=<helper> | + | --load-helper-defaults=<helper> |
| Load helper default settings [P only] | Load helper default settings [P only] | ||
| - | --info-helper=<helper> Print information about an helper | + | --info-helper=<helper> Print information about an helper |
| - | --path-helper=<helper> Print file path of an helper [P only] | + | --path-helper=<helper> Print file path of an helper [P only] |
| --get-helpers | --get-helpers | ||
| - | --helper=<helper> --set-description=<description> | + | --helper=<helper> --set-description=<description> |
| Set new description to helper [P only] | Set new description to helper [P only] | ||
| - | --helper=<helper> --get-description | + | --helper=<helper> --get-description |
| Print description for helper [P only] | Print description for helper [P only] | ||
| - | --helper=<helper> --set-short=<description> | + | --helper=<helper> --set-short=<description> |
| Set new short description to helper [P only] | Set new short description to helper [P only] | ||
| - | --helper=<helper> --get-short | + | --helper=<helper> --get-short |
| Print short description for helper [P only] | Print short description for helper [P only] | ||
| - | --helper=<helper> --add-port=<portid> | + | --helper=<helper> --add-port=<portid> |
| Add a new port to helper [P only] | Add a new port to helper [P only] | ||
| - | --helper=<helper> --remove-port=<portid> | + | --helper=<helper> --remove-port=<portid> |
| | | ||
| - | --helper=<helper> --query-port=<portid> | + | --helper=<helper> --query-port=<portid> |
| | | ||
| - | --helper=<helper> --get-ports | + | --helper=<helper> --get-ports |
| List ports of helper [P only] | List ports of helper [P only] | ||
| - | --helper=<helper> --set-module=<module> | + | --helper=<helper> --set-module=<module> |
| Set module to helper [P only] | Set module to helper [P only] | ||
| - | --helper=<helper> --get-module | + | --helper=<helper> --get-module |
| Get module from helper [P only] | Get module from helper [P only] | ||
| - | --helper=<helper> --set-family={ipv4|ipv6|} | + | --helper=<helper> --set-family={ipv4|ipv6|} |
| Set family for helper [P only] | Set family for helper [P only] | ||
| - | --helper=<helper> --get-family | + | --helper=<helper> --get-family |
| Get module from helper [P only] | Get module from helper [P only] | ||
| 行 664: | 行 1073: | ||
| --get-all-chains | --get-all-chains | ||
| Get all chains [P] | Get all chains [P] | ||
| - | --get-chains {ipv4|ipv6|eb} | + | --get-chains {ipv4|ipv6|eb} |
| Get all chains added to the table [P] | Get all chains added to the table [P] | ||
| - | --add-chain {ipv4|ipv6|eb} | + | --add-chain {ipv4|ipv6|eb} |
| Add a new chain to the table [P] | Add a new chain to the table [P] | ||
| - | --remove-chain {ipv4|ipv6|eb} | + | --remove-chain {ipv4|ipv6|eb} |
| | | ||
| - | --query-chain {ipv4|ipv6|eb} | + | --query-chain {ipv4|ipv6|eb} |
| | | ||
| --get-all-rules | --get-all-rules | ||
| Get all rules [P] | Get all rules [P] | ||
| - | --get-rules {ipv4|ipv6|eb} | + | --get-rules {ipv4|ipv6|eb} |
| Get all rules added to chain in table [P] | Get all rules added to chain in table [P] | ||
| - | --add-rule {ipv4|ipv6|eb} | + | --add-rule {ipv4|ipv6|eb} |
| Add rule to chain in table [P] | Add rule to chain in table [P] | ||
| - | --remove-rule {ipv4|ipv6|eb} | + | --remove-rule {ipv4|ipv6|eb} |
| | | ||
| - | --remove-rules {ipv4|ipv6|eb} | + | --remove-rules {ipv4|ipv6|eb} |
| | | ||
| - | --query-rule {ipv4|ipv6|eb} | + | --query-rule {ipv4|ipv6|eb} |
| | | ||
| chain in table [P] | chain in table [P] | ||
| - | --passthrough {ipv4|ipv6|eb} | + | --passthrough {ipv4|ipv6|eb} |
| Pass a command through (untracked by firewalld) | Pass a command through (untracked by firewalld) | ||
| --get-all-passthroughs | --get-all-passthroughs | ||
| Get all tracked passthrough rules [P] | Get all tracked passthrough rules [P] | ||
| - | --get-passthroughs {ipv4|ipv6|eb} | + | --get-passthroughs {ipv4|ipv6|eb} |
| Get tracked passthrough rules [P] | Get tracked passthrough rules [P] | ||
| - | --add-passthrough {ipv4|ipv6|eb} | + | --add-passthrough {ipv4|ipv6|eb} |
| Add a new tracked passthrough rule [P] | Add a new tracked passthrough rule [P] | ||
| - | --remove-passthrough {ipv4|ipv6|eb} | + | --remove-passthrough {ipv4|ipv6|eb} |
| | | ||
| - | --query-passthrough {ipv4|ipv6|eb} | + | --query-passthrough {ipv4|ipv6|eb} |
| | | ||
| added [P] | added [P] | ||
| 行 707: | 行 1116: | ||
| --list-lockdown-whitelist-commands | --list-lockdown-whitelist-commands | ||
| List all command lines that are on the whitelist [P] | List all command lines that are on the whitelist [P] | ||
| - | --add-lockdown-whitelist-command=<command> | + | --add-lockdown-whitelist-command=<command> |
| Add the command to the whitelist [P] | Add the command to the whitelist [P] | ||
| - | --remove-lockdown-whitelist-command=<command> | + | --remove-lockdown-whitelist-command=<command> |
| | | ||
| - | --query-lockdown-whitelist-command=<command> | + | --query-lockdown-whitelist-command=<command> |
| Query whether the command is on the whitelist [P] | Query whether the command is on the whitelist [P] | ||
| --list-lockdown-whitelist-contexts | --list-lockdown-whitelist-contexts | ||
| List all contexts that are on the whitelist [P] | List all contexts that are on the whitelist [P] | ||
| - | --add-lockdown-whitelist-context=<context> | + | --add-lockdown-whitelist-context=<context> |
| Add the context context to the whitelist [P] | Add the context context to the whitelist [P] | ||
| - | --remove-lockdown-whitelist-context=<context> | + | --remove-lockdown-whitelist-context=<context> |
| | | ||
| - | --query-lockdown-whitelist-context=<context> | + | --query-lockdown-whitelist-context=<context> |
| Query whether the context is on the whitelist [P] | Query whether the context is on the whitelist [P] | ||
| --list-lockdown-whitelist-uids | --list-lockdown-whitelist-uids | ||
| List all user ids that are on the whitelist [P] | List all user ids that are on the whitelist [P] | ||
| - | --add-lockdown-whitelist-uid=<uid> | + | --add-lockdown-whitelist-uid=<uid> |
| Add the user id uid to the whitelist [P] | Add the user id uid to the whitelist [P] | ||
| - | --remove-lockdown-whitelist-uid=<uid> | + | --remove-lockdown-whitelist-uid=<uid> |
| | | ||
| - | --query-lockdown-whitelist-uid=<uid> | + | --query-lockdown-whitelist-uid=<uid> |
| Query whether the user id uid is on the whitelist [P] | Query whether the user id uid is on the whitelist [P] | ||
| --list-lockdown-whitelist-users | --list-lockdown-whitelist-users | ||
| List all user names that are on the whitelist [P] | List all user names that are on the whitelist [P] | ||
| - | --add-lockdown-whitelist-user=<user> | + | --add-lockdown-whitelist-user=<user> |
| Add the user name user to the whitelist [P] | Add the user name user to the whitelist [P] | ||
| - | --remove-lockdown-whitelist-user=<user> | + | --remove-lockdown-whitelist-user=<user> |
| | | ||
| - | --query-lockdown-whitelist-user=<user> | + | --query-lockdown-whitelist-user=<user> |
| Query whether the user name user is on the whitelist [P] | Query whether the user name user is on the whitelist [P] | ||