This section provides an example to describe how to configure gateways with fixed IP addresses to establish IPSec VPN tunnels using certificate authentication.
As shown in Figure 1, the enterprise branch and headquarters access the Internet through the FWs. To enhance communication security, the enterprise requires that an IPSec tunnel be established between the branch and headquarters using certificate authentication.
Item |
FW_A |
FW_B |
|---|---|---|
Interface configuration |
Interface number: GigabitEthernet 0/0/1 IP address: 1.1.3.1/24 Security zone: untrust |
Interface number: GigabitEthernet 0/0/1 IP address: 1.1.5.1/24 Security zone: untrust |
Interface number: GigabitEthernet 0/0/3 IP address: 10.1.1.1/24 Security zone: trust |
Interface number: GigabitEthernet 0/0/3 IP address: 10.1.2.1/24 Security zone: trust |
|
IPSec configuration |
Scenario: point-to-point Peer IP address: 1.1.5.1 Authentication method: RSA signature Local ID: IP address Peer ID: IP address |
Scenario: point-to-point Peer IP address: 1.1.3.1 Authentication method: RSA signature Local ID: IP address Peer ID: IP address |
The roadmaps for configuring FW_A and FW_B are the same:
You need to import the local and CA certificates when configuring an IPSec policy.
Access a host or server on the headquarters network from a host on the branch network. The access succeeds.
On FW_A, choose to display the established tunnels. The following tunnel information is displayed:

On FW_B, choose to display the established tunnels. The following tunnel information is displayed:

# acl number 3000 rule permit ip source 10.1.1.0 0.0.0.255 destination 10.1.2.0 0.0.0.255 # ike proposal 1 encryption-algorithm aes-256 dh group2 authentication-algorithm sha2-256 authentication-method rsa-signature integrity-algorithm hmac-sha2-256 prf hmac-sha2-256 # ike peer ike211154039363 ike-proposal 1 local-id-type fqdn local-id test.abc.com remote-address 1.1.2.1 certificate local-filename fw_a.cer # ipsec proposal prop21115403936 esp authentication-algorithm sha2-256 esp encryption-algorithm aes-256 # ipsec policy ipsec2111540396 1 isakmp security acl 3000 ike-peer ike211154039363 proposal prop21115403936 tunnel local applied-interface alias policy1 sa trigger-mode auto # interface GigabitEthernet0/0/3 ip address 10.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 1.1.3.1 255.255.255.0 ipsec policy ipsec2111540396 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # ip route-static 0.0.0.0 0.0.0.0 1.1.3.2 # security-policy rule name policy_ipsec_1 source-zone trust destination-zone untrust source-address 10.1.1.0 mask 255.255.255.0 destination-address 10.1.2.0 mask 255.255.255.0 action permit rule name policy_ipsec_2 source-zone untrust destination-zone trust source-address 10.1.2.0 mask 255.255.255.0 destination-address 10.1.1.0 mask 255.255.255.0 action permit rule name policy_ipsec_3 source-zone untrust destination-zone local source-address 1.1.5.1 mask 255.255.255.255 destination-address 1.1.3.1 mask 255.255.255.255 action permit rule name policy_ipsec_4 source-zone local destination-zone untrust source-address 1.1.3.1 mask 255.255.255.255 destination-address 1.1.5.1 mask 255.255.255.255 action permit
# acl number 3000 rule permit ip source 10.1.2.0 0.0.0.255 destination 10.1.1.0 0.0.0.255 # ike proposal 1 encryption-algorithm aes-256 dh group2 authentication-algorithm sha2-256 authentication-method rsa-signature integrity-algorithm hmac-sha2-256 prf hmac-sha2-256 # ike peer ike41117138841 ike-proposal 1 local-id-type fqdn local-id test.abc.com remote-address 1.1.2.1 certificate local-filename fw_b.cer # ipsec proposal prop2111540184 esp authentication-algorithm sha2-256 esp encryption-algorithm aes-256 # ipsec policy ipsec2111540182 1 isakmp security acl 3000 ike-peer ike41117138841 proposal prop2111540184 tunnel local applied-interface alias policy1 sa trigger-mode auto # interface GigabitEthernet0/0/3 ip address 10.1.2.1 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 1.1.5.1 255.255.255.0 ipsec policy ipsec2111540182 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/3 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/1 # ip route-static 0.0.0.0 0.0.0.0 1.1.5.2 # security-policy rule name policy_ipsec_1 source-zone trust destination-zone untrust source-address 10.1.2.0 mask 255.255.255.0 destination-address 10.1.1.0 mask 255.255.255.0 action permit rule name policy_ipsec_2 source-zone untrust destination-zone trust source-address 10.1.1.0 mask 255.255.255.0 destination-address 10.1.2.0 mask 255.255.255.0 action permit rule name policy_ipsec_3 source-zone untrust destination-zone local source-address 1.1.3.1 mask 255.255.255.255 destination-address 1.1.5.1 mask 255.255.255.255 action permit rule name policy_ipsec_4 source-zone local destination-zone untrust source-address 1.1.5.1 mask 255.255.255.255 destination-address 1.1.3.1 mask 255.255.255.255 action permit