# Create HTTP header with source IP of ProxyProtocol?

**URL:** <https://community.traefik.io/t/create-http-header-with-source-ip-of-proxyprotocol/15558>\
**Category:** Traefik v2\
**Tags:** tcp\
**Created:** [August 26, 2022, 8:43am UTC](https://community.traefik.io/t/create-http-header-with-source-ip-of-proxyprotocol/15558 "2022-08-26T08:43:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [August 26, 2022, 8:43am UTC](https://community.traefik.io/t/create-http-header-with-source-ip-of-proxyprotocol/15558/1 "2022-08-26T08:43:09Z")

</div>

Traefik EntryPoints support [ProxyProtocol](https://doc.traefik.io/traefik/routing/entrypoints/#proxyprotocol) which enables a load balancer to forward (encrypted) connections and still let Traefik know the original originating IP.

```auto
--entrypoints.web.address=:80
--entrypoints.web.http.redirections.entryPoint.to=websecure
--entrypoints.web.http.redirections.entryPoint.scheme=https
--entrypoints.web.proxyProtocol.trustedIPs=1.2.3.4,5.6.7.8
--entrypoints.websecure.address=:443
--entrypoints.websecure.proxyProtocol.trustedIPs=1.2.3.4,5.6.7.8

```

Is there a way for Traefik to add the load balancers IP (the direct source of the incoming ProxyProtocol connection) to the HTTP headers, to get something like `x-forwarded-proxy: 1.2.3.4`? We would like to see if all load balancers are actually working.

---

<div class="post-metadata">

**Author:** ![douglasdtm](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/douglasdtm/32/2002_2.png) [@douglasdtm](https://community.traefik.io/u/douglasdtm)\
**Post date:** [September 2, 2022, 7:04pm UTC](https://community.traefik.io/t/create-http-header-with-source-ip-of-proxyprotocol/15558/2 "2022-09-02T19:04:46Z")

</div>

Just linking the issue you opened as it was accepted as a valid proposal to help other people track it:

> <https://github.com/traefik/traefik/issues/9294>
>
> \### Welcome!
> 
> \- \[X\] Yes, I've searched similar issues on \[GitHub\](https://github….com/traefik/traefik/issues) and didn't find any.
> \- \[X\] Yes, I've searched similar issues on the \[Traefik community forum\](https://community.traefik.io) and didn't find any.
> 
> \### What did you expect to see?
> 
> We run multiple Traefik instances behind a load balancer using ProxyProtocol. 
> \`\`\`
> entryPoints:
> web:
> address: :80
> proxyProtocol:
> insecure: true
> http:
> redirections:
> entryPoint:
> to: websecure
> scheme: https
> websecure:
> address: :443
> proxyProtocol:
> trustedIPs:
> - 1.2.3.4
> - 5.6.7.8
> \`\`\`
> It would be great if Traefik could add the IP of the ProxyProtocol host to the HTTP headers, so our app can see which load balancer was used for the request.
> \`\`\`
> Hostname: myhost
> IP: 127.0.0.1
> IP: 10.0.16.28
> IP: 172.19.0.5
> RemoteAddr: 10.0.16.26:42274
> GET / HTTP/1.1
> Host: myhost.example.com
> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:103.0) Gecko/20100101 Firefox/103.0
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,\*/\*;q=0.8
> Accept-Encoding: gzip, deflate, br
> Upgrade-Insecure-Requests: 1
> X-Forwarded-For: 67.78.89.90
> X-Forwarded-Host: myhost.example.com
> X-Forwarded-Port: 443
> X-Forwarded-Proto: https
> X-Forwarded-Server: myhost
> X-Forwarded-Proxy: 1.2.3.4 \<====================
> X-Real-Ip: 67.78.89.90
> \`\`\`
