An IPSec proposal, as part of an IPSec policy or an IPSec profile, defines security parameters for IPSec SA negotiation, including the security protocol, encryption and authentication algorithms, and encapsulation mode. Both ends of an IPSec tunnel must be configured with the same parameters.
The system view is displayed.
An IPSec proposal is created and the IPSec proposal view is displayed.
A security protocol is configured.
By default, an IPSec proposal uses ESP.
If AH is used, you can only configure the AH-specific authentication algorithm because AH only authenticates packets.
Run ah authentication-algorithm { md5 | sha1 | sha2-256 | sha2-384 | sha2-512 | sm3 } *
An AH-specific authentication algorithm is configured.
By default, the AH authentication algorithm is SHA2-256.
When ESP is specified, ESP can encrypt/authenticate, or encrypt and authenticate packets. Configure the ESP-specific authentication or encryption algorithm.
Run esp authentication-algorithm { md5 | sha1 | sha2-256 | sha2-384 | sha2-512 | sm3 } *
An ESP-specific authentication algorithm is configured.
By default, the ESP authentication algorithm is SHA2-256.
Run esp encryption-algorithm { des | 3des | aes-128 | aes-192 | aes-256 | sm4 | aes-128-gcm-128 | aes-192-gcm-128 | aes-256-gcm-128 | aes-128-gmac | aes-192-gmac | aes-256-gmac } *
An ESP-specific encryption algorithm is configured.
By default, the ESP encryption algorithm is AES-256.
When both AH and ESP are used, AH authenticates packets, and ESP can encrypt and authenticate packets. You can choose to configure an AH-specific authentication algorithm, or ESP-specific authentication and encryption algorithms. The device first encapsulates the ESP header, and then the AH header to packets.
An IP packet encapsulation mode is configured.
By default, IPSec uses the tunnel mode to encapsulate IP packets.
Auto-sensing mode: The tunnel mode is used if the device serves as the IKE negotiation initiator. If the device serves as the responder, both the tunnel mode and transport mode can be used.
When IKEv2 is used, the encapsulation modes in all the IPSec proposals configured on the IKE initiator must be the same; otherwise, IKE negotiation fails.
When L2TP over IPSec or GRE over IPSec is configured, a public IP header is added to packets during L2TP or GRE encapsulation. Compared with the transport mode, the tunnel mode adds another public IP header. In tunnel mode, the packet length is longer and packets are more likely to be fragmented. The transport mode is therefore recommended.
Exit the IPSec proposal view.