---
title: How Do I Enable Proxy Protocol When My Vultr Load Balancer Sends Requests to the NGINX Ingress Controller?
url: https://docs.vultr.com/support/products/compute/kubernetes/how-do-i-enable-proxy-protocol-when-my-vultr-load-balancer-sends-requests-to-the-nginx-ingress-controller
description: Enable PROXY Protocol so NGINX Ingress behind a Vultr Load Balancer logs the real client IP address.
publish_date: 2025-11-20T17:41:11.684714Z
last_updated: 2026-10-26T23:28:54.001115Z
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

PROXY Protocol preserves a client’s connection information (such as IP address) when traffic passes through a PROXY. When a [Vultr Load Balancer](https://docs.vultr.com/products/network/load-balancer) sits in front of an NGINX Ingress Controller, enabling PROXY protocol ensures the controller sees the client’s original IP and protocol, which is necessary for accurate logging, rate-limiting, and any IP-dependent application logic.

To enable the PROXY protocol in [Vultr Kubernetes Engine](https://docs.vultr.com/products/compute/kubernetes), follow these steps:

1. Identify the ConfigMap used by your NGINX Ingress Controller. If deployed via Helm, you can list ConfigMaps in all namespaces to locate it:

    ```console
    $ kubectl get configmaps -A | grep ingress-nginx
    ```

1. Edit the ConfigMap to enable PROXY protocol and forwarded headers:

    ```console
    $ kubectl edit configmap -n <namespace> <configmap-name>
    ```

1. Update the Ingress Controller’s ConfigMap to include `use-PROXY-protocol: 'true'`, `use-forwarded-headers: 'true'`, and `compute-full-forwarded-for: 'true'` under the data section so that NGINX correctly interprets the PROXY protocol headers.

    ```yaml
    apiVersion: v1
    kind: ConfigMap
    metadata:
        labels:
            app.kubernetes.io/name: ingress-nginx
            app.kubernetes.io/component: controller
        name: <configmap-name>
        namespace: <namespace>
    data:
        use-PROXY-protocol: 'true'
        use-forwarded-headers: 'true'
        compute-full-forwarded-for: 'true'
        ssl-redirect: 'false'
    ```

1. Next, edit the Service of type `LoadBalancer` that exposes the NGINX Ingress Controller. Use the `namespace` and `service-name` where your controller is deployed:

    ```console
    $ kubectl edit service -n <namespace> <service-name>
    ```

1. In the Service manifest, add the annotation `service.beta.kubernetes.io/vultr-loadbalancer-PROXY-protocol: 'true'` and set `externalTrafficPolicy: Local` to ensure the client IP is preserved.

    ```yaml
    apiVersion: v1
    kind: Service
    metadata:
        name: <service-name>
        namespace: <namespace>
        annotations:
            service.beta.kubernetes.io/vultr-loadbalancer-PROXY-protocol: 'true'
    spec:
        type: LoadBalancer
        externalTrafficPolicy: Local
        ports:
          - name: http
            protocol: TCP
            appProtocol: http
            port: 80
            targetPort: 80
          - name: https
            protocol: TCP
            appProtocol: https
            port: 443
            targetPort: 443
        selector:
            app.kubernetes.io/name: ingress-nginx
            app.kubernetes.io/component: controller
            app.kubernetes.io/instance: ingress-nginx
    ```

1. If you are editing live resources with `kubectl edit`, changes take effect immediately. If you are modifying local manifest files, apply them with:

    ```console
    $ kubectl apply -f <manifest.yaml>
    ```

After applying, the Ingress Controller will see the original client IP and protocol, allowing applications to handle traffic based on the real client connection.

>[!NOTE]
>If you are using Cert-Manager for TLS certificates, prefer the `DNS01` challenge to avoid conflicts with PROXY protocol handling.
