evroc networking securitygroup addrule
Add a new rule to a securitygroup
Synopsis
Add a new rule to a securitygroup
evroc networking securitygroup addrule <securitygroup_id> [flags]
Options
--direction string Direction of traffic the rule applies to (Ingress, Egress)
--end-port int If specified, means that the rule applies to all ports from 'port' to 'end-port'
-h, --help help for addrule
--name string The name of the rule. Must be unique per security group.
--port int Port the rule applies to (empty or '0' indicates all ports)
--protocol string Protocol the rule applies to (All, TCP, UDP, ICMP)
--remote-ip-or-cidr string IP address or block that traffic is allowed to/from. Should not be specified with 'security-group' or 'subnet'.
--security-group string Name of the security group that traffic is allowed to/from. Should not be specified with 'remote-ip-or-cidr' or 'subnet'.
--subnet string Name of the subnet that traffic is allowed to/from. Should not be specified with 'remote-ip-or-cidr' or 'security-group'.
Options inherited from parent commands
--config string Path to the evroc config file (default "~/.evroc/config.yaml")
SEE ALSO
- evroc networking securitygroup - Security group management commands