F
F
fooz2015-12-09 20:23:47
Hyper-V
fooz, 2015-12-09 20:23:47

How to set up RDP to a virtual machine through NAT?

There is a machine with Windows Server 2008 R2 with an external static IP xxxx
This server is running a Hyper-V virtual machine with Windows 7 with IP in the virtual network yyyy
You need to organize a direct connection from the external network to the virtual machine via RDP.
From external network to xxxx via RDP connection Ok. From xxxx (host) to yyyy via RDP connection Ok.
I configure NAT on the host through the Routing and Remote Access service to forward ports to yyyy The connection from the external network stops working.
For the purity of the experiment, I tried to stop the Windows Firewall services, it does not help.
Tell me where to look, what to twist?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan, 2020-01-09
@msHack

Yggdrasil is an open source analog of hamachi, only better with it you can create game servers for nat, host sites for nat, host ftp for nat, use rdp while behind nat, Yggdrasil works with any program that supports ipv6 ipv4
Download here https:// yggdrasil-network.github.io/installation.html
nodes here https://github.com/yggdrasil-network/public-peers/...
Installation Create a folder yggdrasil throw it in c:\Program Files download tap-windows-9.9 .2_3 install then download yggdrasil-0.3.12-windows-amd64.exe itself rename it to yggdrasil and drop it into the yggdrasil folder
create a configuration file with the command
"C:\Program Files\Yggdrasil\yggdrasil.exe" -genconf > "C:\ Program Files\Yggdrasil\yggdrasil.conf"
add Peers nodes to config
: [
tcp://abcd:xxxxx
socks://efgh:xxxxx/abcd:xxxxx
tls://abcd:xxxxx
]
run yggdrasil
"C:\Program Files\Yggdrasil\yggdrasil.exe" -useconffile "C:\Program Files\Yggdrasil\yggdrasil.conf"
Video https://www.youtube.com/watch?v=Hp1O-4fZbOE&t=94s

I
Ivan Bazaichenko, 2016-01-12
@Banzaii

I have a Windows Server 2008 R2 machine with an external static IP xxxx

What is meant. The external address is provider looks in a global network. Or is your private one looking at LAN?
If the first option, I would dodge this way. I would raise one more virtual machine, RRAS would roll on it. It has two Wirth interfaces. One looks into the interface of the iron server, the second looks into the Wirth network of the hypervisor. Accordingly, on the physical interface of the server host, you need to wipe all the provider settings and register them on the virtual interface. Next, correctly paint the routing / masquerading between networks and voila.
If the second var, then what prevents you from mapping the Wirth interface to the physical interface and you don’t need to forward anything.
But this is my flight of thought. because I didn't fully understand the configuration.

T
tedkuban, 2016-03-03
@tedkuban

Naturally, RDP to the external network will stop working, because you forwarded it to the internal network. It is necessary to forward another port to the virtual machine in order to retain the ability to connect to two machines at once, or, if the clients do not change the port, take a second external IP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question