This project demonstrates NAT networking and TCP port forwarding using Oracle VirtualBox. An Ubuntu VM is placed behind a NAT network, with SSH access provided through a controlled port-forwarding rule from the Windows host.
| Component | Configuration |
|---|---|
| NAT Network | 10.10.10.0/24 |
| NAT Gateway | 10.10.10.1 |
| Ubuntu VM | 10.10.10.3 |
| Ubuntu SSH Port | 22 |
| Windows Host | 127.0.0.1 |
| Forwarded Host Port | 2222 |
Windows 127.0.0.1:2222 β VirtualBox NAT β Ubuntu 10.10.10.3:22
SSH was enabled on Ubuntu and verified as actively listening on TCP port 22.
The Ubuntu VM also successfully reached the Internet through the VirtualBox NAT network.
A TCP port-forwarding rule was configured in VirtualBox:
| Setting | Value |
|---|---|
| Name | SSH-Ubuntu |
| Protocol | TCP |
| Host IP | 127.0.0.1 |
| Host Port | 2222 |
| Guest IP | 10.10.10.3 |
| Guest Port | 22 |
The rule maps:
127.0.0.1:2222 β 10.10.10.3:22
The forwarded SSH service was accessed from Windows PowerShell using:
ssh -p 2222 vboxuser@127.0.0.1
The connection successfully reached the Ubuntu VM. The remote system was verified using:
hostname
whoami
ip addr show enp0s3The Ubuntu interface confirmed the expected address:
10.10.10.3/24
- NAT network configuration
- TCP port forwarding
- SSH service configuration
- Host-to-guest connectivity
- TCP port mapping
- Linux network verification
- Remote access testing
Oracle VirtualBox Ubuntu Linux SSH TCP/IP NAT PowerShell
This project was completed in a locally controlled virtual lab for cybersecurity and networking education.