简体   繁体   English

将请求从计算引擎 (GCP) 转发到本地 API

[英]Forward request from compute engine (GCP) to on-premise API

I'm trying to forward requests from a compute engine instance to an internal API (its an on-premise API that communicates to the VM through Cloud VPN ) but without luck, I tried to research how to accomplish this, but with no results.我正在尝试将来自计算引擎实例的请求转发到内部 API (它是通过Cloud VPN与 VM 通信的本地 API )但没有运气,我试图研究如何实现这一点,但没有结果。

Someone knows how to achieve it?.有人知道如何实现吗? In short my goal is to access the on-premise API from my local computer for development purpose using the CE as a proxy.简而言之,我的目标是使用 CE 作为代理从我的本地计算机访问本地 API 用于开发目的

I am open to create more resources or to change the CE instance if there its a better way to handling this.如果有更好的处理方法,我愿意创建更多资源或更改 CE 实例。

My VM is a simple Debian 10 machine.我的VM是一台简单的Debian 10机器。

As John Hanley commented.正如约翰汉利所说。 You can accomplish this by doing SSH tunneling using the CE instance as the middle man.您可以通过使用 CE 实例作为中间人执行 SSH 隧道来完成此操作。

A good tutorial to follow is this one, which is from the GCP community itself.一个很好的教程是 这个,它来自 GCP 社区本身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从本地访问 Azure 私有端点 - Access Azure Private Endpoint from on-premise 无法从 Compute Engine 虚拟机实例 (GCP) 连接到 Memorystore - Cannot Connect to Memorystore from Compute Engine Vm Instance (GCP) 从 Azure 分支 vnet 访问本地网络 - Access on-premise network from Azure spoke vnet Compute Engine 虚拟机未响应请求 - Compute Engine VM not responding to request 在使用GCP Compute Engine时无法查看Apache Airflow GUI - Can't view Apache Airflow GUI on using GCP Compute Engine 想要在没有互联网的情况下将文件从私有本地实例 (VM) 传输到谷歌云存储 - Want to transfer file from private on-premise Instance (VM) to google cloud storage without internet 使用 GCP Compute Engine 作为 Authenticated Cloud Run Service 的代理 - Use GCP Compute Engine as proxy for Authenticated Cloud Run Service Kubernetes本地Ingress流量策略本地 - Kubernetes on-premise Ingress traffic policy local 将本地 BeyondTrust 路由到 Azure 云 - Routing on-premise BeyondTrust to Azure cloud 您如何同步本地和 AWS 云中的 DNS 服务器? - How did you sync DNS servers in on-premise and AWS Cloud?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM