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 2022/01/17 03:21:08 UTC
[GitHub] [apisix] hiqrf opened a new issue #6125: bug: the ip-restriction can not work if we use mutil-level angent
hiqrf opened a new issue #6125:
URL: https://github.com/apache/apisix/issues/6125
### Issue description
the ip-restriction can not work if we use mutil-level angent,because it useses ctx.var.remote_addr,this can olny fetch the ip adress of upper level like lsb
### Environment
- apisix version (cmd: `apisix version`):
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
- apisix-dashboard version, if have:
- the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
- luarocks version, if the issue is about installation (cmd: `luarocks --version`):
### Steps to reproduce
1、use a SLB in front of apisix
2、enable ip-restriction plugin
3、the SLB olny fetch the slb's ip ,so it can not work correctly
4、may be we can use ctx.var.http_x_forwarded_for instead
### Actual result
the ip-restriction plugin can work even if we use mutil-level angent,
### Error log
no error log provide
### Expected result
_No response_
--
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] tokers commented on issue #6125: enhancement: the ip-restriction can not work if we use mutil-level angent
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #6125:
URL: https://github.com/apache/apisix/issues/6125#issuecomment-1014345448
I updated the title from `bug` to `enhancement`, it's not 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] hiqrf commented on issue #6125: enhancement: the ip-restriction can not work if we use mutil-level angent
Posted by GitBox <gi...@apache.org>.
hiqrf commented on issue #6125:
URL: https://github.com/apache/apisix/issues/6125#issuecomment-1016072827
we can solve this problem with the real ip plugin
--
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] hiqrf closed issue #6125: enhancement: the ip-restriction can not work if we use mutil-level angent
Posted by GitBox <gi...@apache.org>.
hiqrf closed issue #6125:
URL: https://github.com/apache/apisix/issues/6125
--
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