Figure 1 shows the network topology. The headquarters of an enterprise has multiple departments including the research department. Local authentication of the FW is used to authenticate employees in each department.
Authenticated users can access the enterprise intranet.
The enterprise has the following requirement: Mobile office users in the research department can obtain an intranet IP address when they are on the move and can access various resources in the enterprise as if they were on a LAN. In addition, to enhance security, certificate and local authentication (certificate-challenge authentication) needs to be used together to authenticate mobile office users. In this case, users need to install client certificates and enter passwords.
To allow mobile office users to access intranet resources in certificate-challenge authentication mode, the administrator must provide the client certificate and user names and passwords. When mobile office users access the virtual gateway, the FW uses the CA certificate issued by the same CA to authenticate the client certificates of mobile office users. Users also need to enter passwords.
Apply for a CA certificate and client certificate from the CA, and import the CA certificate to the FW for authenticating mobile office users.
On the intranet server, create a route to the virtual IP address pool of the mobile office users and issue the client certificate to the mobile office users. Mobile office users install this client certificate in the VPN client. The certificate is used for the FW to authenticate users when they access the SSL VPN virtual gateway.
Upload the CA certificates and client certificates to the pki/public/ directory of the device. sm2.rca.pem and sm2.oca.pem are CA certificates, and sm2.sig.crt.pem and sm2.enc.crt.pem are client certificates. For details about how to import certificates, see "Object Configuration" > "Certificate Configuration" in the Configuration Guide.
<FW> system-view [FW] pki realm sm_sig [FW-pki-realm-sm_sig] quit [FW] pki realm sm_enc [FW-pki-realm-sm_enc] quit [FW]pki import sm2-key-pair sm2.enc.key pem sm2.enc.key.pem exportable password admin@123 [FW]pki import-certificate local realm sm_enc pem filename sm2.enc.crt.pem [FW]pki import sm2-key-pair sm2.sig.key pem sm2.sig.key.pem exportable password admin@123 [FW]pki import-certificate local realm sm_sig pem filename sm2.sig.crt.pem no-check-same-name [FW]pki import-certificate ca filename oca.crt [FW]pki import-certificate ca filena

Start the client and create a connection. Then enter the IP address and port number, select the Chinese cryptographic algorithm, and add the corresponding signature certificate and encryption certificate. For details about how to use the SSL VPN function through client access, see VPN Client Download Description.
# aaa authentication-scheme default authorization-scheme default domain default service-type ssl-vpn internet-access mode password reference user current-domain # interface GigabitEthernet0/0/1 ip address 1.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/2 ip address 10.2.0.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/2 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # v-gateway public ssl version tlsv12 v-gateway public ssl ciphersuit custom aes256-sha aes128-sha v-gateway gateway interface GigabitEthernet0/0/1 private v-gateway gateway alias gateway # #****BEGIN***gateway**1****# v-gateway gateway basic ssl version tlsv12 certificate-server sm2 signature sm2.sig.crt.pem enable certificate-server sm2 encryption sm2.enc.crt.pem enable ssl timeout 5 ssl lifecycle 1440 ssl ciphersuit custom aes256-sha aes128-sha service network-extension enable network-extension keep-alive enable network-extension keep-alive interval 120 network-extension netpool 172.16.1.1 172.16.1.100 255.255.255.0 netpool 172.16.1.1 default network-extension mode manual network-extension manual-route 10.2.0.0 255.255.255.0 security authentication-mode cert-challenge policy-default-action permit vt-src-ip certification cert-anonymous cert-field user-filter subject cn group-filter subject ou client-cert-require enable certification user-cert-filter key-usage any undo public-user enable hostchecker cachecleaner vpndb group /default group /default/research role role default role default condition all role role role role condition all role role network-extension enable #****END****# # security-policy rule name policy01 source-zone untrust destination-zone local destination-address 1.1.1.0 mask 255.255.255.0 service https action permit rule name policy02 source-zone untrust destination-zone trust source-address 172.16.1.0 mask 255.255.255.0 destination-address 10.2.0.0 mask 255.255.255.0 action permit # ip route-static 172.16.1.0 255.255.255.0 GigabitEthernet0/0/1 1.1.1.2 # # The following configurations are saved in the database and are not displayed in the configuration file. user-manage user user0001 domain default password %$%$j@p.U.0bwNQv9nE#tf]G-+"v%$%$ parent-group /default/research v-gateway gateway role role role group /default/research #