Help Center> Virtual Private Network> FAQ> Related Operations on the Console> How Do I Disable the PFS Function When Creating a VPN Connection?

How Do I Disable the PFS Function When Creating a VPN Connection?

You can disable the Perfect Forward Secrecy (PFS) function for some regions on HUAWEI CLOUD. You are advised to enable the PFS function in the on-premises data center, because it improves IKE negotiation security in phase 2.

By default, the PFS function is disabled on some vendors' devices. Check the device configuration manual to ensure that the PFS function is enabled.

  • PFS is a security feature.

    IKE negotiation has two phases, phase one and phase two. The key of phase two (IPsec SA) is derived from the key generated in phase one. Once the key in phase one is disclosed, the security of the IPsec VPN may be adversely affected. To improve the key security, IKE provides the PFS function. After PFS is turned on, an additional DH exchange will be performed during IPsec SA negotiation, and a new IPsec SA key will be generated, improving IPsec SA security.

  • To ensure security, PFS is enabled on HUAWEI CLOUD by default. Ensure that PFS is also enabled on the gateway in the on-premises data center. Otherwise, the negotiation will fail.