You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "qiankangjian (via GitHub)" <gi...@apache.org> on 2023/02/10 05:35:08 UTC

[GitHub] [shenyu] qiankangjian opened a new issue, #4373: [Question] Can shenyu be used as an egress gateway?

qiankangjian opened a new issue, #4373:
URL: https://github.com/apache/shenyu/issues/4373

   ### Question
   
   To manage various third party APIs, we need a reverse-proxy gateway to take the role as egress gateway, the request traffic path will be: micro services->egress gateway->third APIs. so can shenyu be used as an egress gateway?


-- 
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@shenyu.apache.org.apache.org

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


[GitHub] [shenyu] qiankangjian commented on issue #4373: [Question] Can shenyu be used as an egress gateway?

Posted by "qiankangjian (via GitHub)" <gi...@apache.org>.
qiankangjian commented on issue #4373:
URL: https://github.com/apache/shenyu/issues/4373#issuecomment-1425272379

   > As a gateway, shenyu does not distinguish between forward proxy and reverse proxy. You can use reverse proxy to proxy your service or even tripartite service (we do this internally).
   ------------------------
   3rd API: GET http://www.weather.com.cn/m2/i/icon/faviconie9.ico
   <img width="587" alt="image" src="https://user-images.githubusercontent.com/33289104/218022180-34ce2d05-03d1-4003-a1a1-83128132ea53.png">
   config on the admin ui manually:
   <img width="1044" alt="image" src="https://user-images.githubusercontent.com/33289104/218021048-14bb3f18-1c41-4cea-a588-1aaa82309616.png">
   <img width="821" alt="image" src="https://user-images.githubusercontent.com/33289104/218021302-9ed876e7-1e1e-4042-beab-751eece3108e.png">
   
   Call GET http://localhost:9195/m2/i/icon/faviconie9.ico, the result is :
   <img width="581" alt="image" src="https://user-images.githubusercontent.com/33289104/218021814-6c38a06e-35f0-4e05-8677-43943aea1bd8.png">
   
   so why I got a 403 Forbidden response? any configuration 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@shenyu.apache.org

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


[GitHub] [shenyu] KevinClair commented on issue #4373: [Question] Can shenyu be used as an egress gateway?

Posted by "KevinClair (via GitHub)" <gi...@apache.org>.
KevinClair commented on issue #4373:
URL: https://github.com/apache/shenyu/issues/4373#issuecomment-1425249842

   of course.


-- 
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@shenyu.apache.org

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


[GitHub] [shenyu] iwangjie commented on issue #4373: [Question] Can shenyu be used as an egress gateway?

Posted by "iwangjie (via GitHub)" <gi...@apache.org>.
iwangjie commented on issue #4373:
URL: https://github.com/apache/shenyu/issues/4373#issuecomment-1425828509

   It seems that the other website has made source restrictions


-- 
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@shenyu.apache.org

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


[GitHub] [shenyu] iwangjie commented on issue #4373: [Question] Can shenyu be used as an egress gateway?

Posted by "iwangjie (via GitHub)" <gi...@apache.org>.
iwangjie commented on issue #4373:
URL: https://github.com/apache/shenyu/issues/4373#issuecomment-1426007945

   I gave it a try, you need to enable the request plug-in to mark a request header Host, otherwise the request will be blocked by NGINX, the server you are proxied to, I will try to solve this problem later, you can proxied in this way!
   
   ![image](https://user-images.githubusercontent.com/23075587/218135921-a28af4d9-6c46-4ad3-a838-635a3fcd4f19.png)
   


-- 
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@shenyu.apache.org

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


[GitHub] [shenyu] qiankangjian closed issue #4373: [Question] Can shenyu be used as an egress gateway?

Posted by "qiankangjian (via GitHub)" <gi...@apache.org>.
qiankangjian closed issue #4373: [Question] Can shenyu be used as an egress gateway?
URL: https://github.com/apache/shenyu/issues/4373


-- 
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@shenyu.apache.org

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


[GitHub] [shenyu] iwangjie commented on issue #4373: [Question] Can shenyu be used as an egress gateway?

Posted by "iwangjie (via GitHub)" <gi...@apache.org>.
iwangjie commented on issue #4373:
URL: https://github.com/apache/shenyu/issues/4373#issuecomment-1425225267

   As a gateway, shenyu does not distinguish between forward proxy and reverse proxy. You can use reverse proxy to proxy your service or even tripartite service (we do this internally).


-- 
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@shenyu.apache.org

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


[GitHub] [shenyu] qiankangjian commented on issue #4373: [Question] Can shenyu be used as an egress gateway?

Posted by "qiankangjian (via GitHub)" <gi...@apache.org>.
qiankangjian commented on issue #4373:
URL: https://github.com/apache/shenyu/issues/4373#issuecomment-1426764185

   Thanks.


-- 
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@shenyu.apache.org

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