Created on
09-24-2024
05:25 AM
Edited on
04-22-2025
10:58 AM
By
Stephen_G
Description | This article describes how to troubleshoot the IPSec SAML Dial-up tunnel if it fails to connect. |
Scope | FortiGate, FortiClient. |
Solution |
For initial deployment, review Technical Tip: How to configure Microsoft Entra ID SAML authentication for Dial-up IPsec VPN.
If the dial-up tunnel fails to connect, there could be multiple reasons.
diagnose vpn ike log-filter dst-addr4 x.x.x.x diagnose debug console timestamp enable diagnose debug app authd 60 diagnose debug app fnbamd -1 diagnose debug application eap_proxy -1 diagnose debug enable
For v7.4.0 and above, there is a slight change in the command as below:
diagnose vpn ike log filter rem-addr4 x.x.x.x <----- x.x.x.x is client public IP. diagnose debug console timestamp enable diagnose debug app authd 60 diagnose debug app fnbamd -1 diagnose debug application eap_proxy -1 diagnose debug enable
Note: It is a best practice to clear the filter before running the debugs. To clear the filter, enter the following command:
diagnose vpn ike log-filter clear
For v7.4.0 and above,
diagnose vpn ike log filter clear
After the test, press 'ctrl+c', and enter 'diagnose debug disable' to stop the debugging.
Initiate the SAML connection and review if SAML authentication passed, if logs are stuck, and no IKE logs are found in most cases, the issue is with the remote auth timeout value: Note: Verify that the 'external browser' is disabled on FortiClient. IPsec dial-up does not currently support an external browser, but this support is expected to be added in upcoming versions.
samld_send_common_reply [99]: Attr: 11, 1449, https://login.microsoftonline.com/xxxxxx- send_common_reply [119]: Sent resp: Analyze the following output:
show full sys global | grep remoteauthtimeout
By default value is set to 5, which means 5 seconds, then required to increase in the time according login process as SAML authentication will take more than 5 seconds.
For remoteauth, refer to Technical Tip: Explaining global 'set remoteauthtimeout', user radius 'set timeout', and how they wo....
Related articles: Troubleshooting Tip: Understanding message 'no proposal chosen' in IKE debug logTechnical Tip: IPSec VPN diagnostics – Deep analysis
ike 0:Test-VPN:98620: remote port change 1011 -> 64916 BC3E06FB12E202320000000010000008024000064DEEB75FB51E17E4 CC4418F12683D471877F7194BC1E89C8ED4475012F92726A2803E0374 FB01058D224652A4D8B227FE7F91347FBC447EA441A1A9B3F8 DA565F7AF8D4A9FD ike 0:Test-VPN:98620: sent IKE msg (AUTH_RESPONSE): 2.94.156.100:4500->4.4.54.100:64916, len=128, vrf=0, id=f293d467fa21a5a3/ab2ab79bc3e06fb1:00000001
Example of expected log:
808C9B32XCXXXXXAB03AE7D47D8A5552E202308000000040000XXXXXXXX XX8490FC0382ED1EE1FE0E62AAC3EEB02C F2560637F3DC794A039B2818B0AEC707587FC8B53FF573B453F3A9C8AEC9990 02308000000040000002AXXXXXXX 0000000A02F700061A03 20000000040000005030000034B2 A50A9B91C8349B656146899B97FFF 06907674FBCD20BA5CA854835E512BD91E34BF2BC100AD01ED409035C0C52DCA7
To review the auth user group:
show VPN ipsec phase1-interface <VPN Name>
config vpn ipsec phase1-interface set authusrgrp SAML_GRP |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.