Skip to content

xops firewall

Command usage and available options are listed below. Check --help for options supported by your installed version.

text
Multi-backend firewall management tool (firewalld, ufw, iptables, nftables).
Automatically detects the firewall type on the target host.

Usage:
  xops firewall [flags]
  xops firewall [command]

Available Commands:
  list        List rules
  port        Manage port rules (e.g. 80, 8080-8090)
  reload      Reload firewall
  rule        Manage complex rules (with source IP)
  service     Manage service rules (e.g. http, https)
  status      Check firewall status

Flags:
      --exclude strings   Exclude specified hosts (supports Node ID / alias / IP / User@Host, comma separated or specified multiple times)
  -h, --help              help for firewall
  -H, --host string       Target host(s) / alias, comma separated
  -I, --ifile string      Host list file (one host/alias per line)
  -w, --password string   SSH password
      --proto string      Protocol type (tcp/udp) (default "tcp")
      --reload            Reload after operation
  -r, --remove            Remove rule
  -t, --tag strings       Target tags, comma separated or specified multiple times
      --task int          Number of parallel tasks (default 1)
  -u, --user string       SSH username
  -z, --zone string       Firewall zone (firewalld only)

Global Flags:
      --color string       ANSI color output (auto=detect pipe/redirect, never=disable, always=force enable)
      --debug              Enable debug mode (equivalent to --log-level=debug)
      --lang string        Interface language (zh/en)
      --log-level string   Set internal diagnostic log level (debug, info, warn, error)

Use "xops firewall [command] --help" for more information about a command.

MIT License