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

本秂侑毒 提交于 2019-12-04 04:36:39

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.

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.

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.

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