T Techclick ← All lessons
Fortinet · FortiOS 7.4 · Lesson 7 of 12

Site-to-site: Phase-1 is the door, Phase-2 is the room

Branch LAN 10.30.0.0/24 must reach HQ 10.20.30.0/24. You need IKE (Phase-1) to the peer 198.51.100.10, IPsec SA (Phase-2) for those subnets, a tunnel interface, a route, and policies. Green Phase-1 with red Phase-2 is the most common “VPN is up” lie.

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

After this page you can

The ticket

GUI: “VPN up.” Branch ping dies. Phase-1 is up. Phase-2 selectors are 0.0.0.0/0 vs 10.20.30.0/24. One side will not build the SA.

Quick interview answer

Phase-1 (IKE) authenticates the gateways (PSK or cert, DH, proposals). Phase-2 (IPsec) protects traffic between selectors (proxy IDs). Route-based VPN uses a tunnel interface + route; policy-based binds interesting traffic in the policy. FortiOS 7.4 IPsec wizard defaults to route-based. Selectors must match or be compatible — 0.0.0.0/0 vs a subnet is a classic mismatch, especially vs Azure/AWS.

Hero · two sites
HQ FortiGate IPsec to branch peer
Up on IKE is not up for the LAN.
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

LayerMust matchThis lab
Phase-1IKE version, PSK/cert, DH, enc/auth, lifetime styleIKEv2, PSK, 203.0.113.10 ↔ 198.51.100.10
Phase-2Selectors, PFS, enc/auth10.20.30.0/24 ↔ 10.30.0.0/24
Routing + policyTunnel if + static/BGP + ACCEPT both waysvpn-branch, 10.30.0.0/24 via tunnel
https://fgt-hq.techclick-lab.in
Training mock · not live
DashboardPolicyVPNNetwork
VPN → IPsec Tunnels

vpn-branch

198.51.100.10
Version 2 / Pre-shared key
local 10.20.30.0/24 remote 10.30.0.0/24
vpn-branch (tunnel)
Automatically / on traffic
FortiOS 7.4 IPsec Tunnels. Training mock.

How to choose

New build: route-based + IKEv2. Policy-based only if the peer is ancient. Cloud peers: read the cloud selector rules (Azure often 0.0.0.0/0 on policy-based, or use route-based VNet GW — later VPN lessons).

Runbook

  1. Side A — proposals

    Same IKEv2, AES256-SHA256, DH14/19, PSK. No mixed v1/v2.

  2. Side B — selectors + route

    Exact subnets both sides. Static: dest 10.30.0.0/24 device vpn-branch. Policies LAN→vpn-branch and reverse.

  3. Side C — prove

    diagnose vpn ike gateway list, diagnose vpn tunnel list, ping from 10.20.30.80 to 10.30.0.10.

VPN proof
diagnose vpn ike gateway list
# name: vpn-branch  created: …  IKE SA: established

diagnose vpn tunnel list name vpn-branch
# dest: 198.51.100.10  status: up  selectors: 10.20.30.0/24-10.30.0.0/24

execute ping-options source 10.20.30.1
execute ping 10.30.0.10

Four failures

1 · Phase-1 never up

PSK, IKE version, WAN NAT-T, peer IP wrong, UDP 500/4500 blocked.

2 · Phase-1 up, Phase-2 down

Selectors / PFS / proposal. This ticket.

3 · Both SAs up, ping dies

Missing route or policy, or interesting traffic not hitting the tunnel (SNAT by mistake).

4 · One-way

Return policy or return selector missing. Asymmetric firewall.

How to prove it

Close only when

1) IKE SA up. 2) Phase-2 selectors match the ping. 3) Bidirectional ping with source IP on the LAN. 4) You did not SNAT into the tunnel unless designed.

Traps

GUI saysYou still check
UpWhich SA — IKE or IPsec — and selectors
Downike debug filtered, not a new wizard

Knowledge check

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

Q1

Phase-1 authenticates…

Correct: b. IKE.
Q2

Phase-1 up, ping fail, no IPsec SA. First check?

Correct: a. Failure 2.
Q3

Route-based VPN needs…

Correct: a. Concept.
Q4

0.0.0.0/0 vs 10.20.30.0/24 selectors often…

Correct: b. Ticket.
Q5

Both SAs up, ping dies. Likely?

Correct: a. Failure 3.
Q6

Best bring-up proof?

Correct: b. Runbook.

FortiGate class series: FGT / FMG / FAZ · First day · Policy first match · SNAT vs VIP · Profiles + SSL · debug flow · IPsec S2S · SSL-VPN vs RA · SD-WAN SLA · VDOM · FGCP HA · Interview

Sources

Related: FortiGate session factory · VPN series.