VPN

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

方屿白··9 min
FortiGate VPN PFS: What It Is and How to Configure It

Learn how Perfect Forward Secrecy works in FortiGate VPNs, when to enable it, and how to troubleshoot mismatched settings.

FortiGate VPN PFS means Perfect Forward Secrecy, a security option for IPsec VPNs that uses a new Diffie-Hellman exchange to generate keys for Phase 2 security associations. When enabled, it helps ensure that the compromise of one VPN key does not expose the keys used for other sessions. To work, PFS must be configured compatibly on both VPN peers.

PFS is commonly considered for site-to-site IPsec VPNs and can also be relevant to IPsec remote-access configurations. It is not a replacement for strong encryption, secure authentication, or sound key-management practices. Its value depends on the VPN design, the peers’ capabilities, and the organization’s security requirements.

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.

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 →

PFS enabled vs. disabled

ComparisonPFS enabledPFS disabledPractical effect
New key exchangeYesNoEnabled creates fresh key material
Relationship to Phase 1 keysSeparate key exchangeReuses Phase 1 key materialEnabled adds key separation
Protection for later trafficIsolated from earlier key compromiseMore dependent on earlier keysEnabled can limit exposure
Rekey behaviorDerives fresh keys during rekeyDoes not add PFS key exchangeDepends on configuration
Peer compatibilityMust match peer settingMust match peer settingMismatch can prevent negotiation
Configuration locationPhase 2Phase 2Set per IPsec tunnel
Operational overheadAdditional key exchangeNo additional PFS exchangeEnabled adds negotiation work

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

How PFS works in a FortiGate VPN

An IPsec VPN typically negotiates security in two stages. Phase 1 establishes a secure channel between the peers. Phase 2 negotiates the IPsec security associations that protect traffic between networks or hosts.

Without PFS, a Phase 2 rekey can derive new keys from keying material established earlier. With PFS enabled, the peers perform a new Diffie-Hellman exchange during Phase 2 negotiation or rekeying. That exchange contributes fresh keying material to the new IPsec keys.

The practical security benefit is key separation: if an attacker later obtains a particular VPN key, PFS can make it harder to use that key to recover keys from other exchanges. PFS does not protect traffic if an attacker can compromise an endpoint, obtain the relevant live secrets, or defeat the cryptographic algorithms in use.

PFS and DH groups

PFS uses a Diffie-Hellman group to establish shared secret material. FortiGate configuration options vary by FortiOS release and VPN type, so check the available settings on the device and in its documentation. Best VPN for Warzone: Top Picks for Lower Lag and More Privacy

A stronger group can provide more cryptographic protection, but it may also require more processing. The two peers must support a compatible group for Phase 2 negotiation to succeed.

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

Where to configure PFS

On FortiGate, PFS is configured in the Phase 2 settings of an IPsec tunnel. In the GUI, open the IPsec tunnel configuration, locate its Phase 2 settings, and review the PFS option and DH group selection. The exact menu names and available controls can differ between FortiOS versions.

For a site-to-site tunnel, check the Phase 2 configuration on both FortiGates, or on the FortiGate and its third-party peer. Matching encryption and authentication proposals is also essential. PFS settings alone are not enough to establish a compatible tunnel.

Before changing a production VPN: Best VPN for Streaming in Italy: Top Picks and How to Choose

  • Record the current Phase 1 and Phase 2 settings.
  • Confirm the remote peer supports PFS and the selected DH group.
  • Plan a maintenance window if the change may interrupt traffic.
  • Make the change on both peers and verify the tunnel afterward.
  • Keep a rollback plan in case negotiation fails.

A configuration change may take effect at the next negotiation or rekey, depending on the situation. If the tunnel does not recover, renegotiation or a controlled tunnel restart may be needed, but follow your change-management process.

PFS enabled vs. disabled

Setting Security effect Operational consideration
PFS enabled Uses a fresh DH exchange for Phase 2 key generation or rekeying Adds negotiation work; peers need compatible PFS and DH-group settings
PFS disabled Does not perform that additional Phase 2 DH exchange May be simpler for compatibility, but provides less key separation

Enabling PFS is often a sensible choice when both VPN peers support it and the security policy calls for it. Disabling it may be necessary for compatibility with older or constrained devices, but should be a deliberate decision rather than a troubleshooting shortcut left in place indefinitely.

PFS does not necessarily mean that a fresh DH exchange occurs for every packet. It is associated with establishing or renewing the relevant security associations, not with replacing the encryption key for each individual packet.

FortiGate PFS configuration choices Best VPN for South Africa: Top Picks and How to Choose

SettingWhat it controlsWhen to choose itPeer requirementConsideration
EnabledPFS for Phase 2Stronger key separation is desiredPeer must also enable PFSAdds a key exchange
DisabledNo Phase 2 PFS exchangePeer does not support PFSPeer must also disable PFSLess key separation
Diffie-Hellman groupGroup used for PFS exchangePFS is enabledGroup must matchCheck both tunnel peers
Phase 2 proposalEncryption and authentication proposalConfiguring IPsec protectionProposal must be compatiblePFS does not replace proposals
Per-tunnel settingApplies PFS to a Phase 2 entryTunnels need different policiesConfigure corresponding peer entryReview each Phase 2
CLI configurationSets tunnel parameters by commandManaging configuration in CLIKeep peer settings alignedVerify saved configuration
GUI configurationSets tunnel parameters in interfaceManaging configuration in GUIKeep peer settings alignedConfirm the correct Phase 2

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

Troubleshooting FortiGate VPN PFS

A PFS mismatch is a common cause of failed Phase 2 negotiation. For example, one peer may require PFS while the other has it disabled, or the devices may use different DH groups. Compare both ends rather than changing settings on only one device.

Check these items:

  • PFS is enabled or disabled consistently on both peers.
  • The selected DH group is supported and compatible at both ends.
  • Phase 2 encryption and authentication proposals match.
  • Local and remote encryption domains or traffic selectors align.
  • Phase 1 is established and its proposals are compatible.
  • Firewall policies, routing, and NAT settings allow the intended traffic.

Use FortiGate’s VPN status and event logs to identify whether the failure occurs during Phase 1 or Phase 2. FortiOS diagnostic commands can provide more detail, but command syntax and output can vary by release. Use the diagnostics documented for your version, and avoid leaving verbose debugging enabled longer than needed. Windows Update Blocking VPN Client GlobalProtect: How to Troubleshoot It

If a peer does not support the chosen group, select a mutually supported group that satisfies your security requirements. Do not weaken the configuration without understanding the policy impact. When a tunnel is managed by a third party, coordinate changes with that administrator so both sides are updated together.

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

Choosing a PFS setting

The right setting depends on your security policy, the capabilities of both peers, and the performance requirements of the VPN. For a modern site-to-site IPsec tunnel, enabling PFS with a mutually supported, policy-approved DH group is generally a strong starting point. Follow your organization’s cryptographic standards and Fortinet’s guidance for the specific FortiOS release.

For high-throughput or large-scale VPN deployments, test the configuration under expected load. The additional DH exchange occurs during negotiation or rekeying, but rekey activity can still affect device resources and tunnel stability. Monitor the FortiGate after changes and confirm that rekeys complete successfully.

Troubleshooting FortiGate VPN PFS Best VPN for Russia: How to Choose a Reliable, Safer Option

Symptom or checkLikely causeWhat to compareNext step
Tunnel fails to negotiatePFS enabled on one peer onlyPFS enabled or disabledMake both peers match
Phase 2 negotiation failsDifferent PFS groupsConfigured Diffie-Hellman groupUse a mutually supported group
VPN drops after a changePeer settings no longer alignPhase 2 settings on both endsRestore compatible settings
PFS appears inactiveWrong Phase 2 entry editedTunnel and Phase 2 entryCheck the intended entry
Proposal negotiation failsPhase 2 proposals differEncryption and authentication proposalsAlign supported proposals
CLI and GUI differConfiguration not applied as expectedActive tunnel configurationVerify the saved settings
Issue persistsAdditional mismatch or connectivity issueFull Phase 2 configurationReview logs and peer configuration

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

Recommendation

Enable FortiGate VPN PFS when both peers support compatible settings and your security policy requires the added key separation. Match the Phase 2 PFS and DH-group configuration on both ends, verify successful negotiation, and document any exception where PFS must remain disabled.