ACLRuleProps
Properties for defining a ACLRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sag-aclrule
Initializer
using AlibabaCloud.SDK.ROS.CDK.Sag;
new ACLRuleProps {
object AclId,
object DestCidr,
object DestPortRange,
object Direction,
object IpProtocol,
object Policy,
object SourceCidr,
object SourcePortRange,
object Description = null,
object DpiGroupIds = null,
object DpiSignatureIds = null,
object Name = null,
object Priority = null,
object Type = null
};
Properties
| Name | Type | Description |
|---|---|---|
AclId | object | Property aclId: Access control ID. |
DestCidr | object | Property destCidr: Destination address, CIDR format and IP address range in IPv4 format. |
DestPortRange | object | Property destPortRange: The destination port range. |
Direction | object | Property direction: The direction of traffic to which the ACL rule applies. |
IpProtocol | object | Property ipProtocol: Protocol, not case sensitive. |
Policy | object | Property policy: Access: accept|drop. |
SourceCidr | object | Property sourceCidr: Source address, CIDR format and IP address range in IPv4 format. |
SourcePortRange | object | Property sourcePortRange: The source port range. |
Description | object | Property description: Rule description information, ranging from 1 to 512 characters. |
DpiGroupIds | object | Property dpiGroupIds: The ID of the application group. |
DpiSignatureIds | object | Property dpiSignatureIds: The ID of the application. |
Name | object | Property name: The name of the ACL rule. |
Priority | object | Property priority: The priority of the ACL rule. |
Type | object | Property type: The type of the ACL rule: Valid values: LAN: The ACL rule controls traffic of private IP addresses. |
AclIdRequired
public object AclId { get; set; }
- Type: object
Property aclId: Access control ID.
DestCidrRequired
public object DestCidr { get; set; }
- Type: object
Property destCidr: Destination address, CIDR format and IP address range in IPv4 format.
DestPortRangeRequired
public object DestPortRange { get; set; }
- Type: object
Property destPortRange: The destination port range.
Valid values: -1 and 1 to 65535. Use the format 1/200 or 80/80. A value of -1/-1 means all ports.
DirectionRequired
public object Direction { get; set; }
- Type: object
Property direction: The direction of traffic to which the ACL rule applies.
Valid values:
- in: inbound. Traffic from an external network to the local branch where the SAG instance is deployed.
- out: outbound. Traffic from the local branch where the SAG instance is deployed to an external network.
IpProtocolRequired
public object IpProtocol { get; set; }
- Type: object
Property ipProtocol: Protocol, not case sensitive.
PolicyRequired
public object Policy { get; set; }
- Type: object
Property policy: Access: accept|drop.
SourceCidrRequired
public object SourceCidr { get; set; }
- Type: object
Property sourceCidr: Source address, CIDR format and IP address range in IPv4 format.
SourcePortRangeRequired
public object SourcePortRange { get; set; }
- Type: object
Property sourcePortRange: The source port range.
Valid values: -1 and 1 to 65535. Use the format 1/200 or 80/80. A value of -1/-1 means all ports.
DescriptionOptional
public object Description { get; set; }
- Type: object
Property description: Rule description information, ranging from 1 to 512 characters.
DpiGroupIdsOptional
public object DpiGroupIds { get; set; }
- Type: object
Property dpiGroupIds: The ID of the application group.
You can enter at most 100 application group IDs at a time. You can call the ListDpiGroups operation to query application group IDs and information about the applications.
DpiSignatureIdsOptional
public object DpiSignatureIds { get; set; }
- Type: object
Property dpiSignatureIds: The ID of the application.
You can enter at most 100 application IDs at a time. You can call the ListDpiSignatures operation to query application IDs and information about the applications.
NameOptional
public object Name { get; set; }
- Type: object
Property name: The name of the ACL rule.
The name must be 2 to 100 characters in length, start with a letter, and can contain digits, periods (.), underscores (_), and hyphens (-).
PriorityOptional
public object Priority { get; set; }
- Type: object
Property priority: The priority of the ACL rule.
A smaller value indicates a higher priority. If multiple rules have the same priority, the rule that is first delivered to the Smart Access Gateway device takes precedence. Valid values: 1 to 100. Default value: 1.
TypeOptional
public object Type { get; set; }
- Type: object
Property type: The type of the ACL rule: Valid values: LAN: The ACL rule controls traffic of private IP addresses.
This is the default value. WAN: The ACL rule controls traffic of public IP addresses.