Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real IP not showing up in remote_addr #12200

Open
afares-hims opened this issue Oct 15, 2024 · 3 comments
Open

Real IP not showing up in remote_addr #12200

afares-hims opened this issue Oct 15, 2024 · 3 comments
Labels
kind/support Categorizes issue or PR as a support question. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@afares-hims
Copy link

What happened:

We have this setup:

User -> Fastly -> Ingress-NGINX -> Backend

Ingress-NGINX is configured as follows:

  use-proxy-protocol: "true"
  enable-real-ip: "true"
  proxy-real-ip-cidr: "23.235.32.0/20,43.249.72.0/22,103.244.50.0/24,103.245.222.0/23,103.245.224.0/24,104.156.80.0/20,140.248.64.0/18,140.248.128.0/17,146.75.0.0/17,151.101.0.0/16,157.52.64.0/18,167.82.0.0/17,167.82.128.0/20,167.82.160.0/20,167.82.224.0/20,172.111.64.0/18,185.31.16.0/22,199.27.72.0/21,199.232.0.0/16"

Logs are showing Fastly's IP as remote_addr instead if user IP.

What you expected to happen:

It should be user's IP.

NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):


NGINX Ingress controller
Release: v1.10.1
Build: 4fb5aac
Repository: https://github.com/kubernetes/ingress-nginx
nginx version: nginx/1.25.3


Kubernetes version (use kubectl version):
Client Version: v1.28.13
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.13-eks-a737599

Environment:

  • Cloud provider or hardware configuration: AWS EKS
  • OS (e.g. from /etc/os-release): Alpine Linux v3.19
  • Kernel (e.g. uname -a): Linux ingress-nginx-controller-public-7964cc9745-pmvv4 6.1.109 Basic structure  #1 SMP PREEMPT_DYNAMIC Sat Sep 28 21:21:49 UTC 2024 x86_64 Linux
@afares-hims afares-hims added the kind/bug Categorizes issue or PR as related to a bug. label Oct 15, 2024
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Oct 15, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@longwuyuan
Copy link
Contributor

/remove-kind bug
/kind support

  • Not everybody can test this so please wait for someone to reproduce
  • You have chosen to provide info that only you think is relevant so there is hardly any data to be analyzed
  • But a new bug report template asks questions, which if answeed, then that provides a reader with data that can be analyze. You can explore editing your issue description and answer the questions from the new bug report template

@k8s-ci-robot k8s-ci-robot added kind/support Categorizes issue or PR as a support question. and removed kind/bug Categorizes issue or PR as related to a bug. labels Oct 16, 2024
@longwuyuan
Copy link
Contributor

cc @Gacko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
Development

No branches or pull requests

3 participants