Can ACLs Be Configured Based on Domain Names on an AC?
From V200R006C20, Huawei ACs support the ACL configuration based on domain names.
User ACLs can be configured to control users' network access rights. To control the user access to a domain name, an administrator can query the IP address mapping this domain name and configure users' rights for accessing this IP address. If the domain name maps multiple IP addresses, you can configure a global domain name and control the access rights directly based on the global domain name in ACL rules, reducing maintenance workload of the administrator.
A global domain name can be configured only for user ACLs numbered from 6000 to 6031. ACL rules within the global domain name range are delivered to APs.
- On the CLI
- Create the global domain name weixin.com and set its ID to 1.
<AC> system-view [AC] passthrough-domain name weixin.com id 1
After the global domain name weixin.com is configured, only weixin.com is matched. If the global domain name is set to *.weixin.com, the domain name weixin.com and its all sub-domain names (such as vip.weixin.com and auth.vip.weixin.com) are matched.
- Configure a user ACL and specify domain name information in packets that matches the user ACL.
[AC] acl 6003 [AC-acl-ucl-6003] rule 5 permit tcp destination passthrough-domain weixin.com
- Apply the user ACL to policies such as a simplified traffic policy.
- Create the global domain name weixin.com and set its ID to 1.
- On the web system
- Choose Configuration > Security > ACL > Domain Name Configuration. The Domain Name Configuration page is displayed.
- Click Create, and set Domain name ID and Domain name.
After the global domain name weixin.com is configured, only weixin.com is matched. If the global domain name is set to *.weixin.com, the domain name weixin.com and its all sub-domain names (such as vip.weixin.com and auth.vip.weixin.com) are matched.
- Click OK.
- Choose Configuration > Security > ACL > User ACL Settings. The User ACL Settings page is displayed.
- Click Create, and set ACL name or ACL number. Click OK.
- Select the created ACL and click Add Rule.
- Set Protocol type based on the actual situation. Click Dest domain under Destination and select the configured global domain name. Click OK.
- Apply the user ACL to policies such as a simplified traffic policy.