Skip to main content
New Member
Sep 17, 2026 10:55 AM UTC
Question

IPSec Client Vpn

I have a FortiGate VM deployed on Microsoft Azure, and I’m trying to configure an IPsec Client-to-Site VPN.

The current situation is:

* FortiGate VM is running on Azure.
* UDP 500 and UDP 4500 are allowed in the Azure Network Security Group (NSG) and Azure networking.
* The IPsec VPN client is able to reach the FortiGate.
* Phase 1 is established successfully.
* However, Phase 2 does not come up, and the VPN client cannot establish the VPN connection successfully.

I have already verified that UDP 500 and 4500 are allowed, but the issue still occurs.

My questions:

1. What are the most common reasons for IPsec Phase 2 failing on a FortiGate VM running on Azure when Phase 1 is already established?
2. Are there any Azure-specific requirements or settings that I should check for IPsec VPN, such as NSG rules, Public IP, routing, NAT-T, or IP forwarding?
3. What FortiGate debug commands would you recommend to identify why Phase 2 is failing?

Any guidance or troubleshooting steps would be highly appreciated.

5 replies

funkylicious
SuperUser
SuperUser
Sep 17, 2026 11:10 AM UTC

here you can find some debug commands

make sure that you have:

  • a static route for the destination network(s)
  • firewall rule(s) for allowing the traffic
  • matching selectors if not using 0.0.0.0/0

other info should be displayed in the output when you run/enable the debugs

 

"jack of all trades, master of none"
M_samyAuthor
New Member
Sep 17, 2026 11:15 AM UTC

Already do it

funkylicious
SuperUser
SuperUser
Sep 17, 2026 11:19 AM UTC

scratch some of the stuff that i wrote, i misread that it’s a site 2 site vpn …

what kind of dialup vpn connection do you have? is it a ikev1 or a ikev2 ? what is the source of the authentication for the user? is the user locally / ldap / radius ?

"jack of all trades, master of none"
M_samyAuthor
New Member
Sep 17, 2026 11:22 AM UTC

Ikev1 

ase265 sha 265  dg 16  

in both phases 

funkylicious
SuperUser
SuperUser
Sep 17, 2026 11:25 AM UTC

ok, can you share a sanitized output of the debug commands while the user tries to connect ?

"jack of all trades, master of none"
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT