Skip to main content
vonakho6
New Member
Feb 27, 2026 1:35 PM UTC
Question

SAML, Certificate based phase1, dial up IKEv2 and EAP

Forticlient VPN 7.4.3.1790 (free)

Fortigate 100F 7.4.11

We are doing cert based IKEv1 with xauth and Fortitoken, works fine.

Now im migrating, so i started setting up SAML and IKEv2 with PSK, it worked. From there I wanted to make it certificate base, some EAP config are already in there:

3 replies

Jean-Philippe_P
Staff & Editor
Staff & Editor
Mar 2, 2026 10:02 AM UTC

Hello vonakho6, 

 

Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible. 

Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Staff & Editor
Staff & Editor
Mar 3, 2026 5:37 AM UTC

Hello,

 

We are still looking for an answer to your question.

 

We will come back to you ASAP.

Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Staff & Editor
Staff & Editor
Mar 4, 2026 12:46 PM UTC

Hello again vonakho6,

 

I found this answer, can you tell us if it helps, please?

 

To configure a certificate-based IKEv2 VPN with SAML and EAP on FortiClient and FortiGate, follow these steps:

 

Configuration Steps

  1. FortiGate Configuration:

    • Firewall Policy: Ensure you have a firewall policy that allows traffic from the VPN interface to the internal network. This should include the SAML user group if not already defined in the VPN settings.

      config firewall policy edit 54 set name "SAML-IPSEC" set srcintf "SAML-IPsec" set dstintf "internal2" set action accept set srcaddr "all" set dstaddr "all" set schedule "always" set service "ALL" set groups "OKTA-SAML-IPsec" next end 
    • IKE SAML Server: Configure the IKE SAML server for the FortiOS interface used for the VPN connection.

      config system interface edit "wan1" set ike-saml-server "SAML-Dialup-IPsec" next end 
    • Remote Authentication Timeout: Set the remote authentication timeout value as needed.

      config system global set remoteauthtimeout 120 end 
    • VPN Certificate: Configure the VPN certificate under user settings.

      config user setting set auth-cert "Fortinet_Factory" end 
  2. FortiClient Configuration:

    • VPN Connection: Configure a new Dialup IPsec IKEv2 tunnel on FortiClient. Ensure the SSO port is set accurately, and authentication (EAP) is enabled.

      • VPN Name: SAML-IPSEC
      • Remote Gateway: IP address of the FortiGate
      • Authentication Options: Enable SSO with a customizable port set to 2002
      • IKE Version and Mode: Configure as required
    • Phase1 and Phase2 Configuration: Ensure these are configured correctly to match the FortiGate settings.

  3. Testing and Troubleshooting:

    • Connect to the VPN: Test the connection to ensure everything is working as expected.

    • Debugging: If issues arise, collect and analyze the following debugs on FortiGate:

      diagnose debug reset diagnose debug application samld -1 diagnose debug console timestamp enable diagnose debug application ike -1 diagnose debug application eap_proxy -1 diagnose debug application fnbamd -1 


Follow-ups and Clarification Questions

  • Have you configured the necessary certificates on both FortiGate and FortiClient? Ensure that the certificates are correctly installed and configured for both the server and client.
  • Are there any specific error messages or issues you are encountering during the setup? This information can help in providing more targeted troubleshooting steps.
  • Have you verified the compatibility of the FortiClient version with your FortiGate firmware? Ensure that the versions are compatible to avoid any unexpected issues.
Jean-Philippe - Fortinet Community Team
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT