On the enterprise network shown in Figure 1, the FW functions as the gateway. The FW and devices on networks A and B authenticate each other using certificates. Only the device passing certificate filtering check can set up an IPSec tunnel with the FW and access resources on network C.
A certificate access policy permits the following certificates:
Certificates with the issuer name networkb_ca
Certificates with the subject name cert_ca
This example provides only the configurations related to certificate access policy.
The configuration roadmap is as follows:
Create a certificate attribute group and specify the attributes issuer name and subject name.
Create a certificate access policy and permit the certificates matching the specified attributes.
<sysname> system-view [sysname] sysname FW [FW] pki certificate access-control-policy default deny
[FW] pki certificate attribute-group group
[FW-pki-attribute-group] attribute 1 issuer-name dn equ networkb_ca [FW-pki-attribute-group] attribute 2 subject-name dn equ cert_ca [FW-pki-attribute-group] quit
[FW] pki certificate access-control-policy name policy
[FW-pki-access-policy] rule 1 permit group
After the configurations are complete, only the device matching the certificate attributes (issuer name networkb_ca and subject name cert_ca) can set up an IPSec tunnel with the FW.