Перейти к содержанию

Add

nectl firewall rules add

Add a firewall rule

nectl firewall rules add [flags]

Options

  -a, --action string             Action (e.g., DROP, ACCEPT) (required)
  -c, --cookie-value uint         Cookie value (required, cannot be 0) (default 1)
  -d, --destination-ip string     Destination IP address (default: 0.0.0.0/0) (default "0.0.0.0/0")
      --destination-port uint32   Destination port (default: 0, only for TCP/UDP)
  -h, --help                      help for add
  -i, --interface string          VM interface for the rule
      --logging                   Enable logging for the rule (default: false)
  -n, --network-uuid string       Network UUID (required)
  -p, --protocol string           Protocol (e.g., tcp, udp, icmp, ip) (default: ip) (default "ip")
      --protocol-num uint32       Numeric protocol value
  -r, --rule-index uint32         Rule index (default: 0)
  -x, --rule-uuid string          Rule UUID (required
  -s, --source-ip string          Source IP address (default: 0.0.0.0/0) (default "0.0.0.0/0")
      --source-port uint32        Source port (default: 0, only for TCP/UDP)
      --statistics                Enable statistics for the rule (default: false)
  -t, --table string              Table name (e.g., INGRESS_GLOBAL, FORWARDING) (required)

Options inherited from parent commands

      --host string   gRPC server host (default "127.0.0.1")
      --port uint16   gRPC server port (default 30666)

SEE ALSO