Demo mode This site is not live. It is currently being tested and developed. Nothing on here represents an offer.
← Exit course SEC-301 Security for Small Business IT Administrators
Course progress, 0 of 15 parts done0%

Build your practice lab

Download as PDF

A Windows client, a Linux server and a firewall on an isolated network of your own

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.

What the law says

"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 2026

Notice 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:

  1. Every technical task runs in your own lab, on the virtual machines you build in this module.
  2. 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.
  3. 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.
  4. 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.

Table 1. The lab's machines and what each stands in for
Lab machineWhat it isStands in forBuilt in
lab-fw01OPNsense 26.7, a firewallThe fibre router, replaced by a proper firewallModule 0
LAB-PC01Windows 11 Enterprise, version 26H2, evaluation editionJason's laptop, TBO-LT02Module 0
lab-srv01Ubuntu Server 26.04.1 LTSThe storage box and its shared folders, and a Linux server like the shop'sModule 0
lab-bak01Ubuntu Server 26.04.1 LTSA protected backup copy, away from the machine it protects, which the office never hadModule 7
Table Bay Online's office one flat network, 192.168.1.0/24 Microsoft 365 and the web shop Fibre router TBO-LT01 Naledi's laptop TBO-LT02 Jason's laptop TBO-MFP printer TBO-NAS storage box Staff phones and visitors' phones share the same network Your lab isolated, on your own computer tbo-wan, plays the internet lab-fw01 LAB-PC01 Windows 11 lab-srv01 Ubuntu Server lab-bak01 Module 7 LAN SERVERS SERVERS
Figure 1. The office and the lab. The dashed amber lines show what stands in for what: lab-fw01 for the fibre router, LAB-PC01 for Jason's laptop and lab-srv01 for the storage box. lab-bak01, dashed, joins in 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.
Table 2. The software, as each project's own page showed it on 10 November 2026
SoftwareVersionLicence, in plain wordsWhere
Oracle VirtualBox, the platform package7.2.22, released 20 October 2026Open-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 imageThe 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 licencehttps://opnsense.org/download/
Ubuntu Server26.04.1 LTS, supported until April 2031Open-sourcehttps://ubuntu.com/download/server
Windows 11 Enterprise, version 26H2The 90-day evaluation edition, x64Microsoft's evaluation terms: register, no product key, 90 days from installationhttps://www.microsoft.com/en-us/evalcenter/evaluate-windows-11-enterprise
KeePassXC, a password manager for your own computer2.8.0Open-source, under the GNU GPL version 3https://keepassxc.org/
7-Zip, on a Windows computer only, to unpack the OPNsense image26.06, released 6 November 2026Open-source, mostly under the GNU LGPLhttps://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.

Note

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.

Warning

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.

Table 3. VirtualBox's network modes
ModeThe machine can reachWhat can reach the machineIn this lab
NAT (the default)Your computer, your home network and the internetNothing, unless you set a port forward. Not even other virtual machines.Not used. Change it on every machine.
NAT NetworkOther machines on the same NAT Network, your computer, your home network and the internetOther machines on the same NAT Network only, unless you set a port forwardtbo-wan, lab-fw01's WAN only
Internal networkOnly other machines attached to an internal network of the same nameThe same machines only. Your computer cannot see it.tbo-lan, tbo-srv and tbo-guest
BridgedEverything your computer's network can reachEverything on your home networkNever
Host-onlyYour computer and the other machines on itYour computer and the other machines on itNever

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.

Your computer, then the internet tbo-wan: a VirtualBox NAT Network 10.0.50.0/24, gateway 10.0.50.1, DHCP on em0, WAN, by DHCP (10.0.50.x) lab-fw01 OPNsense 26.7 LAN (em1) 10.10.10.1 tbo-lan, 10.10.10.0/24 SERVERS (em2) 10.10.30.1 tbo-srv, 10.10.30.0/24 GUEST (em3) 10.10.20.1 tbo-guest, 10.10.20.0/24 LAB-PC01 10.10.10.101, fixed lab-srv01 10.10.30.10, fixed Assigned in Module 3 DHCP .100 to .199 DHCP hands out 10.10.10.150 to .199 lab-bak01, 10.10.30.20 built in Module 7 WireGuard 10.10.99.0/24 also comes in Module 3
Figure 2. The lab network. Everything solid is built in this module. The GUEST segment, WireGuard and lab-bak01, dashed, come later. Each segment reaches the others and the outside only through lab-fw01.

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.

Keep this: the lab's fixed names and addresses
  1. 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).
  2. LAB-PC01: 10.10.10.101, gateway and DNS 10.10.10.1.
  3. lab-srv01: 10.10.30.10, gateway and DNS 10.10.30.1, search domain lab.internal.
  4. lab-bak01 (Module 7): 10.10.30.20.
  5. The lab's domain is lab.internal and its time zone Africa/Johannesburg.
  6. 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.

Table 4. Calculating a SHA-256 checksum
Your computerCommand
Windows, in PowerShellGet-FileHash .\file-name -Algorithm SHA256
Linux, in a terminalsha256sum file-name
macOS, in Terminalshasum -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.

Table 5. What the lab copies from the office, and where the course fixes it
As found in the labTable Bay Online's versionFixed in
One shared Samba account, office, for the whole share, Accounts folder includedThe storage box's shared office loginModule 2
The daily Windows account is an administratorBoth laptopsModule 2
SSH with passwords to the serverThe shop server's root password login, the same lessonModule 2
Firewall: one administrator, root, and "allow anything" rulesThe fibre router, and a flat networkModules 2 and 3
No guest separationVisitors on the staff Wi-FiModule 3
No host firewall on the server, Windows not hardened, no application controlThe laptops as foundModule 4
No central logs, no alertsNobody reads any logModule 6
No backupsA USB disk always plugged into the storage box, never testedModule 7
No change records, no runbookNothing written downModule 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-rules or before-restore-test.
One machine's snapshots, oldest on the left m0-as-found m1-done m2-done m3-done m4-done m5-done m6-done m7-done m8-done before-firewall-rules before-restore-test a mistake, left behind after Restore Every snapshot sits on the same disk as the machine itself, so none of them is a backup.
Figure 3. Snapshots through the course. Restoring a "before" snapshot after a mistake starts a new line from that point, and the abandoned changes stay as a branch until you delete them.
Warning

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:

Memory in use, by stage of the course
StageMachines runningMemory they useLeft for the laptop itself
Module 0, Task 3lab-fw01 3 GB, LAB-PC01 4 GB7 GB9 GB
Modules 0 to 6, all three runninglab-fw01 3 GB, LAB-PC01 4 GB, lab-srv01 2 GB9 GB7 GB
Modules 7 and 8The three above and lab-bak01 1 GB10 GB6 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)