Build your practice lab
Table Bay Online and everyone in it are invented for this course, and so is every address, account, document and message in the examples. Real organisations and products, such as Microsoft, Oracle, Canonical and Deciso, are named only for what they themselves publish.
Before you change a single setting at Table Bay Online, you need somewhere to practise where a mistake costs nothing. This module builds it: three virtual machines on your own computer, joined by virtual networks that nothing outside them can reach. Every later module does its technical work here.
1. Why a lab, and why only your own
Learning security means breaking things. In this course you will lock down a firewall's administration page and may lock yourself out of it, change how a server accepts SSH sign-ins, try to delete backups to prove you cannot, and plant suspicious events so that you can find them. On a business's real systems, any of these can stop it trading or expose its customers' personal information. On systems you do not own, they can be a crime.
"Any person who unlawfully and intentionally accesses a computer system or a computer data storage medium, is guilty of an offence." The Act explains access widely. Under section 2(2)(b), a person accesses a computer system if they use data or a computer program held in it, store data on it, or "instructs, communicates with, or otherwise uses, the computer system".
Cybercrimes Act 19 of 2020, section 2(2)(a) and (b), read on 10 November 2026Notice how little it takes to "access" a system in the Act's sense: communicating with it is enough. Sending test traffic at a computer that is not yours, even out of curiosity, can fall inside it. Work on a business's systems needs that business's permission. At Table Bay Online you have a written contract with Naledi Mahlangu, the owner. While you are learning, the surest way to stay on the right side of the Act is simpler still: practise only on machines you built yourself.
So this course has four rules, and every task keeps them:
- Every technical task runs in your own lab, on the virtual machines you build in this module.
- Every check points at your own lab machines. A ping, a port test or a name lookup is aimed at a lab address, never at someone else's server. Ordinary use is the only exception: downloading software and reading documentation.
- Nothing is pointed at anyone else's systems: not your employer's, not a client's, not a neighbour's Wi-Fi, not a public website.
- Real changes at a real business come later, with the owner's agreement, and only once you have proved them in the lab.
2. Table Bay Online's office, and the lab that stands in for it
Table Bay Online (Pty) Ltd sells homeware and kitchen goods from South African makers through its own web shop, from a two-person office and stockroom at 3 Dock Lane, Salt River. Naledi Mahlangu owns and runs it. Jason Petersen handles operations, customer service and the web shop's day-to-day settings.
In October 2026 the business had a scare. A port forward on the fibre router, set up by the freelance web developer in March 2023 so that Naledi could reach files from home, had left the storage box's sign-in page open to the internet. Between 23:10 on Wednesday 21 October and 05:55 the next morning the box recorded 1,412 failed sign-ins. Jason removed the forward on Friday 23 October and changed the password. Module 1 tells the story in full. Naledi then engaged you as Table Bay Online's outside IT administrator, from Monday 2 November 2026, with a short brief: "Find out what we have, make it safe, and show me it stays safe."
You cannot practise on her office, so you build a small copy of it. The lab has the same kinds of machine doing the same jobs, on private addresses of its own. Keep the two worlds apart in your head: an address starting 192.168.1. is always Table Bay Online's real office, and an address starting 10.10. or 10.0.50. is always your lab.
| Lab machine | What it is | Stands in for | Built in |
|---|---|---|---|
lab-fw01 | OPNsense 26.7, a firewall | The fibre router, replaced by a proper firewall | Module 0 |
LAB-PC01 | Windows 11 Enterprise, version 26H2, evaluation edition | Jason's laptop, TBO-LT02 | Module 0 |
lab-srv01 | Ubuntu Server 26.04.1 LTS | The storage box and its shared folders, and a Linux server like the shop's | Module 0 |
lab-bak01 | Ubuntu Server 26.04.1 LTS | A protected backup copy, away from the machine it protects, which the office never had | Module 7 |
The lab is smaller than the office on purpose: one Windows client stands for both laptops, and one Linux server holds the storage box's shared folders. What matters is that each kind of weakness the office has can be built, found and fixed in the lab.
3. What you need
Check your computer against this list before you download anything. Task 1 shows you how to check each item.
- A 64-bit Intel or AMD processor with hardware virtualisation (Intel VT-x or AMD-V) switched on in the computer's firmware settings. Four cores or more is comfortable. An Apple silicon Mac cannot run this lab: VirtualBox on Apple silicon runs only Arm guests, and OPNsense publishes images for Intel and AMD processors only.
- 16 GB of memory. The three machines use about 9 GB together, and about 10 GB once lab-bak01 joins in Module 7.
- At least 100 GB of disk space available, 150 GB to be comfortable, preferably on an SSD.
- A 64-bit Windows 11, a current 64-bit Linux, or macOS on an Intel Mac, of a version VirtualBox 7.2 supports, and administrator rights to install software on it.
- An internet connection for about 12 GB of downloads and updates.
- A phone with an authenticator app, any app that shows time-based one-time codes, for Module 2.
| Software | Version | Licence, in plain words | Where |
|---|---|---|---|
| Oracle VirtualBox, the platform package | 7.2.22, released 20 October 2026 | Open-source, under the GNU GPL version 3. The separate Extension Pack has a personal-use licence of its own: the lab does not need it, so do not install it. | https://www.virtualbox.org/wiki/Downloads |
| OPNsense, the dvd image | The 26.7 image (15 July 2026), updated after installation to the latest point release, 26.7.8 (30 October 2026) | Open-source, under the two-clause BSD licence | https://opnsense.org/download/ |
| Ubuntu Server | 26.04.1 LTS, supported until April 2031 | Open-source | https://ubuntu.com/download/server |
| Windows 11 Enterprise, version 26H2 | The 90-day evaluation edition, x64 | Microsoft's evaluation terms: register, no product key, 90 days from installation | https://www.microsoft.com/en-us/evalcenter/evaluate-windows-11-enterprise |
| KeePassXC, a password manager for your own computer | 2.8.0 | Open-source, under the GNU GPL version 3 | https://keepassxc.org/ |
| 7-Zip, on a Windows computer only, to unpack the OPNsense image | 26.06, released 6 November 2026 | Open-source, mostly under the GNU LGPL | https://www.7-zip.org/ |
These are the versions on the day this module was written. Software moves on, so check each page for a newer release before you download. A newer point release of the same version (VirtualBox 7.2.x, OPNsense 26.7.x, Ubuntu 26.04.x) works with every step here. The lab's names and addresses never change.
Microsoft's evaluation page said on 10 November 2026: "To use Windows 11 Enterprise, you must sign into your PC with a Microsoft account. The option to create a local account will be made available at the time of the final release." So you create a Microsoft account for the lab only and use it when Windows asks. That keeps your own account, with its email, files and saved passwords, off a machine you will deliberately leave weak and may rebuild several times. The same page warns that if the evaluation is not activated or its 90 days run out, "the desktop background will turn black, you will see a persistent desktop notification indicating that the system is not genuine, and the PC will shut down every hour." If Microsoft offers a local account at setup by the time you build the lab, use a local account instead.
On a Windows computer, VirtualBox and Microsoft's own hypervisor can conflict. VirtualBox's manual says to disable Hyper-V when running VirtualBox, and notes that the security features Core Isolation and Memory Integrity use Hyper-V too. It also warns that turning such features off "impacts on the overall security of the host". VirtualBox usually still runs alongside them, more slowly, and shows a green turtle on the processor icon in the machine's status bar when it does. Try the lab with your security features on first. Turn them off only if the lab is too slow to use, knowing what you give up, and never on a computer someone else manages without asking them.
Three other choices were considered and not used. pfSense CE (2.9.0 on 10 November 2026) is a capable firewall, but its downloads now come through Netgate's installer, reached through Netgate's online store, rather than as a direct image, and OPNsense's direct download, published checksums and open licence suit a lab you build yourself. Hyper-V would build a fine lab, but only on a Windows computer. VirtualBox's bridged and host-only adapters would join the lab to your own network or your own computer, which is exactly what an isolated lab must not do.
4. How the lab's networks work
VirtualBox gives each virtual machine up to four network adapters in its settings, and each adapter is attached in one of several modes. The mode decides what the machine can reach and what can reach it. This table follows the overview in VirtualBox's manual for version 7.2.
| Mode | The machine can reach | What can reach the machine | In this lab |
|---|---|---|---|
| NAT (the default) | Your computer, your home network and the internet | Nothing, unless you set a port forward. Not even other virtual machines. | Not used. Change it on every machine. |
| NAT Network | Other machines on the same NAT Network, your computer, your home network and the internet | Other machines on the same NAT Network only, unless you set a port forward | tbo-wan, lab-fw01's WAN only |
| Internal network | Only other machines attached to an internal network of the same name | The same machines only. Your computer cannot see it. | tbo-lan, tbo-srv and tbo-guest |
| Bridged | Everything your computer's network can reach | Everything on your home network | Never |
| Host-only | Your computer and the other machines on it | Your computer and the other machines on it | Never |
The lab uses only two modes. The three internal networks are like three separate network switches inside VirtualBox: a machine plugged into tbo-lan can talk only to other machines plugged into tbo-lan. The only machine plugged into all of them is lab-fw01, so every packet between a segment and the outside, and between segments, has to pass through the firewall.
lab-fw01's first adapter, its WAN, is on tbo-wan, a NAT Network. It plays the internet. VirtualBox's NAT service works like a home router: nothing outside can start a connection into tbo-wan, and the firewall's outgoing traffic leaves through your computer's own connection. Notice the second column of Table 3, though. A machine on a NAT Network can reach your home network too. Until Module 3 adds a rule that blocks private address ranges, a lab machine could open your home router's administration page. Do not point anything at it. That rule is one of the first things you will prove works.
The firewall hands out addresses on the LAN by DHCP, from 10.10.10.150 to 10.10.10.199, and answers name lookups for the lab with its resolver, Unbound. The machines you will write rules about get fixed addresses instead: LAB-PC01 is always 10.10.10.101 and lab-srv01 always 10.10.30.10. A firewall rule that names an address is only as good as the address staying put.
One convenience needs a decision. VirtualBox's Guest Additions can share the clipboard with your computer, a path out of the machine, which is why VirtualBox's manual says it is "disabled by default" for security reasons. You turn it on, both ways, on LAB-PC01 only, so that you can paste command output into your lab binder. Drag and drop stays off, no machine gets a shared folder, and the firewall and servers get no Guest Additions: you reach them from LAB-PC01 by SSH and the browser, as you would a real server.
- lab-fw01: WAN em0 by DHCP on tbo-wan (10.0.50.0/24), LAN em1 10.10.10.1, SERVERS em2 10.10.30.1, GUEST em3 10.10.20.1 (Module 3).
- LAB-PC01: 10.10.10.101, gateway and DNS 10.10.10.1.
- lab-srv01: 10.10.30.10, gateway and DNS 10.10.30.1, search domain lab.internal.
- lab-bak01 (Module 7): 10.10.30.20.
- The lab's domain is lab.internal and its time zone Africa/Johannesburg.
- Passwords live in TBO-Lab.kdbx on your own computer, never inside the lab.
5. Check every download before you install it
The installers you download are the first things in your lab you will trust completely. A firewall image altered by someone else would sit at the centre of every test you run. A download can be damaged in transit, served by a mirror that has been tampered with, or swapped by a lookalike site. So before you install anything, you prove that the file is the one the project published.
The proof is a checksum. A SHA-256 checksum is a 64-character fingerprint calculated from every byte of a file. Change one byte and the fingerprint changes completely. Each project publishes the fingerprint of its genuine file. You calculate the fingerprint of your copy and compare them. If they match, your file is the one the project published the checksum for.
| Your computer | Command |
|---|---|
| Windows, in PowerShell | Get-FileHash .\file-name -Algorithm SHA256 |
| Linux, in a terminal | sha256sum file-name |
| macOS, in Terminal | shasum -a 256 file-name |
Each project publishes its checksums in its own way. Ubuntu puts a file called SHA256SUMS beside its images. VirtualBox links its SHA256SUMS from the downloads page. OPNsense puts a checksum file beside each release, and its checksum is for the compressed .bz2 file you download, so you check that file before you unpack it. Microsoft publishes the checksums of the Windows 11 Enterprise evaluation images on a support page linked from the evaluation page itself, "How to verify the authenticity of a Windows 11 ISO file".
A checksum has one weakness: criminals who controlled the site could change the published checksum as well as the file. So Ubuntu and OPNsense also sign their releases with their own keys, and OPNsense's installation guide adds that you should compare its public key with copies from other sources, such as its forum and GitHub pages. Checking signatures is optional in this course. Checking checksums is not.
Worked example: checking the Ubuntu Server image
You have downloaded ubuntu-26.04.1-live-server-amd64.iso and SHA256SUMS from https://releases.ubuntu.com/26.04/ into your Downloads folder on a Windows computer. In PowerShell:
PS C:\Users\you\Downloads> Get-FileHash .\ubuntu-26.04.1-live-server-amd64.iso |
>> Format-List
Algorithm : SHA256
Hash : CC8A95CDE20F6CED61A322420DE00F10CC3C90CED545DAA46CB9C1A117F1D927
Path : C:\Users\you\Downloads\ubuntu-26.04.1-live-server-amd64.iso
Open SHA256SUMS in Notepad and find the line for the server image. On 10 November 2026 it read:
cc8a95cde20f6ced61a322420de00f10cc3c90ced545daa46cb9c1a117f1d927 *ubuntu-26.04.1-live-server-amd64.iso
PowerShell shows the checksum in capitals and the file uses small letters, but the characters are the same. Rather than comparing 64 characters by eye, let PowerShell compare them. Its -eq ignores the difference in case:
PS C:\Users\you\Downloads> (Get-FileHash .\ubuntu-26.04.1-live-server-amd64.iso).Hash -eq
>> 'cc8a95cde20f6ced61a322420de00f10cc3c90ced545daa46cb9c1a117f1d927'
True
On Linux, with both files in the same folder, sha256sum can read the checksum file and check every image it lists that you have downloaded:
$ sha256sum -c SHA256SUMS --ignore-missing
ubuntu-26.04.1-live-server-amd64.iso: OK
Write the result in your build log: the file name, where it came from, the published checksum, your result and the date. If a newer point release is out when you download, its checksum is different: always compare with the SHA256SUMS beside the image you downloaded, never with this example.
If the checksums do not match, do not install the file, and do not "try it anyway". Delete it, download it again from the project's own site, and check again. If it still does not match, try another mirror, and if that fails too, tell the project. A mismatch is rare, and it is exactly the case the check exists for.
6. The lab as found
You might expect to build a perfect lab and then admire it. This course does the opposite. Module 0 builds the lab as found: it copies Table Bay Online's weaknesses on purpose, so that every later module has something real to find, fix and prove fixed. A weakness you have built yourself, and then removed, and then tested, teaches more than a setting you were told to leave alone.
| As found in the lab | Table Bay Online's version | Fixed in |
|---|---|---|
One shared Samba account, office, for the whole share, Accounts folder included | The storage box's shared office login | Module 2 |
| The daily Windows account is an administrator | Both laptops | Module 2 |
| SSH with passwords to the server | The shop server's root password login, the same lesson | Module 2 |
Firewall: one administrator, root, and "allow anything" rules | The fibre router, and a flat network | Modules 2 and 3 |
| No guest separation | Visitors on the staff Wi-Fi | Module 3 |
| No host firewall on the server, Windows not hardened, no application control | The laptops as found | Module 4 |
| No central logs, no alerts | Nobody reads any log | Module 6 |
| No backups | A USB disk always plugged into the storage box, never tested | Module 7 |
| No change records, no runbook | Nothing written down | Module 8 |
So when a task in this module tells you to allow password sign-in over SSH, or to give everyone one shared account, it is not a mistake. Record each one in your build log as a known weakness. By the end of Module 8 every line of Table 5 will be closed, with the evidence to show it.
7. Snapshots and the build log
A snapshot saves a virtual machine's whole state so that you can return to it later. VirtualBox's manual describes what it holds: a complete copy of the machine's settings and the complete state of all its virtual disks, so that going back undoes every change to the disks, "file by file and bit by bit". From the moment you take a snapshot, VirtualBox writes changes to separate files, and restoring the snapshot throws them away.
Snapshots make the lab forgiving. Before anything risky, take one. If the change goes wrong, restore it and try again. This course names them the same way on every machine:
- m0-as-found
- The end of this module, taken on all three machines. The weak starting point every later module begins from.
- mN-done
- The end of each module, such as
m3-done, on every machine that module changed. - before-...
- Just before something risky, such as
before-firewall-rulesorbefore-restore-test.
A snapshot is not a backup. It lives in the same folder, on the same disk, as the machine it belongs to. If your computer's disk fails, or the machine's folder is deleted or encrypted, every snapshot goes with it. Snapshots protect you from your own mistakes in the lab. Module 7 builds real backups, kept on another machine that the protected server cannot change or delete.
The other half of being able to start again is the build log, the first page of your lab binder. It records every version you installed, every setting you chose, every problem you met and how you fixed it, written so that you could build the whole lab again from it alone. You will need it: the Windows evaluation stops working 90 days after installation, and if your work runs past that, you rebuild LAB-PC01 from the log and carry on. A build log is also the habit this course is teaching. A setting configured is not a setting working: prove it, and keep the proof.
Worked example: planning memory on a 16 GB computer
Suppose your laptop has 16 GB of memory and you want to know, before you start, whether the lab will still fit when it grows. Add up the memory each machine is given in the tasks, at the busiest point of each stage of the course:
| Stage | Machines running | Memory they use | Left for the laptop itself |
|---|---|---|---|
| Module 0, Task 3 | lab-fw01 3 GB, LAB-PC01 4 GB | 7 GB | 9 GB |
| Modules 0 to 6, all three running | lab-fw01 3 GB, LAB-PC01 4 GB, lab-srv01 2 GB | 9 GB | 7 GB |
| Modules 7 and 8 | The three above and lab-bak01 1 GB | 10 GB | 6 GB |
The busiest point is Module 7, when all four machines run at once: lab-srv01 backs up to lab-bak01 across the server segment they share, while you watch from LAB-PC01 through lab-fw01: 10 GB. That leaves 6 GB for your own operating system, VirtualBox itself and a browser. VirtualBox's manual warns that if too little memory remains for the computer itself, it swaps to disk and slows "to a standstill". So you write three decisions in your build log: close other programs while the lab runs, keep your own browser to a few tabs, and never give a lab machine more memory than the tasks say. With only 8 GB the lab would not fit at all, which is better found now than halfway through the course.
Sources
- Cybercrimes Act 19 of 2020, section 2: https://www.justice.gov.za/legislation/acts/2020-019-cybercrimes.pdf (read on 10 November 2026)
- Oracle VirtualBox downloads, changelog and SHA-256 checksums: https://www.virtualbox.org/wiki/Downloads , https://www.virtualbox.org/wiki/Changelog , https://download.virtualbox.org/virtualbox/7.2.22/SHA256SUMS (read on 10 November 2026)
- Oracle VirtualBox User Guide for Release 7.2 (networking modes, the NAT Network service, snapshots, the shared clipboard, Hyper-V on Windows hosts, the status bar): https://www.virtualbox.org/manual/ and https://download.virtualbox.org/virtualbox/7.2.22/UserManual.pdf (read on 10 November 2026)
- Microsoft, Windows 11 Enterprise evaluation: https://www.microsoft.com/en-us/evalcenter/evaluate-windows-11-enterprise (read on 10 November 2026)
- Microsoft, How to verify the authenticity of a Windows 11, version 26H2 Evaluation ISO file (published 29 September 2026): https://support.microsoft.com/en-us/servicing/os/windows/docs/2026/09/verify-the-authenticity-of-a-windows-11-enterprise-evaluation-iso-file (read on 10 November 2026)
- Ubuntu Server download, release files and release notes: https://ubuntu.com/download/server , https://releases.ubuntu.com/26.04/ , https://documentation.ubuntu.com/release-notes/26.04/ (read on 10 November 2026)
- OPNsense download page, release files and documentation: https://opnsense.org/download/ , https://pkg.opnsense.org/releases/26.7/ , https://docs.opnsense.org/releases/CE_26.7.html , https://docs.opnsense.org/manual/install.html , https://docs.opnsense.org/manual/virtuals.html (read on 10 November 2026)
- pfSense download page: https://www.pfsense.org/download/ (read on 10 November 2026)
- KeePassXC: https://keepassxc.org/ and 7-Zip: https://www.7-zip.org/ (read on 10 November 2026)