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 | Obfuscation | From / month | Plan | Free plan | Refund | Alipay | UnionPay | Crypto | Website opens in China | Trustpilot | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Turn on manually Shadow | $2.49/mo | 27 months: $59.99 | Yes | 7 days | ✓ | ✓ | ✓ | ✓ | Official site blocked; our special link opens (4.4 s) | 4.2/5 (195 reviews) | |
| Turn on manually Obfuscated Servers / NordWhisper | $3.49/mo | 27 months: $94.23 | No | 30 days | ? | ✗ | ✓ | ✓ | ✗ Blocked | 4.2/5 (51,628 reviews) | |
| ✓ On by default all servers | $3.00/mo | 28 months: $84 | No | 30 days | ✗ | ✗ | ✓ | ✗ | ✗ Blocked | 4.4/5 (29,706 reviews) | |
| ✓ On by default Camouflage, with OpenVPN | See site | See site | No | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.3/5 (31,823 reviews) | |
| Turn on manually Stealth, free plan too | $2.99/mo | 12 months: $35.88 | Yes | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 2.1/5 (1,040 reviews) | |
| Turn on manually StealthVPN / OpenWeb | $12.50/mo | 24 months: $300 | No | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 1.3/5 (110 reviews) | |
| Turn on manually Shadowsocks, OpenVPN only | $2.03/mo | 40 months: $81.2 | No | 30 days | ✗ | ✗ | ✗ | ✗ | ✗ Blocked | 4.2/5 (11,033 reviews) | |
| Turn on manually selected servers | $2.19/mo | 28 months: $61.32 | No | 45 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.0/5 (24,178 reviews) | |
| Turn on manually switch to OpenVPN | $1.69/mo | 60 months: $101.55 | No | 31 days | ? | ? | ✗ | ✓ | ✗ Blocked | 4.4/5 (17,994 reviews) | |
| ✓ On by default TrustTunnel | $2.99/mo | 24 months: $71.76 | Yes | 30 days | ✓ | ✗ | ✓ | ✓ | Official site blocked; our special link opens (3.7 s) | 4.3/5 (290 reviews) | |
| Turn on manually QUIC / Shadowsocks / LWO | $5.61/mo | €5/mo | No | 14 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 3.2/5 (192 reviews) | |
| Turn on manually Stealth / WStunnel | $5.75/mo | 12 months: $69 | Yes | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.7/5 (13,355 reviews) | |
| Turn on manually Scramble, OpenVPN TCP | See site | See site | No | 30 days | ✓ | ✗ | ✗ | ✗ | ✗ Blocked | 4.4/5 (2,695 reviews) | |
| Not listed | $7.08/mo | 12 months: $84.99 | Yes | 30 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.
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
| Comparison | PFS enabled | PFS disabled | Practical effect |
|---|---|---|---|
| New key exchange | Yes | No | Enabled creates fresh key material |
| Relationship to Phase 1 keys | Separate key exchange | Reuses Phase 1 key material | Enabled adds key separation |
| Protection for later traffic | Isolated from earlier key compromise | More dependent on earlier keys | Enabled can limit exposure |
| Rekey behavior | Derives fresh keys during rekey | Does not add PFS key exchange | Depends on configuration |
| Peer compatibility | Must match peer setting | Must match peer setting | Mismatch can prevent negotiation |
| Configuration location | Phase 2 | Phase 2 | Set per IPsec tunnel |
| Operational overhead | Additional key exchange | No additional PFS exchange | Enabled 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.
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
| Setting | What it controls | When to choose it | Peer requirement | Consideration |
|---|---|---|---|---|
| Enabled | PFS for Phase 2 | Stronger key separation is desired | Peer must also enable PFS | Adds a key exchange |
| Disabled | No Phase 2 PFS exchange | Peer does not support PFS | Peer must also disable PFS | Less key separation |
| Diffie-Hellman group | Group used for PFS exchange | PFS is enabled | Group must match | Check both tunnel peers |
| Phase 2 proposal | Encryption and authentication proposal | Configuring IPsec protection | Proposal must be compatible | PFS does not replace proposals |
| Per-tunnel setting | Applies PFS to a Phase 2 entry | Tunnels need different policies | Configure corresponding peer entry | Review each Phase 2 |
| CLI configuration | Sets tunnel parameters by command | Managing configuration in CLI | Keep peer settings aligned | Verify saved configuration |
| GUI configuration | Sets tunnel parameters in interface | Managing configuration in GUI | Keep peer settings aligned | Confirm 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.
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 check | Likely cause | What to compare | Next step |
|---|---|---|---|
| Tunnel fails to negotiate | PFS enabled on one peer only | PFS enabled or disabled | Make both peers match |
| Phase 2 negotiation fails | Different PFS groups | Configured Diffie-Hellman group | Use a mutually supported group |
| VPN drops after a change | Peer settings no longer align | Phase 2 settings on both ends | Restore compatible settings |
| PFS appears inactive | Wrong Phase 2 entry edited | Tunnel and Phase 2 entry | Check the intended entry |
| Proposal negotiation fails | Phase 2 proposals differ | Encryption and authentication proposals | Align supported proposals |
| CLI and GUI differ | Configuration not applied as expected | Active tunnel configuration | Verify the saved settings |
| Issue persists | Additional mismatch or connectivity issue | Full Phase 2 configuration | Review 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.
