OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Command-Line Client

V2.2.13
  • Introduction
    • Overview of OBClient
  • Quick start
    • Quick start with OBClient
  • Command-line options
    • Common OBClient command-line options
    • Reference for OBClient command-line options
    • SQL context when a script fails
  • Configuration and environment
    • Configure OBClient and set environment variables
  • User guide
    • Reference for OBClient internal commands
  • Advanced features
    • Support for Oracle-compatible mode in OBClient
    • Log in to OBClient through a socket5 proxy
    • Multi-IP connection support for OBClient
    • Client IP passthrough and tenant allowlist (F5 scenario)
    • Log in as a proxy user of OBClient
    • LOAD DATA LOCAL INFILE
    • SET variables
    • Supported login_path options for OBClient
  • Tips and troubleshooting
    • OBClient Usage Tips and Troubleshooting

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Command-Line Client
  3. V2.2.13

Client IP passthrough and tenant allowlist (F5 scenario)

Last Updated:2026-09-02 09:17:42

References

When accessing an OceanBase tenant using a load balancer such as F5, whether the tenant can connect is often related to the "client IP" used by the OBServer for allowlist verification. This topic describes the behavior differences between obclient V1.x and V2.2.x, and whether ip_white_list should be set to the F5 backend VIP or the client's actual IP.

The working principle of the OceanBase tenant allowlist is as follows: The OBServer reads the client IP-related attributes in the Connection Attributes of the connection (commonly client_ip; in packet capture, it may also appear as __client_ip or similar, subject to the actual protocol and version), and determines whether this address exists in the tenant's **ip_white_list. If it matches an entry in the allowlist, the connection is allowed; otherwise, it is denied, typically with an Access denied response.

In obclient V1.x, the driver cannot pass through the client's actual IP to the server. In a typical F5 access scenario, F5 may not present the real client IP in a format usable by the OBServer; therefore, the allowlist check is based more closely on the virtual IP pool (VIP) of the F5 backend. Thus, in a V1.x client environment, the tenant allowlist generally needs to be configured with the VIP pool of the F5 backend.

Starting from obclient V2.2.x, the driver begins to support passing through the client IP, writing the address of the client's machine into the client_ip connection attribute (which may appear as an alias like __client_ip in packet capture). When the OBServer reads this attribute and finds a value, it uses that value as the basis, rather than continuing to use the F5 peer VIP as the final client identity for allowlist verification. Therefore, when the client has been upgraded to V2.2.x or later and the link is as expected, the tenant allowlist is better configured with the client's actual IP (or corresponding IP range), rather than just configuring the VIP pool.

Note

The key names in connection attributes may vary slightly between different OceanBase versions and clients (including libobclient / Connector/C, etc.); the allowlist always refers to the connection attributes actually parsed by the OBServer.

Notice

Before deciding whether to write the VIP or the real client IP to the allowlist, please verify the actual client version and the link (whether it goes through F5, if there are other proxies, etc.). When using multiple access methods together, the allowlist must cover all legitimate source address forms that can still reach the tenant.

References

  • Multi-IP connection support
  • Overview of OBClient

Previous topic

Multi-IP connection support for OBClient
Last

Next topic

Log in as a proxy user of OBClient
Next
on this page
References