ynsdl commented on issue #8488:
URL: https://github.com/apache/apisix/issues/8488#issuecomment-1344249515
OK. I added source not only "http_x_forwarded_for" but also "arg_realip" but
I can see client ip on my application server
my structure is internet --> nginx ---> apisix ---> jboss
I can see client ip on nginx;
x.x.com | **remoteAddr::8.6.2.2** | upstreamAddr::10.3.1.1:9080 |
[09/Dec/2022:12:26:11 +0000] | request:POST HTTP/2.0 | httpStatus::200 |
bytesSent::0| apiKey::- | reqTime::0.001 | upsRespTime::0.001 |
upsConnTime::0.000 | upsHeaderTime::0.001
apisix log; nginx remote addr come apisix with http_x_forwarded_for
x.x.com | **xForweededFor::8.6.2.2** | remoteAddr::10.4.2.16 |
upstreamAddr::10.34.167.39:8080 | [09/Dec/2022:12:26:12 +0000] | request:POST
HTTP/1.1 | httpStatus::200 | bytesSent::0 | userAgent::okhttp/4.9.0 | appKey::|
apiKey::| reqTime::0.001 | upsRespTime::0.000 | upsConnTime::0.000 |
upsHeaderTime::0.000
I cant see http_X_forwarded_for ip addr (8.6.2.2) at Jboss. it writes
10.4.2.16 on jboss log.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]