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

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


FortiGate VPN PFS means Perfect Forward Secrecy, a security option for IPsec VPN Phase 2. When enabled, the peers perform an additional Diffie-Hellman key exchange to derive fresh keys for the IPsec security association. This helps limit the impact if a previous session key is exposed. For a site-to-site VPN to work, both peers need compatible PFS settings and key exchange groups.
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 behavior by VPN phase
| Aspect | Phase 1 | Phase 2 |
|---|---|---|
| What it establishes | IKE security association | IPsec security association |
| PFS setting applies | No | Yes |
| Uses a DH exchange | Yes | When PFS is enabled |
| Creates keys for | IKE negotiation | IPsec data protection |
| Rekey effect | Renews IKE keys | Can create fresh IPsec keys |
| PFS mismatch concern | Not applicable | Peer settings must match |
| Main configuration area | Phase 1 settings | Phase 2 settings |
| Typical purpose | Protects IKE control traffic | Adds key separation for VPN traffic |
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 does in a FortiGate VPN
An IPsec VPN uses negotiated keys to encrypt traffic. With PFS enabled, FortiGate performs a new Diffie-Hellman exchange when establishing or rekeying the Phase 2 security association, rather than relying only on key material derived from the Phase 1 exchange.
The security benefit is improved separation between keys. If one set of session keys is compromised, PFS is designed to make it harder to use that information to recover other session keys. PFS does not prevent every kind of VPN attack, and it does not replace strong encryption, authentication, secure device management, or timely firmware updates.
In FortiGate configuration, PFS is generally controlled in the Phase 2 proposal settings. The exact interface labels and available options can vary by FortiOS version and VPN type.
PFS and Phase 1 versus Phase 2
Phase 1 establishes the authenticated IKE relationship between VPN peers. Phase 2 negotiates the IPsec security associations that protect traffic between the networks. FortiClient VPN 7.2 Download: Safe Sources and Installation Guide
PFS is a Phase 2 setting. It is associated with a Diffie-Hellman group used for the additional key exchange. It is separate from the Phase 1 DH group, even though both settings involve Diffie-Hellman.
| Setting | Purpose | Where to check |
|---|---|---|
| Phase 1 DH group | Helps establish the IKE security relationship | Phase 1 proposal settings |
| Phase 2 PFS | Requests a fresh key exchange for IPsec security associations | Phase 2 proposal settings |
| Phase 2 DH group | Selects the group used when PFS is enabled | Phase 2 settings on both peers |
For a compatible tunnel, compare the configuration on both devices rather than assuming that matching encryption algorithms are enough. A mismatch in PFS or the selected group can prevent Phase 2 from coming up.
DH group selection considerations
| Choice factor | Lower DH group | Higher DH group |
|---|---|---|
| Security strength | Generally lower | Generally higher |
| Processing cost | Generally lower | Generally higher |
| Negotiation speed | Often faster | Can take longer |
| Peer compatibility | May support more peers | Depends on peer support |
| Configuration requirement | Must match peer | Must match peer |
| Best fit | Compatibility or resource limits | Stronger security when supported |
| Verification step | Check both peers | Check both peers |
Compiled November 2026; check the provider's site for current details. CatVPN: What It Is, How to Evaluate It, and Whether You Should Use It
How to configure FortiGate VPN PFS
Before changing settings, record the current configuration and confirm the required values with the administrator of the remote VPN peer. If the tunnel is business-critical, plan a change window: applying incompatible settings can interrupt traffic.
In the FortiGate GUI, open the relevant IPsec tunnel and locate its Phase 2 settings. Depending on the FortiOS release and tunnel setup, these may appear under the tunnel’s Phase 2 selectors or as a separate Phase 2 entry.
Then:
- Enable PFS if the remote peer supports and requires it.
- Select a supported DH group that matches the remote peer’s Phase 2 configuration.
- Confirm the Phase 2 encryption and authentication proposals also match.
- Save the configuration and check the tunnel status and logs.
FortiOS also supports configuration through the CLI. A typical Phase 2 configuration includes a PFS option and a DH group, but command syntax and accepted group names can differ by version. Use the FortiGate CLI reference for your installed FortiOS release, and verify the tunnel name and existing settings before making changes. Do not copy a configuration blindly from another device. Extension VPN Free Edge: How to Choose and Use One Safely
If the remote peer does not support PFS, or its policy requires PFS to be disabled, configure both ends accordingly. The setting must be compatible. Enabling PFS on only one side commonly causes negotiation failure.
Choosing a DH group
Choose a group supported by both devices and permitted by your organization’s security policy. Do not select a group solely because it has a larger number: support, performance, and the peer’s configuration all matter. Newer FortiOS releases and peer devices may offer different choices.
As a practical approach:
- Prefer a mutually supported group that meets current organizational standards.
- Avoid weak or deprecated options where stronger compatible alternatives are available.
- Check vendor documentation for both VPN endpoints.
- Test the change and monitor CPU use and tunnel stability, especially on smaller appliances or busy gateways.
PFS adds computation during key establishment and rekeying. For most modern deployments, the overhead is manageable, but the right choice depends on device capacity, tunnel volume, and security requirements. Free VPN Extension for Microsoft Edge Browser: What to Know
Troubleshooting FortiGate PFS negotiation failures
| Check | What to compare | Possible issue | Action |
|---|---|---|---|
| PFS enabled | Both Phase 2 peers | Enabled on only one side | Align the setting |
| DH group | Both Phase 2 peers | Groups differ | Select a shared group |
| Phase 2 proposal | Both peers | Encryption or authentication mismatch | Align proposals |
| Phase 1 status | Both peers | IKE negotiation is failing | Resolve Phase 1 first |
| Phase 2 selectors | Both peers | Traffic selectors differ | Align selectors |
| Rekey behavior | Logs and peer settings | Failure appears during rekey | Check PFS and DH settings |
| Configuration scope | Correct Phase 2 entry | Edited a different tunnel entry | Verify the intended entry |
| Negotiation logs | FortiGate and peer logs | Error details are unclear | Review both sides’ logs |
Compiled November 2026; check the provider's site for current details.
Troubleshooting PFS negotiation failures
When a VPN fails after a PFS change, first compare the Phase 2 settings at both ends. Check that PFS is enabled or disabled consistently and that the DH group is identical and supported by each peer.
Also verify that: VPN 360 for Windows 11: Setup, Features, and What to Check
- Phase 2 encryption and authentication proposals overlap.
- The traffic selectors, such as local and remote subnets, match the intended tunnel.
- The Phase 1 connection is established and stable.
- Rekey lifetimes and other relevant IPsec parameters are compatible.
- Logs on both endpoints show the same negotiation attempt and error.
FortiGate VPN event logs and IPsec diagnostics can help identify a proposal mismatch. Exact diagnostic commands vary by FortiOS version, so consult the version-specific Fortinet documentation. If the tunnel was working before a change, restore the recorded settings to recover connectivity, then test one adjustment at a time.
Recommendation
Use PFS when both VPN peers support it and your security policy calls for it. Match the Phase 2 PFS setting and DH group on both devices, choose a mutually supported group that meets current standards, and verify the tunnel after any change.
