VPN 连接后远程桌面失败

Sam*_* S. 8 networking remote-desktop vpn connection windows-server-2008

本地计算机 (comp 1) 通过远程桌面连接到远程计算机 (comp 2)。在远程计算机 (comp 2) 上,我尝试建立到另一台远程计算机 (comp 3) 的 VPN 连接。一旦我尝试建立从远程计算机 (comp 2) 到第二台远程计算机 (comp 3) 的 VPN 连接,远程桌面就会在 comp 1 上冻结。无法通过远程桌面再次连接到 comp 2。

建立 VPN 连接后,如何连接到这台远程计算机 (comp 2)?

我唯一想到的是安装第二个 NIC 并配置远程桌面以接受来自该 NIC 的连接,而 VPN 正在从另一个...

你有什么建议?

编辑:

I want to use the internet connection of the VPN, so all traffic should go over the VPN but still RDP working.

My IP: 100.0.0.1
The IP where I'm connecting via RDP: 200.0.0.20 (Mask: 255.255.255.192, Gateway: 200.0.0.193)
Where the 200.0.0.1 connects to VPN the IP of the VPN is: 65.254.61.250

Will routing like this help (Command is issued in 200.0.0.20, the RDP location):
route ADD 65.254.61.250 MASK 255.255.255.192 200.0.0.193

Couldn't add gives the error: The route addition failed: The parameter is incorrect.
I tried before connecting to VPN.
Run Code Online (Sandbox Code Playgroud)

Nei*_*eil 2

您的 VPN 和远程桌面是否使用相同的 IP 地址?如果没有,您是否使用远程网络上的默认网关?如果是,远端路由器是否支持NAT环回?如果没有,那么在建立 VPN 后您的数据包将无法路由。

编辑:抱歉,我误解了这个问题。

如果您的 VPN 设置为使用远程网络上的默认网关,那么您通常需要自己通过 VPN 连接到远程网络并重新建立远程桌面。但您可以通过添加从远程 PC 返回的静态路由来解决此问题,该路由应覆盖 VPN 默认路由。

例如,如果您的公共 IP 地址是 1.2.3.4,远程桌面的默认网关是 5.6.7.8,那么您将使用

route add 1.2.3.4 gateway 5.6.7.8
Run Code Online (Sandbox Code Playgroud)

然后,当您连接 VPN 时,远程桌面仍然知道如何将数据包路由回给您。