NAT network
The NAT network mode is different from the NAT mode.
Last updated
The NAT network mode is different from the NAT mode.
Last updated
The following are the features of the NAT network settings:
Does not allow connection to the host machine (NAT gateway IP address)
Does not allow connection to the guest machine from the host
Does not allow connections to the machines on the same LAN as the host machine
Allows internet access
This network configuration is similar to the "NAT" network settings, with the only difference that this method does not allow connections to the host machine. The example scenario below illustrates this.
Given the following configurations:
Guest machine in a "NAT network" network setting (note: this is different from the "NAT " network setting)
Host machine with 2 services running: 111/tcp
, 631/tcp
, IP: 10.0.22.1
Note the 2 services are known to be running as with discovered when the guest machine is connected to the host with a "NAT" network setting.
The following image below displays the output from an nmap
scan on the host machine (from the guest machine). As we can see, the only service available is on port 53 (DNS).
The image below illustrates 3 connections:
TCP connection to port 111 — connection refused, even though the service is actually running
TCP connection to port 112 — control purposes
TCP connection to port 631 — connection refused, but
it is actually running, same as with port 111
The NAT network configuration allows us to create an isolated and secure environment for a machine, where connections to the host machine are disabled.
Assume there is a need to simulate a LAN environment involving 2 machines, where 1 is the attacker, and another the target. Suppose there is only a single computer running VirtualBox to work with, where the physical network interface on the host machine is not enabled.
The NAT network mode can be used to simulate the LAN environment, along with selection of the operating system of choice of each machine on the LAN. In this case, the host machine would be acting as the router, with switching and routing functions.