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.


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.
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
| Consideration | PFS enabled | PFS disabled | Decision point |
|---|---|---|---|
| New key material | Fresh DH exchange for Phase 2 | No fresh DH exchange for Phase 2 | Need independent Phase 2 keys? |
| Key relationship | Phase 2 keys independent of Phase 1 keys | Phase 2 keys depend on Phase 1 keys | Prefer key separation? |
| Compromise impact | Limits exposure of past Phase 2 traffic | Phase 1 compromise may affect Phase 2 keys | Prioritize forward secrecy? |
| Negotiation work | Additional DH computation | Less DH computation | Balance security and processing |
| Peer requirement | Both peers must match PFS settings | Both peers must match PFS settings | Coordinate both endpoints |
| DH group | Must use a mutually supported group | No Phase 2 PFS group required | Check peer support |
| Compatibility | May fail if peer settings differ | May work with peers that do not use PFS | Check interoperability |
| Best fit | Security-focused VPNs | Compatibility-focused setups | Choose by policy and peer capability |
Compiled November 2026; check the provider's site for current details.
| 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.
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.
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
| Setting | Purpose | Choose when | Peer must match |
|---|---|---|---|
| PFS enabled | Adds a fresh DH exchange for Phase 2 | Forward secrecy is required | Yes |
| PFS disabled | Omits the Phase 2 DH exchange | Peer or policy does not support PFS | Yes |
| DH group | Defines the Phase 2 key exchange group | PFS is enabled | Yes |
| Phase 2 proposal | Sets supported encryption and authentication | Defining Phase 2 protection | Yes |
| Phase 2 selectors | Defines protected traffic | Restricting tunnel traffic | Yes |
| Phase 1 settings | Establishes the IKE association | Creating the VPN foundation | Must be compatible |
| CLI configuration | Sets VPN parameters through commands | Using FortiGate command-line setup | Verify saved values |
| GUI configuration | Sets VPN parameters through the interface | Using FortiGate graphical setup | Verify 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.
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
| Symptom | Likely mismatch | What to check | Next step |
|---|---|---|---|
| Phase 2 fails to establish | PFS enabled on one peer only | PFS setting on both peers | Match the settings |
| DH negotiation fails | Different DH groups | Phase 2 DH group on both peers | Select a shared group |
| Phase 2 proposal fails | Encryption or authentication mismatch | Phase 2 proposals | Configure compatible proposals |
| Tunnel is up but traffic fails | Phase 2 selectors differ | Local and remote selectors | Align protected networks |
| VPN works without PFS only | Peer lacks compatible PFS support | Peer capability and configuration | Confirm support or disable PFS |
| Failure follows a change | Unsaved or incorrect configuration | Active Phase 2 settings | Review and apply changes |
| Intermittent negotiation issue | Peer configurations are inconsistent | Both endpoints’ Phase 2 settings | Compare settings side by side |
| No clear cause | Negotiation details are missing | FortiGate VPN logs | Review 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.
