NAT / Port Forwarding Question
Posted: 1. Feb 2013, 05:27
Hi All,
I was doing some reading on port forwarding and started wondering how it related to running a VM to do basic tasks. Do the default settings that allow me to use a guest OS's internet browser to look at a webpage do some kind of port forwarding in order to make that possible?
Here is an example: If I set up a simple Windows guest on an OS X host and the emulated NIC is set to NAT by default, then how does VirtualBox route the internet traffic between the guest VM and the internet? On the Windows guest I can use IE to browse the web whilst also using Safari on the OS X host.
If port forwarding was being used in the situation I outlined above, then it seems I would only be able to browse the internet on IE on the guest VM because it is exclusively being forwarded requests to port 80. If I'm not wrong here, then what exactly is it that allows both the guest and host to service ports independently of each other?
I was doing some reading on port forwarding and started wondering how it related to running a VM to do basic tasks. Do the default settings that allow me to use a guest OS's internet browser to look at a webpage do some kind of port forwarding in order to make that possible?
Here is an example: If I set up a simple Windows guest on an OS X host and the emulated NIC is set to NAT by default, then how does VirtualBox route the internet traffic between the guest VM and the internet? On the Windows guest I can use IE to browse the web whilst also using Safari on the OS X host.
If port forwarding was being used in the situation I outlined above, then it seems I would only be able to browse the internet on IE on the guest VM because it is exclusively being forwarded requests to port 80. If I'm not wrong here, then what exactly is it that allows both the guest and host to service ports independently of each other?