Heroku app calling external web service on a VPN [closed]

半腔热情 提交于 2019-12-21 09:29:15

问题


  1. So, we have a Heroku app.
  2. We have a web service running on an intranet.
  3. That intranet needs a VPN connection for outsiders to connect.
  4. We want our Heroku app to call the web service on the intranet, via VPN.

How would you tackle this?

Some thoughts....

Heroku doesn't seem to have a VPN client we can activate on our app :(

I'm aware some routers can handle the VPN gubbins for us. Is there an online service that let's us setup a VPN proxy to our intranet site?

Thanks in advance

T


回答1:


It's not going to be possible I'm afraid, certainly at least not via VPN. Heroku uses Amazon EC2 so you can't even narrow it down to an IP range to permit access. Heroku is a closed system so you can't install additional components so unless it's something accessible via http/https then it's a no go.




回答2:


I think you could use a static ip address add on to ensure your app connected via that ip address.

https://devcenter.heroku.com/articles/quotaguardstatic

But I don't know how that gets you to a VPN.




回答3:


If your company have Heroku Enterprise, looks like it could be done within Private Space: [https://blog.heroku.com/heroku_private_spaces_are_now_generally_available_within_heroku_enterprise]

[https://devcenter.heroku.com/articles/private-spaces]

Otherwise the easiest way I could think of is to spin up an proxy server in your DMZ that is restricted access from your Heroku app... with setting static IP suggestion above from mooreds.



来源:https://stackoverflow.com/questions/10618489/heroku-app-calling-external-web-service-on-a-vpn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!