Skip to main content
HS08
Valued Contributor
Apr 29, 2026 4:49 AM UTC
Question

IPSEC IKEv2

When i use IPSEC with IKEv2 and in the forticlient I use DNS on the remote gateway then the client can connect to the VPN but can’t reach to anywhere.

If i switch using IP Address for Remote gateway then the client is able to connect to the LAN.

Anyone facing same issue with me or this is know issue for IKEv2?

6 replies

funkylicious
SuperUser
SuperUser
Apr 29, 2026 5:06 AM UTC

to be fair i dont quite understand your problem, the way you are describing it.

are you saying that you get some DNS servers while connecting to the VPN but with those you cannot resolve anything from LAN and upon changing them with some other DNS servers you can?

Translate
"jack of all trades, master of none"
HS08
HS08Author
Valued Contributor
Apr 29, 2026 5:09 AM UTC

Let say my Public IP is 11.11.11.11 and the DNS name is vpn.mydomain.com.

Then on the forticlient if i use vpn.mydomain.com as remote gateway then the vpn is connected but there no any traffic (the client can’t reach to anywhere). If i use 11.11.11.11 as remote gateway then the client is able to reach to the LAN.

Translate
NSE 6 - FortiNAC , NSE 4 - FortiOS Administrator Certified
sjoshi
Staff
Staff
Apr 29, 2026 5:48 AM UTC

Hi ​@HS08 

can you show below output once the vpn is connected using fqdn as remote gateway.

 

route print » from the pc

 

From FGT

diag snif packet any ‘host x.x.x.x and icmp’ 4 0 l » where x.x.x.x is the lan IP

Translate
Thanks, Salon
Toshi_Esumi
SuperUser
SuperUser
Apr 29, 2026 6:51 AM UTC

Do you happen to have a certificate for “vpn.mydomain.com” or a wildcard certificate “*.mydomain.com” installed and using it with the phase1-interface config like “set certificate [certificate_name]”? And more importantly, is the cert still valid, not expired?

Toshi

Translate
FortiMentor
New Member
Apr 29, 2026 7:18 AM UTC

Please try to deaktivate the IPv6 Protocol in your Network Card and in the FortiClient Network Adapter, too.

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