---
title: Preserving IP Addresses with SSL Forwarding
slug: ps/help/en_us/vtm/userguide/preserving-ip-addresses-with-ssl-forwarding
docTags: 
createdAt: 2026-08-02T07:48:41.338Z
---

When the Virtual Traffic Manager forwards HTTP requests, it can optionally insert a header named X-Forwarded-For into the request so that downstream servers can determine the correct source IP address of the request. If the Virtual Traffic Manager decrypts an HTTPS request, it can also insert the X-Forwarded-For header into the request, even if it then re-encrypts the request.

However, if the Virtual Traffic Manager forwards an SSL request without decrypting and re-encrypting it, it cannot modify the data inside. This configuration is used with a loopback virtual server, whereby the connections are load-balanced across a cluster of Virtual Traffic Manager systems for decryption. In this case, you may use the **ssl\_enhance** setting in the pool to add a proprietary header to the SSL connection that contains key connection data that is not preserved, i.e. source IP and port and destination IP and port.

The Virtual Traffic Manager system that receives the “enhanced” SSL connection must be configured with the **ssl\_trust\_magic** setting in the SSL decryption settings of the virtual servers. This setting will cause the Virtual Traffic Manager to strip out the proprietary header, and recognize the correct connection data – source IP and port, and destination IP and port.
