Cloudflare隧道RDP连接

huangapple go评论63阅读模式
英文:

Cloudflare Tunnel RDP Connection

问题

Sure, here's the translated text:

所以,我有计算机 A 和 B(都是 Windows,位于 NAT 后面),我需要从 A 通过 RDP 连接 B。根据 Cloudflare 的官方文档,我可以做到这一点。但是,我需要在计算机 A 上设置访问权限,而不是直接连接到 rdp.example.com。

我想知道是否有办法让我直接连接到 rdp.example.com,而不必首先在计算机 A 上设置访问权限。我认为 ngrok 可能可以实现这一点,不确定 Cloudflare Tunnel 是否有相应的方法。谢谢!

英文:

So I have computers A and B (both are windows and behind NAT) and I need to connect B via RDP from A. Following this official document from cloudflare, I can do this. However, I need to setup access on computer A too rather than directly connect to rdp.example.com.

I'm wondering if there is way to let me directly connect to rdp.example.com instead of having to setup access on computer A first. I think ngrok could achieve this, not sure if cloudflare tunnel has a way. Thank you!

答案1

得分: 2

使用SSH隧道可以实现这一点。然而,由于B位于NAT后面,您可以使用一些隧道服务。以下是如何使用https://pinggy.io 快速测试的方法:

在B上运行以下命令:

ssh -p 443 -R0:localhost:8000 tcp@a.pinggy.io

这将输出主机名和端口,例如:

tcp://rangonwopwjdc.a.pinggy.io:42758

现在,您可以从A连接到 rangonwopwjdc.a.pinggy.io:42758

如果您在 pinggy 上有帐户,还可以从仪表板中找到隧道地址。

我认为类似的服务也由ngrok提供,在B上需要下载和安装ngrok。

英文:

Using an ssh tunnel you can achieve this. However, since B is behind NAT, you could use some tunnelling service. Here is how to quickly test it using https://pinggy.io:

Run the following command on B:

ssh -p 443 -R0:localhost:8000 tcp@a.pinggy.io

This will output a hostname and a port such as:

tcp://rangonwopwjdc.a.pinggy.io:42758

From A you can now connect to rangonwopwjdc.a.pinggy.io:42758

If you have an account in pinggy then you can also find the tunnel address from the dashboard.

I believe similar service is provided by ngrok where you need to download and install ngrok in B.

huangapple
  • 本文由 发表于 2023年5月21日 05:48:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76297477.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定