We have an on-prem Kubernetes setup via KUBEADM with traefik as an ingress controller. Traefik service is exposed over nodePort and we use port-forwarding to access our applications. Recently we tried to capture X-FORWARDED- * via the below setting for our config map but unable to capture the client IPv4's.
Note: Traefik installation is done by Helm3 version used is 1.7.23
traefik.toml: |
# traefik.toml
logLevel = "info"
defaultEntryPoints = ["http", "httpn"]
[entryPoints]
[entryPoints.http]
address = ":80"
compress = true
[entryPoints.http.proxyProtocol]
trustedIPs = ["0.0.0.0/0"]
[entryPoints.http.forwardedHeaders]
trustedIPs = ["0.0.0.0/0"]
[entryPoints.httpn]
address = ":8880"
compress = true
[entryPoints.httpn.proxyProtocol]
trustedIPs = ["0.0.0.0/0"]
[entryPoints.httpn.forwardedHeaders]
trustedIPs = ["0.0.0.0/0"]