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/06/03 17:16:41 UTC

[GitHub] [apisix] hozaifaaoud opened a new issue #4372: request help:

hozaifaaoud opened a new issue #4372:
URL: https://github.com/apache/apisix/issues/4372


   ### Issue description
   
   ### Environment
   
   Request help without environment information will be ignored or closed.
   
   apisix version (cmd: apisix version): 2.5
   OS (cmd: uname -a): 60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
   OpenResty / Nginx version (cmd: nginx -V or openresty -V): nginx version: openresty/1.19.3.1
   etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API): "3.4.0"
   apisix-dashboard version, if have:
   luarocks version, if the issue is about installation (cmd: luarocks --version): 3.4.0
   
   I use ip_restriction plugin ... and if I added IP "0.0.0.0" for a consumer to allow all traffic for it .... then try to access APISIX using this consumer key then It returns "Your IP address is not allowed"
   could you please help?
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4372: request help:

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4372:
URL: https://github.com/apache/apisix/issues/4372#issuecomment-854302201


   @hozaifaaoud Try `0.0.0.0/0`.


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] hozaifaaoud commented on issue #4372: request help:

Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #4372:
URL: https://github.com/apache/apisix/issues/4372#issuecomment-854128049






-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] hozaifaaoud commented on issue #4372: request help:

Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #4372:
URL: https://github.com/apache/apisix/issues/4372#issuecomment-854162834


   Sorry, could you please explain what do you mean by " you should do so in config"???
   So what is the way to allow all traffic and use the ip_restriction plugin at the same time?


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Yiyiyimu commented on issue #4372: request help:

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on issue #4372:
URL: https://github.com/apache/apisix/issues/4372#issuecomment-854229210


   That's two different levels of "traffic control" and not related to each other.
   
   For the problem in #4363, it is who can access apisix control plane and do the settings. For ip-restriction, it is who can access apisix to direct their traffic.
   
   Since you could access apisix control plane (#4363), the first problem is solved. To get over `Your IP address is not allowed`, you could just use IP address of your local machine as the argument in `ip-restriction`.


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4372: request help:

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4372:
URL: https://github.com/apache/apisix/issues/4372#issuecomment-854302201


   @hozaifaaoud Try `0.0.0.0/0`.


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] hozaifaaoud commented on issue #4372: request help:

Posted by GitBox <gi...@apache.org>.
hozaifaaoud commented on issue #4372:
URL: https://github.com/apache/apisix/issues/4372#issuecomment-854128049


   Here is the request 
    curl -X GET "192.168.148.8:9080/v4/eth/transaction/0x5aaa6ac9e2cc4fd9b9d55184573d079e41bf92cff6891ecf6da1985786223852" -H "x-api-key: MedfQ7ZuPG5dvRNWetOES78HUj59xsG85FU16I4z"
   
   Here is the response:
   {"message":"Your IP address is not allowed"}
   
   consumer details :
   {
     "username": "1104",
     "plugins": {
       "ip-restriction": {
         "whitelist": [
           "0.0.0.0"
         ]
       },
       "key-auth": {
         "key": "MedfQ7ZuPG5dvRNWetOES78HUj59xsG85FU16I4z"
       }
     }
   }


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Yiyiyimu commented on issue #4372: request help:

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on issue #4372:
URL: https://github.com/apache/apisix/issues/4372#issuecomment-854149702


   I don't think `0.0.0.0` in whitelist is the way to allow all traffic, since there's no need to do so. If it's related to #4363, you should do so in config


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Yiyiyimu commented on issue #4372: request help:

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on issue #4372:
URL: https://github.com/apache/apisix/issues/4372#issuecomment-854124116






-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Yiyiyimu commented on issue #4372: request help:

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on issue #4372:
URL: https://github.com/apache/apisix/issues/4372#issuecomment-854124116


   Hi @hozaifaaoud can you show some detail about what you did


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org