Skip to main content
MohammedBahjat
Explorer
Nov 4, 2026 4:43 PM UTC
Question

Dial-up IPsec VPN fails for a client in Egypt — repeated IKE SA_INIT retransmissions

 

Hello everyone,

I am troubleshooting a dial-up IPsec VPN connection issue affecting one client in Egypt. Our VPN connections work normally for clients in Lebanon, Germany, and Spain.

The affected client is our only client in Egypt, so I cannot confirm whether this affects other users there.

Issue

The client’s initial IKE request reaches our FortiGate. The FortiGate selects a matching proposal and generates an SA_INIT_RESPONSE. However, the client continues retransmitting the initial request, and the FortiGate repeatedly resends its response.

It appears that the response may be getting dropped on the return path, although the firewall logs alone do not confirm where the issue occurs.

Troubleshooting completed

  • Tested three different VPN tunnels using different public IP addresses.

  • Suspected filtering of UDP ports 500/4500 and tested IPsec over TCP on one tunnel, but the connection still failed.

  • The client tested another ISP and a different PC, with the same result.

  • Egypt is allowed in our local-in policy.

  • VPN connections from the other countries mentioned above continue to work normally.

Diagnostic logs

Below is an excerpt from the UDP connection attempt. Public IP addresses, tunnel names, and IKE identifiers have been anonymized.



2026-11-03 16:50:42.015473 ike V=root:0: comes <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500,ifindex=64,vrf=0,len=533....
2026-11-03 16:50:42.015553 ike V=root:0:aaaaaaaaaaaaaaaa/0000000000000000:688: responder received SA_INIT msg
2026-11-03 16:50:42.015644 ike V=root:0:aaaaaaaaaaaaaaaa/0000000000000000:688:         type=DH_GROUP, val=MODP2048.
2026-11-03 16:50:42.015700 ike V=root:0:aaaaaaaaaaaaaaaa/0000000000000000:688: SA proposal chosen, matched gateway <TUNNEL>
2026-11-03 16:50:42.015749 ike V=root:0:<TUNNEL>:688: NAT detected: PEER
2026-11-03 16:50:42.015764 ike V=root:0:<TUNNEL>:688: NAT detected: PEER
2026-11-03 16:50:42.016226 ike V=root:0:<TUNNEL>:688: sent IKE msg (SA_INIT_RESPONSE): <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500, len=416, vrf=0, id=aaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbb, oif=64
2026-11-03 16:50:42 id=65308 trace_id=2 func=print_pkt_detail line=6402 msg="vd-root:0 received a packet(proto=17, <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500) tun_id=0.0.0.0 from local. "
2026-11-03 16:50:44.852862 ike V=root:0: comes <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500,ifindex=64,vrf=0,len=533....
2026-11-03 16:50:44 id=65308 trace_id=3 func=print_pkt_detail line=6402 msg="vd-root:0 received a packet(proto=17, <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500) tun_id=0.0.0.0 from <WAN>. "
2026-11-03 16:50:44.852932 ike V=root:0:<TUNNEL>:688: detected retransmit, resend last message
2026-11-03 16:50:44 id=65308 trace_id=3 func=resolve_ip_tuple_fast line=6510 msg="Find an existing session, id-01a7fa6d, original direction"
2026-11-03 16:50:44.852971 ike V=root:0:<TUNNEL>:688: sent IKE msg (retransmit): <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500, len=416, vrf=0, id=aaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbb, oif=64
2026-11-03 16:50:44 id=65308 trace_id=4 func=print_pkt_detail line=6402 msg="vd-root:0 received a packet(proto=17, <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500) tun_id=0.0.0.0 from local. "
2026-11-03 16:50:44 id=65308 trace_id=4 func=resolve_ip_tuple_fast line=6510 msg="Find an existing session, id-01a7fa6d, reply direction"
2026-11-03 16:50:47.968716 ike V=root:0: comes <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500,ifindex=64,vrf=0,len=533....
2026-11-03 16:50:47 id=65308 trace_id=5 func=print_pkt_detail line=6402 msg="vd-root:0 received a packet(proto=17, <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500) tun_id=0.0.0.0 from <WAN>. "
2026-11-03 16:50:47.968793 ike V=root:0:<TUNNEL>:688: detected retransmit, resend last message
2026-11-03 16:50:47.968831 ike V=root:0:<TUNNEL>:688: sent IKE msg (retransmit): <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500, len=416, vrf=0, id=aaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbb, oif=64
2026-11-03 16:50:47 id=65308 trace_id=6 func=print_pkt_detail line=6402 msg="vd-root:0 received a packet(proto=17, <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500) tun_id=0.0.0.0 from local. "
2026-11-03 16:50:47 id=65308 trace_id=6 func=resolve_ip_tuple_fast line=6510 msg="Find an existing session, id-01a7fa6d, reply direction"
2026-11-03 16:50:50.889128 ike V=root:0: comes <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500,ifindex=64,vrf=0,len=533....
2026-11-03 16:50:50 id=65308 trace_id=7 func=print_pkt_detail line=6402 msg="vd-root:0 received a packet(proto=17, <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500) tun_id=0.0.0.0 from <WAN>. "
2026-11-03 16:50:50 2026-11-03 16:50:50.889199 ike V=root:0:<TUNNEL>:688: detected retransmit, resend last message
2026-11-03 16:50:50.889238 ike V=root:0:<TUNNEL>:688: sent IKE msg (retransmit): <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500, len=416, vrf=0, id=aaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbb, oif=64
2026-11-03 16:50:50 id=65308 trace_id=8 func=print_pkt_detail line=6402 msg="vd-root:0 received a packet(proto=17, <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500) tun_id=0.0.0.0 from local. "
2026-11-03 16:50:50 id=65308 trace_id=8 func=resolve_ip_tuple_fast line=6510 msg="Find an existing session, id-01a7fa6d, reply direction"
2026-11-03 16:50:53.972772 ike V=root:0: comes <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500,ifindex=64,vrf=0,len=533....
2026-11-03 16:50:53 id=65308 trace_id=9 func=print_pkt_detail line=6402 msg="vd-root:0 received a packet(proto=17, <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500) tun_id=0.0.0.0 from <WAN>. "
2026-11-03 16:50:53 2026-11-03 16:50:53.972846 ike V=root:0:<TUNNEL>:688: detected retransmit, resend last message
2026-11-03 16:50:53.972887 ike V=root:0:<TUNNEL>:688: sent IKE msg (retransmit): <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500, len=416, vrf=0, id=aaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbb, oif=64
2026-11-03 16:50:53 id=65308 trace_id=10 func=print_pkt_detail line=6402 msg="vd-root:0 received a packet(proto=17, <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500) tun_id=0.0.0.0 from local. "
2026-11-03 16:50:53 id=65308 trace_id=10 func=resolve_ip_tuple_fast line=6510 msg="Find an existing session, id-01a7fa6d, reply direction"
2026-11-03 16:50:56.995294 ike V=root:0: comes <CLIENT_PUBLIC_IP>:4500-><FGT_PUBLIC_IP>:4500,ifindex=64,vrf=0,len=533....
2026-11-03 16:50:56.995367 ike V=root:0:<TUNNEL>:688: detected retransmit, resend last message
2026-11-03 16:50:56.995401 ike V=root:0:<TUNNEL>:688: sent IKE msg (retransmit): <FGT_PUBLIC_IP>:4500-><CLIENT_PUBLIC_IP>:4500, len=416, vrf=0, id=aaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbb, oif=64

4 replies

funkylicious
SuperUser
SuperUser
Nov 4, 2026 5:16 PM UTC

a debug on the other end would help to see if the packets sent from here arrive also there on port 4500.

you could put the tunnel in passive mode, to not trigger a connection and wait for the remote end to do it and see what happens

"jack of all trades, master of none"
MohammedBahjat
Explorer
Nov 4, 2026 5:17 PM UTC

I did a debug from the client PC 
it showed the traffic being sent but no respond is getting to the FortiClient.

funkylicious
SuperUser
SuperUser
Nov 4, 2026 5:25 PM UTC

oh, so its a dialup vpn not a site 2 site between two devices., my bad i might of misunderstood.

it seems to be a client/FortiClient issue , see if it helps

 

"jack of all trades, master of none"
Toshi_Esumi
SuperUser
SuperUser
Nov 4, 2026 5:45 PM UTC

So it’s NAT traversal on the Egypt side. As the debug output is showing, your FGT side is responding normally. Then client side either can’t get or can’t accept the FGT’s response.
First thing you need to do is if the response is getting to the client machine by running like Wireshark. You should be able to see “IKE_SA_INIT/Responder Response” if it’s receiving. Then problem is the client setting.
If it’s not receiving, the problem is likely the NAT point wherever it is. It might be filtered. If it’s inside of ISP in Egypt, you might not be able to do anything.

Toshi

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