Skip to content

(10) Traffic‐Webhost Build Instructions

chipmanfu edited this page Jan 3, 2024 · 4 revisions

Build a Ubuntu 22 Server VM

  • VM Name: Traffic-Webhost
  • OS Image to use: ubuntu-22.04-live-server-amd64.iso     Available at (https://ubuntu.com/download/server)
  • Guest OS Family: linux
  • Guest OS version: Ubuntu (x64) (VMware)     or 6.x - 2.6 Kernel (ProxMox)
  • Hardware settings: 1 CPU / 2GB RAM / 80 GB HD / 2 NIC
    • Add 1 Network Adapter
      • Set the Network Adaptor 1: “AdminNet
      • Set the Network Adaptor 2: “ServicesNet

During install, accept all defaults, only add OpenSSH during install. Also use the following for initial values;

  • Your name: user
  • Server name: traffic-webhost
  • Username: user
  • Password: toor

After the install finishes, disconnect the iso, reboot and log in as User.

Then from the commandline, we’ll set the root password and get the IP.
     sudo bash
     passwd
     ip a          # Take note of the first interfaces IP, should be like 172.30.0.x

Copy the Cyber-Range folder from the IA-Proxy to the Traffic-Webhost server

On the IA-Proxy VM
Open a terminal as root. (NOTE: you should be on the IA-Proxy VM)
     cd /home/user
     scp -r Cyber-Range/ [email protected]:/home/user          # _172.30.0.x _is IP from Traffic-Webhost

On the Traffic-Webhost VM
NOTE: Take a snapshot at this point, so you can revert if something goes wrong with the build. After the snapshot continue on.
Run the following. (NOTE: You should be back on the Traffic-Webhost VM)
     cd /home/user/Cyber-Range
     ./ubuntubuild.sh
          On the script menu select, “7) Traffic-WebHost", then enter “y” to confirm.

When it finishes, reboot
     shutdown -r now

When it comes back up, log in as root and do the following
     ls /var/www/html          # you should see several directories.

This completes the Traffic-Webhost install and the Cyber Range install.
From Kali go to https://redbook.com/ to see the Cyber Range documentation.