Home / Insights / Zero Trust Security
Enterprise Cybersecurity

Migrating SSL-VPN to Fortinet ZTNA & SASE

Complete engineering migration playbook for decommissioning vulnerable legacy SSL-VPN tunnels and deploying Fortinet ZTNA and FortiSASE with continuous posture checking and device identity.

Fortinet ZTNA Migration Architecture

Which Zero Trust Network Access page do you need?

Zero Trust Network Access
Key takeaways
  • ZTNA grants access per application after checking identity and device every time.
  • Run ZTNA and VPN in parallel and migrate user groups in phases.
  • Start with web applications, then move to TCP-based internal applications.
  • Decommission VPN access group by group once usage stops.

The Evolution Beyond Enterprise SSL-VPN Tunnel Mode

For more than two decades, legacy SSL-VPN remote access tunnels served as the default mechanism for remote enterprise work. Employees connected to a corporate VPN client, entered Active Directory credentials, approved an MFA push notification, and were granted full network-level Layer 3 access to corporate subnets.

Today, that traditional castle-and-moat architecture has become the primary target for initial network access. Critical vulnerabilities including CVE-2024-21762 (out-of-bounds write in FortiOS SSL-VPN) and CVE-2023-27997 (heap-based buffer overflow in SSL-VPN pre-authentication) highlighted the security risks of exposing public-facing VPN listeners directly on external interfaces. Additionally, vulnerabilities like CVE-2024-55591 demonstrated authentication bypass risks within the FortiOS/FortiProxy administrative management interface via crafted Node.js WebSocket requests, underscoring the necessity of strict management interface isolation.

Recognizing the inherent risks of broad network-level tunnel mode, Fortinet officially deprecated and removed SSL-VPN tunnel mode in FortiOS 7.6.3. Fortinet's documented path away from SSL-VPN tunnel mode is transitioning to Dialup IPsec VPN (using FortiClient IPsec), while Zero Trust Network Access (ZTNA) and FortiSASE provide the modern per-application proxying alternative for secure remote access without broad subnet exposure.

ZTNA vs. Legacy VPN: Architectural Evolution

Zero Trust Network Access changes the access paradigm from broad subnet routing to granular per-application reverse proxying:

  • Per-Application Access Proxies: Rather than granting full Layer 3 access to an entire IP subnet, FortiGate acts as a reverse access proxy (HTTPS/TCP). Remote users establish encrypted sessions strictly to designated backend applications (e.g. ERP or ticketing), preventing unauthorized network scanning and lateral movement.
  • Continuous Device Posture Verification: Authentication is not an isolated point-in-time event. FortiClient Enterprise Management Server (EMS) continuously monitors client disk encryption (BitLocker/FileVault), active EDR agent health, operating system patch levels, and certificate validity. If an endpoint becomes non-compliant, access is instantly revoked.
  • Application-Level Microsegmentation: A remote developer needing access to an internal code repository receives access only to the repository reverse proxy over HTTPS/TCP port 443. They cannot scan internal IP subnets, probe domain controllers, or pivot to unmanaged servers.
Remote User Endpoints Corporate Windows / macOS FortiClient 7.4+ Agent Telemetry & Posture Tags EDR Running · BitLocker Active Mutual TLS Authentication Client Certificate Enrollment FortiClient EMS 7.4 Server Continuous Posture Evaluation Real-time ZTNA Tag Sync: Tag: Corp-Compliant-Win11 Tag: EDR-Protected-CrowdStrike FortiGate ZTNA Access Proxy Reverse HTTPS (TCP 443) 1. Inspects mTLS Client Cert 2. Verifies EMS Dynamic Tags 3. Authenticates SAML / Entra ID 4. Proxies to Realserver Backend Segmented Internal Services ERP & Finance (SAP / Oracle) Strict Tag: Corp-Compliant-Only Internal Code Repos & CI/CD Dev Subnet Isolated from Internet No Subnet Routing Allowed Port Scanning Blocked Lateral Movement Defeated

ZTNA Cryptographic Handshake & Posture Verification Workflow

The security model of Fortinet ZTNA relies on dual-factor cryptographic validation executed during every session establishment:

  • Mutual TLS (mTLS) Handshake: When a remote endpoint connects to the FortiGate Access Proxy VIP, a bidirectional TLS 1.3 handshake is initiated. The endpoint validates FortiGate's server certificate, while FortiGate validates the client certificate automatically provisioned by FortiClient EMS during device enrollment. This proves machine identity without user interaction.
  • Real-Time Posture Synchronization: As telemetry streams from the endpoint agent to EMS, EMS categorizes the device into dynamic tag objects (e.g. OS patch level, disk encryption, CrowdStrike Falcon or Microsoft Defender EDR running). FortiOS continuously pulls these tags over an authenticated Fabric Connector channel.
  • Context-Aware Session Enforcement: In the config firewall proxy-policy, traffic is evaluated against both user identity (via SAML SSO assertion from Microsoft Entra ID or Okta) and the live EMS posture tag. If an engineer's antivirus agent stops or hard drive encryption is disabled mid-day, their active session is terminated within seconds without firewall rule changes.

FortiOS ZTNA Configuration Blueprint (Illustrative)

Illustrative example: the configuration below is written for FortiOS 7.4.x / 7.6.x CLI syntax and has not been validated on a specific build. Check each command against the CLI reference for your exact FortiOS version and stage it on a non-production FortiGate first. It provisions the EMS connector via config endpoint-control fctems, configures dynamic address tags, provisions the reverse HTTPS access proxy with realservers, and enforces ZTNA proxy policy.

! ==============================================================================
! FortiOS Enterprise ZTNA Access Proxy & Posture Verification Blueprint
! Platform: FortiGate 200F / 400F | OS: FortiOS 7.4.x / 7.6.x
! ==============================================================================

! --- Step 1: Configure EMS Fabric Connector ---
config endpoint-control fctems
  edit "EMS-Production-HQ"
    set server "ems.corp.internal"
    set https-port 8013
    set capabilities ztna
  next
end

! --- Step 2: Define Granular Dynamic Posture Tags ---
config firewall address
  edit "TAG-Corp-Windows-Compliant"
    set type dynamic
    set sub-type ems-tag
    set ems-tag "Compliant_Windows_11_Enterprise"
  next
  edit "TAG-EDR-CrowdStrike-Healthy"
    set type dynamic
    set sub-type ems-tag
    set ems-tag "EDR_Agent_Active_CrowdStrike"
  next
end

! --- Step 3: Configure ZTNA Reverse Access Proxy ---
config firewall access-proxy
  edit "PROXY-Internal-ERP"
    set vip "VIP-ZTNA-ERP-Public"
    set client-cert enable
    config api-gateway
      edit 1
        set url-map "/erp"
        set service http
        config realservers
          edit 1
            set ip 10.100.20.10
            set port 8443
          next
        end
      next
    end
  next
end

! --- Step 4: Enforce ZTNA Security Rule in proxy-policy ---
config firewall proxy-policy
  edit 101
    set name "ZTNA-ERP-Strict-Policy"
    set proxy access-proxy
    set access-proxy "PROXY-Internal-ERP"
    set srcintf "wan1"
    set srcaddr "all"
    set dstaddr "VIP-ZTNA-ERP-Public"
    set action accept
    set ztna-ems-tag "TAG-Corp-Windows-Compliant"
  next
end

! --- Step 5: Gracefully Disable Legacy SSL-VPN Service ---
config vpn ssl settings
  set status disable
end

The 4-Phase Migration Roadmap: Minimising Disruption

Moving distributed employees from legacy SSL-VPN to IPsec or ZTNA without business disruption requires a staged 4-phase rollout:

  1. Phase 1: Agent Deployment & Passive Tagging (Weeks 1–2): Roll out FortiClient via Microsoft Intune or MECM across all endpoints. Keep existing VPN active. Configure FortiClient EMS to synchronize device telemetry and evaluate posture rules passively. Set an exit threshold before moving on, for example 98% of corporate laptops reporting healthy ZTNA tags (an example target, not a Fortinet requirement).
  2. Phase 2: Dual-Run Pilot with High-Value Applications (Weeks 3–4): Deploy the FortiGate ZTNA Access Proxy for internal developer tooling and web-based ERP. Onboard engineering and IT teams first. Configure split-DNS so internal application FQDNs resolve to the ZTNA reverse proxy VIP. Users authenticate via SAML / Entra ID with device certificate validation.
  3. Phase 3: Transition Remote TCP/SSH & Fat-Client Apps (Weeks 5–6): Migrate complex client-server applications using Fortinet ZTNA TCP Forwarding access proxies or transition power users to FortiClient Dialup IPsec tunnels with multi-factor authentication.
  4. Phase 4: Full SSL-VPN Service Decommissioning (Week 7): Audit firewall logs to confirm zero legitimate traffic touches legacy SSL-VPN listening ports. Disable the SSL-VPN service entirely in FortiOS (set status disable) and remove public SSL-VPN portal configurations.

ZTNA Failure Modes & Enterprise Edge Cases

Failure Scenario Root Cause Mechanism Impact Mitigation & Runbook
Post-OS Patch Tag Dropout Windows Update upgrades build number before EMS tag rules are updated. Compliant users are locked out of core applications after patching. Implement wildcard OS version ranges in EMS and define a 7-day grace period tag for minor build revisions.
Split-Horizon DNS Conflict Internal DNS and external public DNS disagree on ZTNA access proxy FQDN. Users on the corporate Wi-Fi experience TLS certificate errors or routing loops. Enforce unified hairpin routing or configure internal DNS to point directly to the ZTNA proxy internal VIP when on-net.
Third-Party Contractor Access Vendor contractors on non-corporate laptops lack managed FortiClient EMS enrollment. External support engineers cannot access specialized maintenance interfaces. Deploy FortiSASE Agentless Browser Isolation (RBI) or secure virtual desktop infrastructure (VDI) jump-boxes.
Client Certificate Expiration Endpoint offline during automatic 90-day EMS certificate renewal cycle. User cannot initiate mutual TLS handshake upon reconnecting after extended leave. Configure automated alerts before certificate expiration and enable web-based re-enrollment portals.

Primary References & Compliance Standards

Consult authoritative government and vendor engineering standards when planning your zero trust migration:

Frequently Asked Questions

About the Author

Lalit Bhardwaj — Founder & Technology Strategist, XOOPIE. Lalit leads XOOPIE with a hands-on technology strategy and infrastructure engineering approach. His focus is on understanding how an organization actually operates and translating that reality into an appropriate, resilient technical design.

Read Lalit Bhardwaj's full profile →