Skip to content

xops firewall rule

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

text
Manage complex rules (with source IP)

Usage:
  xops firewall rule [port] [source_ip] [flags]

Flags:
      --clear    Clear all rules of this type
      --drop     使用 DROP
  -h, --help     help for rule
      --reject   使用 REJECT

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)
      --exclude strings    Exclude specified hosts (supports Node ID / alias / IP / User@Host, comma separated or specified multiple times)
  -H, --host string        Target host(s) / alias, comma separated
  -I, --ifile string       Host list file (one host/alias per line)
      --lang string        Interface language (zh/en)
      --log-level string   Set internal diagnostic log level (debug, info, warn, error)
  -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)

MIT License