evroc networking securitygroup addrule
Add a new rule to a securitygroup
Synopsis
Add a new rule to a securitygroup
evroc networking securitygroup addrule [securitygroup_name] [flags]
Options
--direction string The direction of traffic the rule applies to. Can be 'Ingress' or 'Egress'.
--end-port uint If specified, means that the rule applies to all ports from 'port' to 'endPort'.
-h, --help help for addrule
--ip-address-or-cidr string The IP address or block that traffic is allowed to/from. Should not be specified with 'securityGroup' or 'subnet'.
--name string The name of the rule. Must be unique per security group.
--port uint The port the rule applies to. Empty or '0' indicates all ports.
--protocol string The protocol the rule applies to. Can be 'All', 'TCP', 'UDP', or 'ICMP'.
--security-group string The name of the security group that traffic is allowed to/from. Should not be specified with 'subnet' or 'ipAddressOrCIDR'.
--subnet string The name of the subnet that traffic is allowed to/from. Should not be specified with 'securityGroup' or 'ipAddressOrCIDR'.
Options inherited from parent commands
--config string Path to the evroc config file (default "~/.evroc/config.yaml")
--force-yes Overrides confirmation prompts on destructive actions - use with caution
--json JSON output
SEE ALSO
- evroc networking securitygroup - SecurityGroup management commands