# X-Forwarded-For only works for a while

**URL:** <https://community.traefik.io/t/x-forwarded-for-only-works-for-a-while/5992>\
**Category:** Traefik v2\
**Tags:** cli, kubernetes-crd\
**Created:** [May 11, 2020, 5:20pm UTC](https://community.traefik.io/t/x-forwarded-for-only-works-for-a-while/5992 "2020-05-11T17:20:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![diegosucaria](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/diegosucaria/32/2052_2.png) [@diegosucaria](https://community.traefik.io/u/diegosucaria)\
**Post date:** [May 11, 2020, 5:20pm UTC](https://community.traefik.io/t/x-forwarded-for-only-works-for-a-while/5992/1 "2020-05-11T17:20:29Z")

</div>

Hello,

I'm using traefik in Kubernetes, with the CRD providers...

I've set up the following options on traefik deployment:

```auto
        - --entryPoints.http.forwardedHeaders.insecure=true 
        - --entryPoints.https.forwardedHeaders.insecure=true
        - --entryPoints.http.proxyProtocol.insecure=true 
        - --entryPoints.https.proxyProtocol.insecure=true

```

After I apply that config, I get the REAL client IP address in X-Forwarded-For and X-Real-Ip...

but after a minute or two, that values go back to be the internal lb IPs...

I've tried putting this instead, but no luck.

```auto
 - --entryPoints.http.proxyProtocol.trustedIPs=127.0.0.1/32,10.48.0.0/14
 - --entryPoints.https.proxyProtocol.trustedIPs=127.0.0.1/32,10.48.0.0/14

```

Curious thing is that every time I make a change either in the `forwardedHeaders` value or the `proxyProtocol` , the REAL client IP appears for a minute.... then it goes back...

What could be the issue? How can I provide more information to debug it?
