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
