Skip to content

About

VirtualBox NAT lab demonstrating TCP port forwarding and SSH access from a Windows host to an Ubuntu VM.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 

Repository files navigation

πŸ” VirtualBox NAT & SSH Port Forwarding Lab

Overview

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.


🌐 Network Architecture

image

Network Configuration

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

Connection Path

Windows 127.0.0.1:2222 β†’ VirtualBox NAT β†’ Ubuntu 10.10.10.3:22


πŸ” 1. SSH Service Verification

SSH was enabled on Ubuntu and verified as actively listening on TCP port 22.

Ubuntu_Listening

The Ubuntu VM also successfully reached the Internet through the VirtualBox NAT network.


πŸ”€ 2. Port Forwarding Configuration

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
VM Forward config

The rule maps:

127.0.0.1:2222 β†’ 10.10.10.3:22


βœ… 3. End-to-End Verification

The forwarded SSH service was accessed from Windows PowerShell using:

ssh -p 2222 vboxuser@127.0.0.1
Powershell

The connection successfully reached the Ubuntu VM. The remote system was verified using:

hostname
whoami
ip addr show enp0s3

The Ubuntu interface confirmed the expected address:

10.10.10.3/24


πŸ› οΈ Skills Demonstrated

  • NAT network configuration
  • TCP port forwarding
  • SSH service configuration
  • Host-to-guest connectivity
  • TCP port mapping
  • Linux network verification
  • Remote access testing

βš™οΈ Technologies Used

Oracle VirtualBox Ubuntu Linux SSH TCP/IP NAT PowerShell


⚠️ Disclaimer

This project was completed in a locally controlled virtual lab for cybersecurity and networking education.

About

VirtualBox NAT lab demonstrating TCP port forwarding and SSH access from a Windows host to an Ubuntu VM.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors