# Nginx ingress use-proxy-protocol broken headers

**URL:** https://discuss.kubernetes.io/t/nginx-ingress-use-proxy-protocol-broken-headers/5897
**Category:** General Discussions
**Created:** [April 11, 2019, 1:54pm UTC](https://discuss.kubernetes.io/t/nginx-ingress-use-proxy-protocol-broken-headers/5897 "2019-04-11T13:54:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dottodot](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/dottodot/32/2434_2.png) [@dottodot](https://discuss.kubernetes.io/u/dottodot)
#### Post date: [April 11, 2019, 1:54pm UTC](https://discuss.kubernetes.io/t/nginx-ingress-use-proxy-protocol-broken-headers/5897/1 "2019-04-11T13:54:33Z")

</div>

I have my cluster set up on Digital Ocean and they recently added support for PROXY Protocol on the load balancer.

> **[How to Configure Advanced Load Balancer Settings in Kubernetes Clusters |...](https://www.digitalocean.com/docs/kubernetes/how-to/configure-load-balancers/#proxy-protocol)**
>
> Configure advanced load balancer settings for balancing algorithms, sticky sessions, health checks, and always-on SSL.

So I updated my ingress-nginx config to use use-proxy-protocol: “true” and enabled Proxy Protocol on the Load Balancer but I then get a load of errors in the nginx logs such as

```
���Zك7�g̮["\�/�+�0�,��'g�(k��̨̩̪������������������$j�#@�

�98" while reading PROXY protocol, client: 10.244.35.0, server: [0.0.0.0:443](http://0.0.0.0:443/)

2019/04/11 13:02:57 [error] 265#265: *4443 broken header: "����p�����ўL��k+

                                                                           rbO-

/�Ç���y�8\�/�+�0�,��'g�(k��̨̩̪������������������$j�#@�

�98" while reading PROXY protocol, client: 10.244.41.0, server: [0.0.0.0:443](http://0.0.0.0:443/)

2019/04/11 13:02:57 [error] 265#265: *4444 broken header: "���5*�Kk��4 ��b�pxLJw�]��G�V��� �

\�/�+�0�,��'g�(k��̨̩̪������������������$j�#@�

�98" while reading PROXY protocol, client: 10.244.41.0, server: [0.0.0.0:443](http://0.0.0.0:443/)

```

Can’t work out if I’m doing something wrong, or if there is any issue with either ingress-nginx or digital ocean

---

<div class="post-metadata">

### Author: ![indiealexh](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/indiealexh/32/16588_2.png) [@indiealexh](https://discuss.kubernetes.io/u/indiealexh)
#### Post date: [January 2, 2025, 5:49pm UTC](https://discuss.kubernetes.io/t/nginx-ingress-use-proxy-protocol-broken-headers/5897/2 "2025-01-02T17:49:48Z")

</div>

Been suffering with a very similar issue but can’t seem to find the issue. Did you ever work it out?

The best I can work out is that the pod is routing the traffic internally rather than VIA the edge / external load balancer. As a result it skips proxy protocol and so it fails to decode at the ingress and you get this.

edit:

I reinstalled my cluster, and the only thing I changed was not adding a searchDomain to the dns config and its working… so IDK. Maybe Ill make the mistake again later and see if I can fix another way, it feels like a CNI config thing tbh.
