< Home

CLI: Configuring Certificate Filtering to Implement Access Control

Network Requirements

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

Figure 1 Configuring certificate filtering to implement access control

This example provides only the configurations related to certificate access policy.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Create a certificate attribute group and specify the attributes issuer name and subject name.

  2. Create a certificate access policy and permit the certificates matching the specified attributes.

Procedure

  1. # Configure the default certificate access control policy action is Deny. That is, the certificate is not allowed to pass verification.

    <sysname> system-view
    [sysname] sysname FW
    [FW] pki certificate access-control-policy default deny
    

  2. # Create a certificate attribute group group.

    [FW] pki certificate attribute-group group

  3. # Specify the issuer name networkb_ca and subject name cert_ca.

    [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

  4. # Create a certificate access policy policy.

    [FW] pki certificate access-control-policy name policy

  5. # Configure the certificate access rule to permit the certificates matching the specified attributes.

    [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.

Configuration Files

#
sysname FW
#
pki certificate access-control-policy default deny
#
pki certificate attribute-group group                                           
 attribute 1 issuer-name dn equ networkb_ca                                     
 attribute 2 subject-name dn equ cert_ca                                        
#                                                                               
pki certificate access-control-policy name policy                               
 rule 1 permit group                                                            
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >