Skip to main content
Maerre
Explorer III
May 26, 2025 8:11 AM UTC
Question

FortiClient connecting only at the 2nd attempt, 1st always fails - IPSEC DIALUP VPN

Hi Folks,

 

i've deployed 3 ipsec dialup vpn tunnels and i'm facing the same issue for each one of them.

The 1st time of the day you try to connect via forticlient, insert credential and receive the mfa push notification, the connection always fails, at the 2nd try instead, it works; and this happens for all my tunnels.

Is there any particular configuration to be investigated?

Fortigate version is 7.4.7 and forticlient 7.4.0.1658.

I looked for some technical tips workaround but nothing was found.

Is someone else facing the same issue?

 

Thank you

Regards

6 replies

AEK
SuperUser
SuperUser
May 26, 2025 9:10 AM UTC

Hi Maerre

 

Does it happen when you disable token (just for testing)?

Doe it happen with client 7.4.3?

 

You can also use this command sequence to troubleshoot this case.

diagnose vpn ike log filter ...
diagnose debug console timestamp enable
diagnose debug app authd 60
diagnose debug app fnbamd -1
diagnose debug app ike -1
diagnose debug enable

 

Hope it helps.

Translate
AEK
Maerre
MaerreAuthor
Explorer III
Jun 12, 2025 10:12 AM UTC

Hi @AEK ,

 

ran this debugs but nothing helpful, i also searched for some technical tip post but nothing found.
It still doesn't work and the 1st attempt and i've no ideas how to fix it.

Translate
AEK
SuperUser
SuperUser
Jun 12, 2025 1:49 PM UTC

Hi Maerre

Try run the above debug commands, collects the output when it fails, and collect the output when it succeed, then compare.. there must be a difference.

Translate
AEK
TheBongo
New Member
Aug 5, 2025 7:51 AM UTC

This is a bit older post but we experienced the same and there was no "solution" or any info, so I'm just gonna post it here since maybe someone else has the same problem.

We've had the exact same and it turns out for us, this is because of the AlwaysOn Device Tunnel from Microsoft. The first time the FortiClient fails it results in disconnecting the device tunnel. After the devicetunnel is down we can connect with the FortiClient.

 

If the devicetunnel reconnects faster than we connect with the FortiClient, the process repeats.

Translate
AEK
SuperUser
SuperUser
Aug 6, 2025 12:34 PM UTC

Good find. Thanks for sharing, Bongo.

But I wonder which kind of conflict between the two tunnels is causing this.

Translate
AEK
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024