Skip to main content
Visitor III
May 31, 2026
Solved

FortiClient showing timeout while connecting remote gw IP

  • May 31, 2026
  • 9 replies
  • 97 views

When using ipsec-vpn user IKEv1 dial-up VPN. Did all things still same issue

 

also change wan interface still same issue.

 

attached picture of the error. urgent support needed.

 

forticlient version 

7.4.3.4726  

 
 
Best answer by Muttahar_Rehman

dears, its working fine now some other user changed in VIPs and disable port forward and i just change it into specific port forward issue resolved.

thanks all

9 replies

Toshi_Esumi
SuperUser
SuperUser
May 31, 2026

Share us the FortiClient’s Advanced Settings for “VPN” “Phase1” “Phase2”, and FortiGate’s CLI config for “phase1-interface” “phase2-interface” config after masking public IP ports. Showing those “status” messages wouldn’t help anybody figuring out what the problem/cause is. 

Toshi

Visitor III
May 31, 2026

okay sharing

 

Thanks, R3hsec
Visitor III
May 31, 2026


edit "IPSEC-VPN-USERS"
        set type dynamic
        set interface "wan3"
        set local-gw ---
        set mode aggressive
        set peertype any
        set net-device disable
        set mode-cfg enable
        set ipv4-dns-server1 ---
        set proposal aes128-sha256 aes256-sha256
        set comments "VPN: IPSEC-VPN-USERS (Created by VPN wizard)"
        set dhgrp 20 14 5
        set xauthtype auto
        set ipv4-start-ip ----
        set ipv4-end-ip ----
        set ipv4-split-include "VPN-Address-GROUP"
        set save-password enable
        set psksecret ENC 

Thanks, R3hsec
Visitor III
May 31, 2026

edit "IPSEC-VPN-USERS"
        set phase1name "IPSEC-VPN-USERS"
        set proposal aes128-sha256 aes256-sha256
        set dhgrp 20 14 5
        set keepalive enable
        set comments "VPN: IPSEC-VPN-USERS (Created by VPN wizard)"
    next

Thanks, R3hsec
Toshi_Esumi
SuperUser
SuperUser
May 31, 2026

They should find the matching settings: aes256-sha256/dhg 20. 
Are you sure about “wan3” for this incoming interface? And is the local-gw IP matching with the interface’s? I haven’t heard any model that has ‘wan3” interface before.
If you’re sure, sniff on “wan3” interface by filtering with the client public IP. Then if you see incoming packets trying to connect a VPN, you need to run IKE debugging explained in the KB below.
 


Toshi

Visitor III
June 1, 2026

all 4 isp wan part of sdwan

Thanks, R3hsec
sjoshi
Staff
Staff
May 31, 2026

Hi ​@Muttahar_Rehman 

 

You usually see timeout issue with dial up ipsec vpn when there is issue with communication. Since you are using local GW I believe there must be private IP on the FGT interface? Is there upstream router?

Initiate the VPN connection and collect the pcap

diag sniff packet any ‘host x.x.x.x and (port 500 or 4500)’ 4 0 l » where x.x.x.x is the user Public IP from where the VPN connection is initiated

Thanks, Salon
Visitor III
June 1, 2026

okay 

Thanks, R3hsec
June 1, 2026

Hello,

Is This problem one user and all user?

Also if you used full version client, this setting enable → Settings → VPN Option →  Preferred DTLS Tunnel.

When start issues? New config , upgrade.

,

Best Regards


 

Visitor III
June 1, 2026

new its working fine before suddenly happen all users

Thanks, R3hsec
June 1, 2026

Hello,

Please run the commands below. The debug logs collected will help you investigate and identify the root cause of the issue.

 

diagnose vpn ike log filter clear
diagnose vpn ike log filter rem-addr4 <PublicIP of the Host getting disconnected>
diagnose debug console timestamp enable
diagnose debug application ike -1

diagnose debug application fnbamd -1
diagnose debug enable


Best Regards

Muttahar_RehmanAuthorAnswer
Visitor III
June 1, 2026

dears, its working fine now some other user changed in VIPs and disable port forward and i just change it into specific port forward issue resolved.

thanks all

Thanks, R3hsec