Skip to main content
michael2406
Explorer
Feb 19, 2025 2:27 PM UTC
Question

FortiGate - Dial-UP-IPSEC Tunnel - Problem with TCP as transport mode

Hello. I want to setup a dial up ipsec vpn tunnel from FortiClient to FortiGate. The tunnel is working with transport mode "udp" and port "500". 

 

When I change the transport mode in phase1-settings to "tcp" or "auto" and than use "tcp" in FortiClient, the FortiClient is running in an timeout. I have tested with local and sso users. Both same beahviour. I also tested different tcp ike-ports in "conf system settings". 

 

Any ideas?

 

FortiGate: 7.4.7

FortiClient: 7.4.2 

8 replies

Toshi_Esumi
SuperUser
SuperUser
Feb 19, 2025 5:34 PM UTC

When I tried the same in similar environment, I encountered the same/similar issue. I opened a ticket to ask TAC. Then got this instruction to enable EAP.
https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-Using-IKEv2-for-a-dial-up-IPsec-tunnel-with/ta-p/229663
I indeed saw "gw validation failed" error in IKE debugging.

After that, it started working.

Toshi

Translate
michael2406
Explorer
Feb 20, 2025 10:20 AM UTC

EAP is already enabled. 

Translate
MZBZ
Staff
Staff
Feb 20, 2025 6:30 AM UTC

Open a TAC ticket with logs according to: https://community.fortinet.com/t5/FortiClient/Troubleshooting-Tip-Collecting-logs-for-addressing-VPN/ta-p/362101

Also include packet captures from client and FortiGate side.

 

Translate
michael2406
Explorer
Feb 20, 2025 10:20 AM UTC

Thank you. FortiGate see FSSO Login than no answer.

FortiClient Log says: "No response from the peer, phase1 retransmit reaches maximum count"

Translate
michael2406
Explorer
Feb 20, 2025 3:11 PM UTC

Here is the log from FortiClient. Interesting thing: Why is it using port 500 even if I change it to tcp and 443?

Bug in FortiClient?

 

msg="No response from the peer, phase1 retransmit reaches maximum count" vpntunnel=test2 locip=192.XXX.XXX.XXX locport=500 remip=XX.XXX.XXX.XXX remport=500

Translate
MZBZ
Staff
Staff
Feb 20, 2025 5:47 PM UTC

Export FortiClient config and confirm the port+proto and check the values under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Fortinet\FortiClient\IPSec\Tunnels 

 

 

Translate
michael2406
Explorer
Feb 21, 2025 6:12 AM UTC

For me both is looking good. 

 

config.pngregistry.png

Translate
MZBZ
Staff
Staff
Feb 22, 2025 3:27 AM UTC

To address this issue, it's necessary to review the FortiGate and FortiClient configurations as well as the IKE debug logs. Because these contain confidential personal information, I strongly recommend opening a TAC ticket. Alternatively, you could share them here publicly, although this is not advisable.

Translate
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