The pfs command enables PFS when the local end initiates IPSec tunnel negotiation.
The undo pfs command disables PFS when the local end initiates IPSec tunnel negotiation.
By default, PFS is not used when the local end initiates IPSec tunnel negotiation.
pfs { dh-group1 | dh-group2 | dh-group5 | dh-group14 | dh-group15 | dh-group16 | dh-group18 | dh-group19 | dh-group20 | dh-group21 | dh-group24 }
undo pfs
| Parameter | Description | Value |
|---|---|---|
dh-group1 |
Uses the 768-bit DH group. |
- |
dh-group2 |
Uses the 1024-bit DH group. |
- |
dh-group5 |
Uses the 1536-bit DH group. |
- |
dh-group14 |
Uses the 2048-bit DH group. |
- |
dh-group15 |
Uses the 3072-bit DH group. |
- |
dh-group16 |
Uses the 4096-bit DH group. |
- |
dh-group18 |
Uses the 8192-bit DH group. |
- |
dh-group19 |
Uses the 256-bit Elliptic Curve Groups modulo a Prime (ECP) DH group. |
- |
dh-group20 |
Uses the 384-bit ECP DH group. |
- |
dh-group21 |
Uses the 521-bit ECP DH group. |
- |
dh-group24 |
Uses the 2048-bit DH group that includes a 256-bit sub-group. |
- |
Usage Scenario
When the local end initiates negotiation, there is an additional DH exchange in IKEv1 phase 2 or IKEv2 CREATE_CHILD_SA exchange. The additional DH exchange ensures security of the IPSec SA key and improves communication security.
Precautions
By default, the device does not support the dh-group1, dh-group2, and dh-group5 parameters. To use these parameters, install the weak security algorithm component package (product_version_WEAKEA.mod). For details, see Dynamic Loading. The dh-group1, dh-group2, and dh-group5 have potential security risks. The other DH groups are recommended.
The dh-group18 algorithm is complex and time-consuming. If the IPSec SA aging time is short, IPSec SA re-negotiation may fail. Therefore, when configuring dh-group18, increase the IPSec SA aging time. The default IPSec SA aging time 3600s is recommended.
Security Policy Mode on the Local and Remote Ends |
Description |
|---|---|
IPSec policy in ISAKMP mode on both ends |
The DH groups specified on the two ends must be the same; otherwise, the IPSec SA negotiation fails. |
IPSec policy in ISAKMP mode on one end and IPSec policy configured using an IPSec policy template on the other end |
|
IPSec profile on both ends |
The DH groups specified on the two ends must be the same; otherwise, the IPSec SA negotiation fails. |