T Techclick ← All lessons
Multi-vendor · IPsec / SSL-VPN · Lesson 2 of 8

Phase-1 down: the gateways never authenticated

GUI is red. Priya cannot ping the branch. Do not touch Phase-2 selectors yet. If there is no IKE SA, the peers never agreed who they are. PSK, IKE version, peer IP, proposals, UDP 500/4500, NAT-T. RFC 7296 is IKEv2. diagnose vpn ike is the proof, not a new wizard.

Updated 2026-08-18·18 min read·L2 primary·Quiz at end

After this page you can

The ticket

New tunnel vpn-branch to 198.51.100.10. IPsec monitor: down. Junior already flipped Phase-2 to 0.0.0.0/0. diagnose vpn ike gateway list is empty. Phase-2 never had a chance.

Quick interview answer

Phase-1 is the IKE SA (IKEv2: IKE_SA_INIT + IKE_AUTH in RFC 7296). It authenticates the two gateways. Must match: IKE version, PSK or cert, remote-gw IP, encryption/integrity/DH proposal, and the path for UDP 500 plus NAT-T UDP 4500. FortiOS: diagnose vpn ike gateway list then diagnose debug application ike -1. No IKE SA means do not debug proxy IDs yet.

Hero · IKE door
IKE Phase-1 between fgt-hq and branch never established
No IKE SA. The LAN is not in this ticket yet.
Lab data · dummy only

FortiGate fgt-hq mgmt 10.10.10.1 · WAN 203.0.113.10 · LAN 10.20.30.0/24 · FortiManager 10.10.10.5 · FortiAnalyzer 10.10.10.6 · Priya 10.20.30.80 · branch peer WAN 198.51.100.10 · Azure VPN GW public 203.0.113.50 · AWS VGW public 203.0.113.60. RFC 5737. Not a customer.

Mental model

Must matchThis labIf it does not
Peer IP / local WAN203.0.113.10 ↔ 198.51.100.10IKE never leaves, or hits the wrong box
IKE versionIKEv2 both sides (RFC 7296)No proposal accepted
PSK or certSame PSK, no trailing spaceAUTH fail after SA_INIT
IKE proposal (enc / auth / DH)AES256 / SHA256 / DH14 or 19 both sidesNO_PROPOSAL_CHOSEN
UDP 500 and NAT-T 4500WAN allow, NAT-T enable if a NAT sits in frontInit, no response
IKE path before any LAN packet
fgt-hq WAN203.0.113.10 UDP 500NAT-T 4500 Branch peer198.51.100.10 IKE SAthen Phase-2

Priya 10.20.30.80 is not a hop. IKE is WAN to WAN.

https://fgt-hq.techclick-lab.in
Training mock · not live
DashboardNetworkVPNPolicy
VPN → IPsec Tunnels

vpn-branch Phase-1

vpn-branch
Static IP Address 198.51.100.10
port1 (WAN)
Enable
2
(same string both sides)
AES256 / SHA256 / DH group as peer
FortiOS 7.4 VPN → IPsec Tunnels, Phase-1. Training mock.

How to choose

New build: IKEv2. IKEv1 only if the peer cannot do v2. NAT in front of either WAN: leave NAT Traversal enabled (FortiOS default on) so ESP rides UDP 4500. Do not disable NAT-T to “simplify” a home-lab peer behind CGNAT.

Runbook

  1. Side A - path

    Confirm remote-gw 198.51.100.10 and local WAN 203.0.113.10. ISP/ACL must pass UDP 500 and 4500. Sniffer on WAN: do you see IKE out, and any reply?

  2. Side B - identity

    Same IKE version, same PSK (retype both sides), same IKE proposal. Clock/NTP if you use certs. Do not edit Phase-2 yet.

  3. Side C - prove

    diagnose vpn ike gateway list shows established. Then stop ike debug. Only then open the Phase-2 lesson.

fgt-hq · IKE proof
diagnose vpn ike gateway list
# name: vpn-branch  IKE version: 2  created: …
# IKE SA: established   (empty list = Phase-1 is this ticket)

diagnose vpn ike log-filter dst-addr4 198.51.100.10
diagnose debug application ike -1
diagnose debug enable
# Look for: NO_PROPOSAL_CHOSEN  /  AUTHENTICATION_FAILED  /  no response
diagnose debug disable
diagnose debug reset

diagnose sniffer packet port1 "udp port 500 or udp port 4500" 4 20

Four failures

1 · PSK mismatch

IKE_SA_INIT may succeed; IKE_AUTH fails. Retype the key. Hidden space in the GUI field is common.

2 · IKEv1 vs IKEv2

One side set Version 1. No SA. Align on v2 unless the peer is documented IKEv1-only (Azure policy-based Basic is the classic).

3 · Wrong peer IP

Tunnel points at 198.51.100.11 or the Azure public of last week. Debug shows no response or a stranger.

4 · UDP 500/4500 blocked, or NAT-T off behind NAT

ESP in protocol 50 dies on NAT. Enable NAT Traversal. Check the WAN ACL and the ISP.

How to prove it

Close Phase-1 only when

1) diagnose vpn ike gateway list shows established. 2) You named which of the five mismatches it was. 3) ike debug is off. 4) You did not rewrite proxy IDs to fix IKE.

Traps

SymptomFirst proofWrong fix
Monitor red, ike list emptyPeer IP + UDP 500/4500 + PSK + versionChange Phase-2 to 0.0.0.0/0
No response on snifferPath / ACL / wrong WAN IPNew DH group
AUTH failPSK / cert / local-idDisable NAT-T

Knowledge check

Judgment items. One best answer. Reasons send you back to the matching section.

Q1

Phase-1 authenticates…

Correct: b. IKE SA is gateway to gateway.
Q2

diagnose vpn ike gateway list is empty. First move?

Correct: b. No IKE SA = Phase-1 ticket.
Q3

NAT in front of the WAN. What must stay on?

Correct: a. NAT-T.
Q4

IKEv2 is specified in…

Correct: a. Official IKE.
Q5

NO_PROPOSAL_CHOSEN on ike debug means…

Correct: b. Proposal mismatch.
Q6

Best Phase-1 proof command on FortiOS?

Correct: b. Runbook.

VPN scenario class series: S2S vs RA vs ZTNA · Phase-1 down · Phase-2 / proxy ID · Route vs policy · SSL split tunnel · FGT → Azure · FGT → AWS · VPN interview

Sources

Related: FortiGate IPsec · Azure hub-spoke · AWS TGW.