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/03/18 08:38:00 UTC

[GitHub] [apisix] lizj3624 opened a new issue #6658: help request: I want to add plublic IP of resolved domain to match rule of route,how i can do?

lizj3624 opened a new issue #6658:
URL: https://github.com/apache/apisix/issues/6658


   ### Description
   
   I only allow traffic of matching domain and resolved IP to enter,when apisix is deployed as a north-south traffic gateway to a cluster with many public IP。I think that  add plublic IP of resolved domain to match rule of route,how i can do?
   
   for example:
   cluster pulibic ip: 1.1.1.1,2.2.2.2,3.3.3.3
   domain: test.my.com,resolved public ip(vip): 1.1.1.1
   I only allow traffic of matching domain(test.my.com) and resolved IP(1.1.1.1) to enter,how i can do?
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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 #6658: help request: I want to add plublic IP of resolved domain to match rule of route,how i can do?

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


   @lizj3624 Always check out the docs firstly :) https://apisix.apache.org/docs/apisix/next/admin-api/#route


-- 
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] nic-6443 closed issue #6658: help request: I want to add plublic IP of resolved domain to match rule of route,how i can do?

Posted by GitBox <gi...@apache.org>.
nic-6443 closed issue #6658:
URL: https://github.com/apache/apisix/issues/6658


   


-- 
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] nic-6443 edited a comment on issue #6658: help request: I want to add plublic IP of resolved domain to match rule of route,how i can do?

Posted by GitBox <gi...@apache.org>.
nic-6443 edited a comment on issue #6658:
URL: https://github.com/apache/apisix/issues/6658#issuecomment-1072959711


   > > @lizj3624 Always check out the docs firstly :) https://apisix.apache.org/docs/apisix/next/admin-api/#route
   > 
   > please give an example,thank you very much
   
   You can use `vars` matcher with `server_addr` variable from nginx to achieve your demand. Like below:
   ```
   {
       "host": "test.my.com",
       "uri": "/*",
       "upstream": {...},
       "vars": [["server_addr", "==", "1.1.1.1"]],
       "name": "test.my.com"
   }
   ```


-- 
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] lizj3624 commented on issue #6658: help request: I want to add plublic IP of resolved domain to match rule of route,how i can do?

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


   
   
   
   
   > @lizj3624 Always check out the docs firstly :) https://apisix.apache.org/docs/apisix/next/admin-api/#route
   
   please give an example,thank you very much


-- 
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] lizj3624 commented on issue #6658: help request: I want to add plublic IP of resolved domain to match rule of route,how i can do?

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


   Ok,thank you very much.


-- 
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 #6658: help request: I want to add plublic IP of resolved domain to match rule of route,how i can do?

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


   @lizj3624 Always check out the docs firstly :) https://apisix.apache.org/docs/apisix/next/admin-api/#route


-- 
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] nic-6443 commented on issue #6658: help request: I want to add plublic IP of resolved domain to match rule of route,how i can do?

Posted by GitBox <gi...@apache.org>.
nic-6443 commented on issue #6658:
URL: https://github.com/apache/apisix/issues/6658#issuecomment-1072959711


   > > @lizj3624 Always check out the docs firstly :) https://apisix.apache.org/docs/apisix/next/admin-api/#route
   > 
   > please give an example,thank you very much
   
   You can use `vars` matcher with `server_addr` variable from nginx to archive your demand. Like below:
   ```
   {
       "host": "test.my.com",
       "uri": "/*",
       "upstream": {...},
       "vars": [["server_addr", "==", "1.1.1.1"]],
       "name": "test.my.com"
   }
   ```


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