This article refers to the issue of having a ZTNA destination rule on On-Fabric endpoints and the solution for it.
FortiGate, FortiClient EMS, ZTNA.
If there is no on-fabric detection rule in the EMS, then ALL FortiClients connected to EMS are considered as ON-Fabric devices.
The location status of the endpoint can be checked in EMS:
Navigate to Endpoints > All Endpoints
Based on endpoint profiles, it will apply the ZTNA destination profile to this endpoint and this endpoint gets the ZTNA destinations:
As described in the following KB article, the on-fabric endpoint will try to do Hairpin NAT and adjustment to the proxy policy will be required as a workaround:
Techincal Tip: ZTNA Destinations not working for On-fabric devices
For this, EMS should differentiate between off-fabric endpoints and on-fabric endpoints and based on the location, different ZTNA destination profiles must be applied. This can be done through on-fabric detection rules.
A rule needs to be created based on various parameters to determine if the device is on-net. For example, can give the public IP of the endpoint as a parameter such as if the public IP of the endpoint matches the public IP of the HQ, then consider the device as on-fabric. Or if the default gateway of the device is on-site FortiGate’s internal interface IP, then consider the device as on-net.
Reference:
Such rule is configured below:
This rule specifies, if the device’s subnet is 10.0.0.0/24, consider it as on-fabric.
Once these rules are created and applied, the endpoints should be marked as On-Fabric or Off-Fabric based on the On-Fabric detection rules and have the ZTNA destination profile applied as configured above.
Observation:
Due to the EYE button in step 2.3, the FortiClient is not even showing the ZTNA Destination option on the application.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.