The security acl command specifies an ACL to be referenced in an IPSec policy or IPSec policy template.
The undo security acl command cancels the configuration.
By default, an IPSec policy or IPSec policy template does not reference an ACL.
Parameter |
Description |
Value |
|---|---|---|
| ipv6 acl-number | Specifies the number of an IPv6 ACL that is referenced in an IPSec policy. If this parameter is not specified, an IPSec policy references an IPv4 ACL. NOTE:
The device does not support this parameter in manual IPSec policy view. |
The value is an integer that ranges from 3000 to 3999. |
acl-number |
Specifies the number of an ACL. |
The value is an integer that ranges from 3000 to 3999. |
The security acl command references an ACL that defines data flows to be protected by IPSec. In practice, you need to configure rules in an ACL to define data flows to be protected and apply the ACL to an IPSec policy to protect the data flows.
To reference an ACL in an IPSec policy, ensure that rules must be configured in this ACL view and the number of rules configured in this ACL view does not exceed the following specification limits. Otherwise, this ACL cannot be referenced in this IPSec policy.
If an address set is used in a security ACL, only IKEv2 supports this mode and the address set contains at most 15 IP addresses.
<sysname> system-view [sysname] acl number 3100 [sysname-acl-adv-3100] rule permit tcp source 10.1.1.1 0.0.0.0 destination 10.1.1.2 0.0.0.0 [sysname-acl-adv-3100] quit [sysname] ipsec policy policy1 100 manual [sysname-ipsec-policy-manual-policy1-100] security acl 3100