遊戲連線站
VPN

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

By 杭予安 · · 9 min
FortiGate VPN PFS: What It Does and How to Configure It

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

nord-vpn-microsoft-edge
nord-vpn-microsoft-edge

FortiGate VPN PFS refers to Perfect Forward Secrecy, an IPsec setting that gives each Phase 2 security association its own key exchange. In practical terms, enabling PFS helps prevent the compromise of one VPN session key from exposing traffic protected by other session keys. Configure it only when the remote VPN peer supports the same setting and Diffie-Hellman (DH) group.

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

ConsiderationPFS enabledPFS disabledDecision point
New key materialFresh DH exchange for Phase 2No fresh DH exchange for Phase 2Need independent Phase 2 keys?
Key relationshipPhase 2 keys independent of Phase 1 keysPhase 2 keys depend on Phase 1 keysPrefer key separation?
Compromise impactLimits exposure of past Phase 2 trafficPhase 1 compromise may affect Phase 2 keysPrioritize forward secrecy?
Negotiation workAdditional DH computationLess DH computationBalance security and processing
Peer requirementBoth peers must match PFS settingsBoth peers must match PFS settingsCoordinate both endpoints
DH groupMust use a mutually supported groupNo Phase 2 PFS group requiredCheck peer support
CompatibilityMay fail if peer settings differMay work with peers that do not use PFSCheck interoperability
Best fitSecurity-focused VPNsCompatibility-focused setupsChoose by policy and peer capability

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 means in a FortiGate VPN

An IPsec VPN negotiates keys and security parameters with its peer. In a typical FortiGate setup, Phase 1 establishes the IKE connection, while Phase 2 creates the IPsec security associations that protect user traffic.

With PFS enabled for Phase 2, the peers perform an additional DH exchange when negotiating or renewing a Phase 2 security association. This creates fresh keying material rather than relying solely on keys derived from the Phase 1 exchange.

PFS is not a separate encryption algorithm. It is a key-management option used alongside settings such as the encryption and authentication algorithms. The selected DH group determines the parameters used for the exchange.

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

Why enable PFS?

PFS improves key separation. If a particular IPsec session key is later exposed, PFS is intended to make it harder to use that key to recover the keys from other Phase 2 sessions. This is especially relevant for organizations with security policies that require fresh key exchanges or limit the impact of key compromise. FortiClient VPN 7.2 Download: Safe Sources and Installation Guide

There are trade-offs. An additional DH exchange uses processing resources and can take more time than reusing Phase 1-derived keying material. The effect is usually most noticeable during tunnel establishment or rekeying, rather than during ordinary data transfer.

PFS does not replace strong encryption, secure authentication, software updates, or sound key management. It is one part of the VPN’s overall security configuration.

Configure PFS on FortiGate

You can configure PFS in the Phase 2 settings for an IPsec tunnel. Menu labels and available options can vary by FortiOS version and by whether the tunnel was created in the GUI or through the CLI.

In the GUI, open the IPsec tunnel’s Phase 2 configuration and look for the PFS setting. Enable it, then select a DH group supported by the remote peer. Save the configuration and verify that the tunnel comes up. CatVPN Explained: Features, Safety, and How to Choose

A CLI configuration commonly uses options like these:

config vpn ipsec phase2-interface
edit "phase2-name"
set pfs enable
set dhgrp 14
next
end

The tunnel name and DH group are examples only. Check your FortiOS version’s command reference and the peer’s configuration before applying changes. Do not assume that a group number is available or appropriate on every device.

When changing a live tunnel, plan for a possible interruption while the peers renegotiate. If the remote gateway is managed by another team or provider, coordinate the change so both sides are updated together.

FortiGate PFS configuration choices Extension VPN Free Edge: How to Choose and Use One Safely

SettingPurposeChoose whenPeer must match
PFS enabledAdds a fresh DH exchange for Phase 2Forward secrecy is requiredYes
PFS disabledOmits the Phase 2 DH exchangePeer or policy does not support PFSYes
DH groupDefines the Phase 2 key exchange groupPFS is enabledYes
Phase 2 proposalSets supported encryption and authenticationDefining Phase 2 protectionYes
Phase 2 selectorsDefines protected trafficRestricting tunnel trafficYes
Phase 1 settingsEstablishes the IKE associationCreating the VPN foundationMust be compatible
CLI configurationSets VPN parameters through commandsUsing FortiGate command-line setupVerify saved values
GUI configurationSets VPN parameters through the interfaceUsing FortiGate graphical setupVerify saved values

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

Match PFS settings on both VPN peers

PFS negotiation requires compatible settings at both ends. The local FortiGate and remote gateway must agree on whether PFS is enabled and on a mutually supported DH group. If they do not, Phase 2 negotiation can fail even when Phase 1 succeeds.

Setting FortiGate side Remote peer
PFS Enabled or disabled Must match
DH group One or more supported groups Must overlap
Phase 2 proposals Compatible encryption and authentication Must overlap
Lifetimes Configured according to the tunnel design Should be coordinated

Some peers allow multiple DH groups, while others require one specific group. When interoperability is the priority, use a strong group supported by both devices and follow the security requirements that apply to your environment. Avoid weakening the configuration simply to make a tunnel connect without first understanding the policy and device limitations.

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

Troubleshooting PFS negotiation

If Phase 1 is up but Phase 2 fails, check PFS alongside the other Phase 2 parameters. Common issues include PFS enabled on only one side, mismatched DH groups, or proposals that have no compatible encryption and authentication combination. Free VPN Extension for Microsoft Edge Browser: How to Choose Safely

Useful checks include:

  • Compare the Phase 2 settings on both peers, including PFS and DH groups.
  • Review FortiGate VPN event logs or IKE debug output for negotiation errors.
  • Confirm that the configured DH group is supported by the FortiGate model, FortiOS release, and remote gateway.
  • Check that the Phase 2 selectors, proposals, and lifetimes are compatible.
  • After making a change, clear or renegotiate the tunnel if necessary, following your change-control process.

A failure message mentioning a proposal mismatch does not always mean PFS is the cause. Investigate the complete Phase 2 proposal set before changing settings. If you use IKE debug commands, collect only the relevant output and disable debugging afterward, since verbose logs can expose operational details and consume resources.

PFS negotiation troubleshooting

SymptomLikely mismatchWhat to checkNext step
Phase 2 fails to establishPFS enabled on one peer onlyPFS setting on both peersMatch the settings
DH negotiation failsDifferent DH groupsPhase 2 DH group on both peersSelect a shared group
Phase 2 proposal failsEncryption or authentication mismatchPhase 2 proposalsConfigure compatible proposals
Tunnel is up but traffic failsPhase 2 selectors differLocal and remote selectorsAlign protected networks
VPN works without PFS onlyPeer lacks compatible PFS supportPeer capability and configurationConfirm support or disable PFS
Failure follows a changeUnsaved or incorrect configurationActive Phase 2 settingsReview and apply changes
Intermittent negotiation issuePeer configurations are inconsistentBoth endpoints’ Phase 2 settingsCompare settings side by side
No clear causeNegotiation details are missingFortiGate VPN logsReview logs for Phase 2 errors

Compiled November 2026; check the provider's site for current details. VPN 360 for Windows 11: What to Know Before You Install

Recommendation

Enable FortiGate VPN PFS when your security policy calls for it and the remote peer supports a compatible DH group. Confirm that both sides match, test the change during a controlled maintenance window, and verify the tunnel and logs afterward. If compatibility or performance is a concern, document the trade-off and choose settings based on the requirements of the entire VPN connection, not the FortiGate configuration alone.

© 2026 Fernhollow Play Media · Fernhollow Play Media Ltd.