kingmouse-yx commented on issue #6537:
URL: https://github.com/apache/apisix/issues/6537#issuecomment-1061380537
> > > > > > > Do you access Apisix directly, or do you add a layer of
proxies, such as Nginx or SLB
> > > > > > > ref:#4712
> > > > > >
> > > > > >
> > > > > > I access Apisix directly.
> > > > >
> > > > >
> > > > > How did you verify that? curl?
> > > >
> > > >
> > > > yes
> > >
> > >
> > > pls show you cmd
> >
> >
> > curl --location --request POST '127.0.0.1:9080/mock/521171/aa'
--data-raw ''
>
> ```yaml
> {
> "uri": "/mock/521171/aa",
> "name": "test1111",
> "methods": [
> "POST"
> ],
> "plugins": {
> "ip-restriction": {
> "blacklist": [
> "127.0.0.1"
> ],
> "disable": false
> }
> },
> "upstream": {
> "nodes": [
> {
> "host": "127.0.0.1",
> "port": 80,
> "weight": 1
> }
> ],
> "timeout": {
> "connect": 6,
> "send": 6,
> "read": 6
> },
> "type": "roundrobin",
> "scheme": "http",
> "pass_host": "pass",
> "keepalive_pool": {
> "idle_timeout": 60,
> "requests": 1000,
> "size": 320
> }
> },
> "status": 1
> }
> ```
>
> ```shell
> curl --location --request POST '127.0.0.1:9080/mock/521171/aa' --data ''
> ```
>
> ```
> {"message":"Your IP address is not allowed"}
> ```
I guess I understand.
I use docker to run apisix, when I enter the container, I find that it’s the
same as my expectation.
But when I test it directly on the Linux host, it is completely contrary to
my expectation.
So if I run it with docker, do I need to ref: #4712?
--
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]