You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/12/15 09:48:38 UTC
[GitHub] [apisix-docker] zzyork opened a new issue #253: real-ip plugin can not work
zzyork opened a new issue #253:
URL: https://github.com/apache/apisix-docker/issues/253
I deployed an apisix with docker-compose, but when using the real-ip plugin, I found that the plug-in always failed to take effect.!
This is real-ip plugin's json config:
```json
"plugins": {
"real-ip": {
"source": "X-Forwarded-For",
"trusted_addresses": [
"39.0.0.0/8",
"10.10.0.0/16"
]
}
}
```
But when I visit, access.log still records the address of 10.10.xxx.xxx. This IP address is the IP of my upper layer nginx.


should be 117.x.x.x
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] zzyork commented on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
zzyork commented on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-994589899
Did I configure it wrong?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] zzyork commented on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
zzyork commented on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-995374829
> > Did I configure it wrong?
>
> What's the tag of your apisix docker?
it's `2.11.0-alpine`
https://github.com/apache/apisix-docker/issues/253#issuecomment-994724016
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] membphis commented on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-995412872
Can you provide a full test case? We need to confirm whether it is a bug.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] zzyork removed a comment on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
zzyork removed a comment on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-995374645
> > Did I configure it wrong?
>
> What's the tag of your apisix docker?
> > Did I configure it wrong?
>
> What's the tag of your apisix docker?
it's `2.11.0-alpine`

--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] membphis closed issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
membphis closed issue #253:
URL: https://github.com/apache/apisix-docker/issues/253
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] zzyork commented on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
zzyork commented on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-997147738
> Can you provide a full test case? We need to confirm whether it is a bug.
Thank you for your help, I found the reason, because I configured a wrong plug-in in config.yaml, which caused all the plug-ins to not work. Currently real-ip has been working normally.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] zzyork removed a comment on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
zzyork removed a comment on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-995372189
it's 2.11.0-alpine

--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] zzyork commented on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
zzyork commented on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-995374645
> > Did I configure it wrong?
>
> What's the tag of your apisix docker?
> > Did I configure it wrong?
>
> What's the tag of your apisix docker?
it's `2.11.0-alpine`

--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] zzyork edited a comment on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
zzyork edited a comment on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-995374829
> > Did I configure it wrong?
>
> What's the tag of your apisix docker?
it's `2.11.0-alpine`

--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tokers commented on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-994724016
> Did I configure it wrong?
What's the tag of your apisix docker?
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] zzyork commented on issue #253: real-ip plugin can not work
Posted by GitBox <gi...@apache.org>.
zzyork commented on issue #253:
URL: https://github.com/apache/apisix-docker/issues/253#issuecomment-995372189
it's 2.11.0-alpine

--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org