mise bootstrap firewall
- 用法:
mise bootstrap firewall <SUBCOMMAND> - 效果: 只读
- 源代码:
src/cli/bootstrap.rs
从 [bootstrap.linux.firewall] 管理 Linux 主机防火墙
Works with nftables, firewalld, or UFW, and keeps mise's rules separate from other host rules. Over SSH, mise refuses a default incoming policy of deny or reject unless a rule allows the current connection or the config sets allow_lockout = true. Check apply --dry-run before applying a policy to a remote machine.
标志
-h --help— 打印帮助
Examples
Show the firewall's state
mise bootstrap firewall statusShow the policy and rules that would change
mise bootstrap firewall apply --dry-runSubcommands
mise bootstrap firewall apply [-n --dry-run] [-y --yes]mise bootstrap firewall status [-J --json] [--missing]