China Route Planner
FortiGate VPN PFS: What It Is and How to Configure It
VPN

FortiGate VPN PFS: What It Is and How to Configure It

Learn how FortiGate VPN PFS works, when to enable it, and how to configure matching IPsec settings on both peers.

Theo Bernard
· 9 min read
nord-vpn-microsoft-edge
nord-vpn-microsoft-edge

FortiGate VPN PFS means Perfect Forward Secrecy for an IPsec VPN. It uses a new Diffie-Hellman exchange when creating or renewing Phase 2 keys, helping ensure that a later compromise of one key does not expose past VPN traffic protected by other keys. To work, PFS must be configured consistently at both ends of the tunnel.

NordVPN — fast, secure VPN

Editor's pick: NordVPN — fast, secure VPN — Strong encryption, a no-logs policy and apps for every device. 30-day money-back guarantee. Get NordVPN →

Quick comparison of FortiGate VPN PFS choices

ChoicePFS behaviorSecurity effectCompatibility impact
PFS disabledNo fresh DH exchange for Phase 2Less key separationMay suit peers that do not support PFS
PFS enabledPerforms a fresh DH exchange for Phase 2Adds key separationBoth peers must agree on settings
Matching DH groupsUses the same group on both peersEstablishes compatible keysRequired for negotiation
Different DH groupsPeers request different groupsNo compatible key exchangeCan prevent Phase 2 from coming up
PFS with stronger groupUses a stronger DH groupMore robust key agreementCheck peer support
PFS with unsupported groupPeer cannot use the requested groupNo added protection in practiceCan cause negotiation failure

Compiled November 2026; check the provider's site for current details.

VPN prices compared
VPNObfuscationFrom / monthPlanFree planRefundAlipayWeChatUnionPayCryptoWebsite opens in ChinaTrustpilot
ZoogVPNTurn on manually
Shadow
$2.49/mo27 months: $59.99Yes7 days✓✓✓✓Official site blocked; our special link opens (4.4 s)4.2/5 (195 reviews)
NordVPNTurn on manually
Obfuscated Servers / NordWhisper
$3.49/mo27 months: $94.23No30 days?✗✓✓✗ Blocked4.2/5 (51,628 reviews)
ExpressVPN✓ On by default
all servers
$3.00/mo28 months: $84No30 days✗✗✓✗✗ Blocked4.4/5 (29,706 reviews)
Surfshark✓ On by default
Camouflage, with OpenVPN
See siteSee siteNo30 days✗✗✗✓✗ Blocked4.3/5 (31,823 reviews)
Proton VPNTurn on manually
Stealth, free plan too
$2.99/mo12 months: $35.88Yes30 days✗✗✗✓✗ Blocked2.1/5 (1,040 reviews)
Astrill VPNTurn on manually
StealthVPN / OpenWeb
$12.50/mo24 months: $300NoSee site✗✗✗✓✗ Blocked1.3/5 (110 reviews)
Private Internet AccessTurn on manually
Shadowsocks, OpenVPN only
$2.03/mo40 months: $81.2No30 days✗✗✗✗✗ Blocked4.2/5 (11,033 reviews)
CyberGhostTurn on manually
selected servers
$2.19/mo28 months: $61.32No45 days✗✗✗✓✗ Blocked4.0/5 (24,178 reviews)
PureVPNTurn on manually
switch to OpenVPN
$1.69/mo60 months: $101.55No31 days??✗✓✗ Blocked4.4/5 (17,994 reviews)
AdGuard VPN✓ On by default
TrustTunnel
$2.99/mo24 months: $71.76Yes30 days✓✗✓✓Official site blocked; our special link opens (3.7 s)4.3/5 (290 reviews)
MullvadTurn on manually
QUIC / Shadowsocks / LWO
$5.61/mo€5/moNo14 days✗✗✗✓✗ Blocked3.2/5 (192 reviews)
WindscribeTurn on manually
Stealth / WStunnel
$5.75/mo12 months: $69YesSee site✗✗✗✓✗ Blocked4.7/5 (13,355 reviews)
StrongVPNTurn on manually
Scramble, OpenVPN TCP
See siteSee siteNo30 days✓✗✗✗✗ Blocked4.4/5 (2,695 reviews)
LightXtreme 闪连Not listed$7.08/mo12 months: $84.99Yes30 days✓✓✓✓✓ Yes (3.5 s)No page

Prices checked 2026-11-10 on each vendor's pricing page (cheapest long plan, USD). Check the vendor's checkout for the final price.

Obfuscation checked 2026-11-14 on each vendor's site and help center: "on by default" = nothing to set; "turn on manually" = switch protocol or mode in settings; "not listed" = the vendor describes no obfuscation.

Payment methods checked 2026-11-10 on each vendor's payment pages: all 14 take cards and PayPal; ✗ = not listed, ? = the vendor's own pages disagree.

China access: whether the official website opens from mainland China networks (tests the website only, not the VPN connection). Last checked 2026-11-18 01:02 Beijing time.

Trustpilot score and review count checked 2026-11-10.

What PFS does in a FortiGate VPN

An IPsec VPN uses security associations (SAs) to define how traffic is protected. In a typical FortiGate IPsec VPN, Phase 1 establishes the IKE relationship between peers, while Phase 2 creates the SAs that protect the actual traffic.

Without PFS, a Phase 2 rekey can derive fresh traffic keys from existing keying material. With PFS enabled, the peers perform an additional Diffie-Hellman exchange to generate new shared secret material for the rekey. This provides an extra layer of key separation.

PFS is designed to limit the impact of a future key compromise. If an attacker later obtains a particular VPN key, PFS can make it harder to use that key to decrypt traffic protected by earlier, separate keys. It does not protect against compromised endpoints, weak credentials, traffic-analysis exposure, or every possible implementation flaw.

FortiGate VPN PFS: What It Is and How to Configure It: Checklist

Phase 1, Phase 2, and PFS settings

PFS is generally configured as a Phase 2 setting in FortiGate IPsec VPNs. The selected Diffie-Hellman group determines the parameters used for the additional exchange. FortiClient VPN 7.2 Download: Safe Sources, Installation, and Setup

The two peers must agree on the Phase 2 proposal and PFS settings. If one side requires PFS and the other does not, or if they use incompatible Diffie-Hellman groups, Phase 2 negotiation can fail. A tunnel may show Phase 1 as up while carrying no traffic because the Phase 2 SA has not been established.

Setting What it controls What to check
Phase 1 proposal IKE encryption and integrity Must match the peer’s IKE proposal
Phase 2 proposal Protection for VPN traffic Encryption and authentication algorithms must be compatible
PFS Additional key exchange during Phase 2 creation or rekey Enable or disable consistently on both peers
Diffie-Hellman group Parameters for the PFS exchange Choose a group supported by both peers
Key lifetime When an SA is renewed Confirm rekey behavior and timing are compatible

The exact labels and available groups can vary by FortiOS release and VPN configuration. Check the Fortinet documentation for your version and the capabilities of the remote device.

FortiGate IPsec VPN settings by phase

SettingVPN phaseWhat it controlsPeer requirementIf mismatched
EncryptionPhase 1IKE control-channel protectionCompatible proposalPhase 1 negotiation may fail
AuthenticationPhase 1Peer authentication methodCompatible method and credentialsPhase 1 negotiation may fail
DH groupPhase 1Key exchange for IKECompatible groupPhase 1 negotiation may fail
EncryptionPhase 2IPsec data protectionCompatible proposalPhase 2 negotiation may fail
AuthenticationPhase 2IPsec integrity protectionCompatible proposalPhase 2 negotiation may fail
PFSPhase 2Requests fresh key exchangeSame PFS settingPhase 2 negotiation may fail
PFS DH groupPhase 2Group for the fresh exchangeSame supported groupPhase 2 negotiation may fail

Compiled November 2026; check the provider's site for current details. Catvpn Review: What It Is, How It Works, and What to Check

How to configure PFS

Before changing a live tunnel, record its current settings and confirm that you can access both VPN peers. If the tunnel is business-critical, schedule the change for a maintenance window and prepare a rollback plan.

In the FortiGate GUI, the usual workflow is:

  1. Open VPN > IPsec Tunnels.
  2. Edit the relevant tunnel.
  3. Locate the Phase 2 or Phase 2 Selectors settings.
  4. Enable PFS, if the option is available for that configuration.
  5. Select a supported Diffie-Hellman group.
  6. Save the settings and apply the matching configuration on the remote peer.

For a FortiGate-to-FortiGate tunnel, both devices need compatible Phase 2 proposals, PFS settings, and DH groups. For a third-party peer, use its vendor’s configuration guide to map the settings correctly. Names and group numbering can differ between products.

FortiOS also supports configuring IPsec settings through the CLI. Because syntax and available options vary by release, use the command reference for your FortiOS version rather than copying an unverified command. After making changes, check that the tunnel negotiates successfully and that the intended traffic passes through it. Best Free VPN Extensions for Microsoft Edge: What to Know

Choosing a PFS group

A stronger or more computationally demanding DH group can increase the cost of key exchange. The best choice is not simply the group with the largest number: it must be supported by both peers, allowed by your security policy, and suitable for the devices’ performance.

Consider these points when selecting a group:

  • Follow your organization’s cryptographic standards and current security guidance.
  • Use a group supported by both VPN devices and their software versions.
  • Avoid weakening a policy solely to make an outdated peer connect. Plan to update or replace it where possible.
  • Test rekeying as well as initial tunnel establishment, since PFS is relevant when Phase 2 SAs are renewed.
  • Check device CPU usage and tunnel stability under expected traffic conditions.

Do not assume that enabling PFS automatically strengthens every part of the VPN. Review the complete IKE and IPsec configuration, including encryption algorithms, integrity protection, authentication, certificates or pre-shared keys, and software updates.

FortiGate VPN PFS: What It Is and How to Configure It: Key points

Troubleshooting PFS negotiation Free VPN Extension for Microsoft Edge Browser: What to Choose

SymptomLikely issueWhat to compareNext step
Phase 1 is downIKE proposal or credentials mismatchPhase 1 settings on both peersAlign proposals and authentication
Phase 1 is up, Phase 2 is downPhase 2 proposal mismatchEncryption and authenticationAlign Phase 2 proposals
Phase 2 fails with PFS enabledPFS setting differsPFS enabled or disabled on each peerMake the settings match
Phase 2 fails after enabling PFSDH groups differPhase 2 PFS group on each peerSelect a mutually supported group
Tunnel works only with PFS offPeer may not support the selected PFS settingsPeer capabilities and configurationConfirm support or use a compatible group
Tunnel drops during rekeyRekey negotiation settings may differPFS, group, and Phase 2 proposalsAlign settings and test rekey
Configuration appears correctNegotiation details are unclearFortiGate VPN logs and peer logsReview logs for proposal or group errors

Compiled November 2026; check the provider's site for current details.

Troubleshooting FortiGate VPN PFS

If the tunnel stops passing traffic after enabling PFS, start by comparing the Phase 2 settings on both ends. Confirm that PFS is enabled on both peers, that the DH group matches, and that the encryption and integrity proposals are compatible.

Then check the following:

  • Phase 1 is up, but Phase 2 is down: Review Phase 2 selectors, proposals, PFS, and DH group settings.
  • The tunnel works initially but fails during rekeying: Check key lifetimes, rekey timing, and whether both devices support the chosen group.
  • Only some networks can communicate: Verify that Phase 2 selectors and routing match the intended traffic.
  • The GUI settings appear correct: Review VPN event logs and FortiGate diagnostics for negotiation errors, and compare them with logs from the remote peer.

Apply changes to both sides in a coordinated way. If troubleshooting requires a temporary PFS change, treat it as a security-impacting exception, document it, and restore the approved configuration as soon as possible. VPN 360 for Windows 11: How to Install, Use, and Check It Safely

Recommendation

Enable FortiGate VPN PFS when your security policy calls for stronger protection of past traffic against later key compromise, and choose a DH group both peers support. Match the settings on both ends, verify Phase 2 establishment and rekeying, and test the tunnel before relying on the change in production.

© 2026 Wayfarer Lantern Media · Wayfarer Lantern Media Ltd.