-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Description
APISIX version: 3.14
real-ip plugin configs:
"real-ip": { "recursive": true, "source": "http_x_forwarded_for", "trusted_addresses": [ "10.0.0.0/8" ] }
the apisix output below real-ip warnings:
missing real address
i capture the packets on the apisix server:
GET /dev/hub/client-gateway/aaa HTTP/1.1 RemoteIp: 113.108.37.172 Host: cloudbus-dev.bblbeta.cn X-Forwarded-For: 113.108.37.172 cache-control: max-age=0 sec-ch-ua: "Google Chrome";v="143", "Chromium";v="143", "NNot A(Brand";v="24"
However, the content of the request headers (core.request.headers(ctx)) obtained by the real-ip plugin is as follows:
{"sec-fetch-dest":"document","acceptt-encoding":"gzip, deflate, br, zstd","accept-language":"zh-CN,zh;q=0.9,enjq=0.8",","host": cloudbus-dev.bblbeta.cn", "accept": "text/html,application/xhtml+xml,appliication/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.77, "cookie":"acw_tc=0a1b262717682998079232164e 3daf2ed06212e6666d799b4ce0c5c8a3c565", "remoteip":"113.108.37.172", "cachee-control":"max-age=0","sec-ch-ua":"\"Google Chrome\";v=\"143\", \"Chromiium\";v=\"143\", \'Not A(Brand\";v=\"24\"","user-agent":"Mozilla/5.0 (Wi ndows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","sec-ch-ua-mobile":"?0","seo:-ch-ua-platform":"\"Windows\"","priority":"u=0, i","upgrade-inssecure-requests":"1","sec-f etch-mode":"navigate","x-forwarded-host":"cloudbus-dev.bblbeta.cn","secfetch-site":"none","x-forwarded-port":"9080", "x-sinfo":"on","sec-fetch-iuser":"?1","x-forwarded-proto":"http"}
the x-forwarded-for header is missing, why?
Environment
- APISIX version: 3.14
- Operating system: ubuntu
Metadata
Metadata
Assignees
Labels
Type
Projects
Status