Skip to content

question: How to get the real Client IP in APISIX #4793

Answered by tzssangglass
tzssangglass asked this question in Q&A
Discussion options

You must be logged in to vote

It is impossible for me to add all the Akamai manufacturer' IP addresses to the real_ip_from module

  1. Cover all Akamai manufacturer' IPs in real_ip_from by using CIDR, see http://nginx.org/en/docs/http/ngx_http_realip_module.html

  2. See if the Akamai manufacturer supports providing the original visitor IP in a special header, Just like CloudFlare provides CF-Connecting-IP header, see https://support.cloudflare.com/hc/en-us/articles/200170986

Replies: 10 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

tzssangglass
Aug 5, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

tzssangglass
Aug 10, 2021
Collaborator Author

You must be logged in to vote
1 reply
@zuiyangqingzhou
Comment options

Answer selected by tzssangglass
Comment options

You must be logged in to vote
6 replies
@aikin-vip
Comment options

@tzssangglass
Comment options

tzssangglass Sep 11, 2021
Collaborator Author

@tokers
Comment options

@aikin-vip
Comment options

@tokers
Comment options

Comment options

You must be logged in to vote
3 replies
@tzssangglass
Comment options

tzssangglass Nov 17, 2021
Collaborator Author

@hueifeng
Comment options

@hueifeng
Comment options

Comment options

You must be logged in to vote
1 reply
@jialechan
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
10 participants
Converted from issue

This discussion was converted from issue #4712 on August 10, 2021 10:54.