<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Okta Evaluation of Client IP Addresses from an IP Chain
Okta Classic Engine
Okta Identity Engine
Network Zones
Overview

This article describes the process the system uses to evaluate and identify the client IP address from an X-Forwarded-For (XFF) IP chain. It clarifies how the system distinguishes between the originating client IP and trusted proxy addresses within the network configuration.

Applies To
  • Network Zones
  • IP Forwarding
  • Client IP Extraction
  • Okta Identity Engine (OIE)
  • Okta Classic Engine
Cause

The issue occurs when the application and network service layers do not have IP forwarding applied, or when service layer IP addresses are not correctly registered in the Gateway and Proxies fields of the network zone.

Solution

To ensure the system extracts the real client IP from the X-Forwarded-For (XFF) chain, perform the following configuration:

  1. Go to Security > Networks.

  2. Select the appropriate Network Zone to edit.

  3. Clear the Gateway field to ensure it is empty.

  4. Enter the trusted proxy IP ranges into the Proxies field.

System log

       5. Click Save.

Example IP Chain Configuration

When an IP chain contains three addresses (e.g., 192.168.1.1, 10.0.0.1, 10.0.0.2), the system processes them as follows:

  • 192.168.1.1: This is the first IP in the chain and represents the real client IP.

  • 10.0.0.1, 10.0.0.2: These are the second and third IPs in the chain. Register these addresses in the Proxies field of the Network Zone to establish them as trusted proxies.

 

FieldPurposeUsage
gatewayDefines which client IP ranges are allowed to match this Network ZoneUsed for Zone-based policies such as Sign-On Policy or Multi-Factor Authentication (MFA) policies.
proxiesDefines which proxy IP ranges are trusted for XFF validationUsed for extracting the real client IP from the X-Forwarded-For chain.

Related References

Loading
Okta Evaluation of Client IP Addresses from an IP Chain