Score:0

Port forwarding Headless VM in a VM

cn flag

At the moment I work on a Project, where I have to setup a Headless VM with VirtualBox within an Ubuntu VM. I want access the headless VM from outside with a Remote Desktop connection.

For accessing the VirtualBox VM I need to forward localhost:3389 to my network adapter 139.6.56.238.

I tried using iptables but maybe with the wrong command.

sudo iptables -t nat -A PREROUTING -s 127.0.0.1 -p tcp --dport 3389 -j DNAT --to-destination 139.6.56.238:3389

Any Ideas how to fix this problem?

ru flag
I'm confused - why do you need RDP? Ubuntu does not come with it. Is the nested VM an Ubuntu VM or Windows? The NAT rule will still function but you won't have any verification of it working if the target machine is Ubuntu and not running RDP server services on it./
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.