Page 1 of 1

Unable to get NAT working on Windows 10 laptop

Posted: 14. May 2021, 01:25
by ncowz
Hey all,

I've been trying to set up a lab with several VM's using Virtualbox.

Previously, I've used the Bridged Adaptor on my home network, which has worked fine for internet access. However the hotel internet requires portal login over WiFi and the hosts I'm using don't have native wireless built in (CentOS 8.). As such, I'm trying to set up NAT to force the connections through my Windows 10 laptop.

I've got it to the point where I can SSH to the machines themselves, but they can't seem to connect to the internet.

Here are the details of the configuration:

Host: Windows 10
Virtualbox Version: 6.1.12 r139181 (Qt5.6.2)
Guest OS: CentOS 8

I've attached the host.log, the host.vbox, the output of ifconfig on the host, and the output of ipconfig on my Windows laptop. Any help is greatly appreciated, as I've got another week left and would love to get through this before heading out into the real world and getting bogged down with actual work. Thanks!

Re: Unable to get NAT working on Windows 10 laptop

Posted: 14. May 2021, 13:08
by fth0
The network configuration looks fine to me. I'd check if the Windows Firewall prevents the connection.

Re: Unable to get NAT working on Windows 10 laptop

Posted: 14. May 2021, 16:10
by scottgus1
Another possibility, I have anecdotally noticed that sometimes Linux does not notice the change to the network adapter's IP address settings, or some such.

Make a new CentOS VM with the default NAT settings that Virtualbox chooses for the VM. If the new VM has internet through NAT, then the old CentOS VMs have not noticed the change to the NAT IP address, and the network adapter needs to be reset inside the CentOS operating system. (I have no idea how to do this... :shock: )