Build the firewall, the client and the server, prove they work, and save their state
These five tasks build the lab, step by step. Together they take about 3 hours and 20 minutes, plus the time your downloads take. Work through them in order: each task needs the one before it. You need the computer you checked in section 3, an internet connection, and a quiet afternoon.
Two habits run through every task. First, every password is created in KeePassXC the moment you first need it, using its password generator, and stored in the vault TBO-Lab.kdbx on your own computer. Never reuse a password of your own, and never write one in your build log. Second, everything you do goes into your build log, 00-build-log in your TBO-Lab-Binder folder: versions, settings, command output, problems and fixes. The model answers show what a good build log looks like.
Task 1: Check your computer and get the software
Make sure your computer can run the lab, set up your vault and binder, and download and verify everything.
- Check hardware virtualisation is on. On Windows, open Task Manager (Ctrl+Shift+Esc), choose Performance, then CPU, and look for
Virtualization: Enabled. On Linux, runlscpu | grep -i virtualizationand look forVT-xorAMD-V. On an Intel Mac, runsysctl -n machdep.cpu.features | grep -o VMXand look forVMX. If it is off, restart into your computer's firmware settings and switch on the setting your maker calls Intel Virtualization Technology, VT-x, SVM Mode or AMD-V. Its name and place differ by maker, so check your computer's manual. - Check memory and disk space. On Windows, Task Manager's Memory page shows the total, and File Explorer's This PC shows each drive's space. On Linux, run
free -handdf -h ~. On a Mac, open About This Mac and its storage settings. You need 16 GB of memory and 100 GB of disk space available on the drive where VirtualBox will keep its machines. - Start your binder. Create a folder called
TBO-Lab-Binderin your own documents, and in it a document or spreadsheet called00-build-logwith these headings: Host computer, Downloads and checks, lab-fw01, LAB-PC01, lab-srv01, Tests, Snapshots, Problems and fixes. Fill in Host computer now: the make and model, processor, cores, memory, disk space available, operating system and version, whether virtualisation is on, and, on Windows, whether Memory Integrity is on. - Install KeePassXC 2.8.0 or newer from https://keepassxc.org/download/ . Its download page lists a SHA-256 digest for each file: check yours against it. Create a new database called
TBO-Lab.kdbxin your own documents, outside the binder, protected by a long passphrase you can remember and have not used anywhere else. Every lab password goes in here from now on. - Install VirtualBox 7.2.22 or newer: the platform package for your system from https://www.virtualbox.org/wiki/Downloads . Check the installer against
SHA256SUMS, linked from the same page. On 10 November 2026 the Windows installer,VirtualBox-7.2.22-175245-Win.exe, had the checksumafd0ff1656cbe04ed88ce619594ae021419d97cce89fa9bdc443e9a963f1713f. Install it with the default options. On Windows the installer warns that your network connection will drop for a moment: that is normal. Do not install the Extension Pack. - Show every setting. Open VirtualBox, choose File, then Preferences, and select Expert. VirtualBox's Basic level hides some of the settings the tasks use.
- Download and check Ubuntu Server. From https://releases.ubuntu.com/26.04/ download
ubuntu-26.04.1-live-server-amd64.iso(about 2.9 GB) andSHA256SUMS, and check the image as the lesson's worked example shows. - Download and check OPNsense. At https://opnsense.org/download/ choose the architecture amd64, the image type dvd and a mirror near you. From the mirror's
releases/26.7/folder downloadOPNsense-26.7-dvd-amd64.iso.bz2(about 471 MB) andOPNsense-26.7-checksums-amd64.sha256. Check the.bz2file's checksum against the line for it in the checksum file. On 10 November 2026 that line readSHA256 (OPNsense-26.7-dvd-amd64.iso.bz2) = 95cafedda6d5b22ce832e249dc2309110fbee19f813ad78cf28bb3d387186bfb. - Unpack OPNsense, only once its checksum matches. On Windows, install 7-Zip from https://www.7-zip.org/ , then right-click the
.bz2file and choose 7-Zip, then Extract Here. On Linux or macOS, runbzip2 -d OPNsense-26.7-dvd-amd64.iso.bz2. Either way you getOPNsense-26.7-dvd-amd64.iso. If you want the optional further check, OPNsense's installation guide at https://docs.opnsense.org/manual/install.html shows how to verify the unpacked image's signature with OpenSSL. - Download and check Windows 11 Enterprise. At https://www.microsoft.com/en-us/evalcenter/evaluate-windows-11-enterprise register, then choose the ISO for Windows 11 Enterprise, version 26H2, 64-bit (x64, not Arm64), in English. Follow the page's link "How to verify the authenticity of a Windows 11 ISO file" and compare your file's checksum with the one listed for your language. On 10 November 2026 it listed
BC3F24086EBADC94489066B5AD78089E2CF5C3491E90E790BB81A2B199C10E38for English (United States) and1573A94603148E468FB0D8036376283265CD23F3681757895EB80D165B292040for English (United Kingdom). - Record everything under Downloads and checks: each file's name, version, where it came from, the published checksum, your result and the date.
What you produce: 00-build-log with its Host computer and Downloads and checks sections filled in, the vault TBO-Lab.kdbx, and four verified files ready to install.
How to check: every checksum you calculated matches the published one exactly, VirtualBox opens at the Expert level, and your vault opens with its passphrase.
Time: 30 minutes, plus the downloads.
Task 2: Create the networks and build the firewall
Create the NAT Network that plays the internet, build lab-fw01 with its four adapters, install OPNsense and give its LAN an address.
- Create
tbo-wan. In VirtualBox choose File, then Tools, then Network Manager, and open the NAT Networks tab. Choose Create, select the new network and open its properties. Set its name totbo-wan, its IPv4 network (prefix) to10.0.50.0/24and DHCP on. Leave IPv6 off and add no port forwarding. Apply. If you prefer the command line, the manual's command does the same:VBoxManage natnetwork add --netname tbo-wan --network "10.0.50.0/24" --enable --dhcp on. - Make the firewall's password. In KeePassXC add an entry called
lab-fw01 rootand let the generator make a password of 20 characters or more. - Create the machine. Choose Machine, then New. Name:
lab-fw01. ISO image:OPNsense-26.7-dvd-amd64.iso. VirtualBox may not recognise OPNsense from its image, so check the operating system and set it yourself if it is wrong: type BSD, FreeBSD (64-bit). Base memory: 3072 MB, which is OPNsense's stated minimum. Processors: 2. Leave EFI off. Hard disk: create a new virtual hard disk of 20 GB, VDI, dynamically allocated. Finish. - Attach the four adapters, in this order, in the machine's Settings, then Network. For each adapter tick Enable Network Adapter, and under Advanced set the adapter type to Intel PRO/1000 MT Desktop (82540EM).
- Adapter 1: attached to NAT Network, name
tbo-wan. - Adapter 2: attached to Internal Network, name
tbo-lan(type the name: internal networks exist as soon as a machine names one). - Adapter 3: Internal Network, name
tbo-srv. - Adapter 4: Internal Network, name
tbo-guest.
em0toem3in adapter order, soem0is ontbo-wan,em1ontbo-lan,em2ontbo-srvandem3ontbo-guest. Write this mapping in your build log. - Adapter 1: attached to NAT Network, name
- Start lab-fw01. It boots OPNsense's live system from the image. Wait for the
login:prompt, then sign in asinstallerwith the passwordopnsense, as OPNsense's installation guide says. - Install. Keep the default keymap or choose your own. Choose to install with UFS, which is lighter than ZFS for a small virtual machine. Select the 20 GB virtual disk, confirm that its contents will be destroyed, and accept the recommended swap. When asked for the root password, paste or type the one in your vault, twice. Choose to complete the installation, and the machine restarts.
- Remove the image if it boots again. If the installer's live system starts again instead of the installed system, choose Devices, then Optical Drives, then remove the disk from the virtual drive, and reset the machine.
- Sign in at the console as
rootwith your vault password. The console menu appears, with numbered options. - Assign the interfaces correctly. OPNsense's defaults put LAN on the first adapter and WAN on the second, which is the wrong way round for this lab. Choose option 1, Assign interfaces, and answer: configure LAGGs now,
n. Configure VLANs now,n. WAN interface name,em0. LAN interface name,em1. Optional interface 1, press Enter for none. The summary should sayWAN -> em0andLAN -> em1. Proceed,y. - Give the LAN its address and DHCP range. Choose option 2, Set interface IP address, and enter the number the list shows for LAN. Then answer: configure the IPv4 address by DHCP,
n. New LAN IPv4 address,10.10.10.1. Subnet bit count,24. Upstream gateway, press Enter for none. If it asks to configure IPv6 by WAN tracking,n. Configure IPv6 by DHCP6,n. New LAN IPv6 address, press Enter for none. Enable the DHCP server on LAN,y. Start address,10.10.10.150. End address,10.10.10.199. Change the web GUI from HTTPS to HTTP,n. Generate a new self-signed certificate,n. Restore web GUI access defaults,n. - Read the console summary. Above the menu, OPNsense now shows each interface. Copy what it says into your build log (by hand or as a photo: the firewall has no shared clipboard).
What you produce: the lab-fw01 section of 00-build-log: the virtual machine's settings, the adapter mapping, the console's interface summary, and the root password's place in the vault (never the password itself).
How to check: the console summary shows LAN (em1) with 10.10.10.1/24 and WAN (em0) with an address from DHCP in 10.0.50.0/24.
Time: 40 minutes.
Task 3: Build the Windows client and finish the firewall's setup
Build LAB-PC01 on the LAN, then use its browser to finish lab-fw01's setup, add the SERVERS segment and its one temporary rule, and update the firewall.
- Create the lab Microsoft account in a browser on your own computer, at https://account.microsoft.com/ , choosing to create a new account. Use a new address for the lab alone, and store the address and its password in a vault entry called
LAB-PC01 lab Microsoft account. - Create the machine. Choose Machine, then New. Name:
LAB-PC01. ISO image: the Windows 11 Enterprise evaluation ISO. Type: Microsoft Windows, version Windows 11 (64-bit). Make sure unattended installation is not selected (VirtualBox's manual calls the tick box Install OS Using Unattended Installation), so that you see every step yourself. Base memory: 4096 MB. Processors: 2. EFI: on. Hard disk: 64 GB, VDI, dynamically allocated. Finish. - Check its settings. In Settings, then System, check that TPM is version 2.0, EFI is on and Secure Boot is ticked: Windows 11 will not install without them. In Network, set Adapter 1 to Internal Network, name
tbo-lan, adapter type Intel PRO/1000 MT Desktop, and leave Adapters 2 to 4 off. In General, then Features, leave Shared Clipboard and Drag and Drop disabled for now. Add no shared folders. - Start lab-fw01 first, if it is not running, then start LAB-PC01. When it says
Press any key to boot from CD or DVD, press a key quickly. - Install Windows. Choose your language, time and keyboard settings, choose to install Windows 11, accept the licence terms, select the 64 GB disk (shown as unallocated space) and install. The machine restarts several times.
- Set Windows up. Choose South Africa as the country or region and your keyboard. The network connects by itself: LAB-PC01 has an address from lab-fw01's DHCP range, and lab-fw01 takes it to the internet. If setup asks for a device name, type
LAB-PC01. When it asks you to sign in, sign in with the lab Microsoft account (if it asks whether the device is for personal use or for work or school, choose personal use, which takes a Microsoft account). Create a PIN when asked and store it in the same vault entry. Turn every privacy option off, and decline the optional extras and offers to back up to the cloud. - Name the computer, if setup did not. Open PowerShell as administrator (right-click Start, then Terminal (Admin)) and run
Rename-Computer -NewName LAB-PC01 -Restart. - Record Windows' details. In PowerShell run:
Note the edition, version, build, computer name, licence status and the time left on the evaluation. If the licence status is not Licensed, runGet-ComputerInfo -Property OsName, OsDisplayVersion, OsBuildNumber, CsName cscript //nologo C:\Windows\System32\slmgr.vbs /dlvcscript //nologo C:\Windows\System32\slmgr.vbs /atoto activate it online, then run/dlvagain. Work out the date the evaluation ends (90 days from installation) and write it in your build log. You can also see the version in a window by runningwinver. - Install the Guest Additions. Choose Devices, then Insert Guest Additions CD Image. In File Explorer open the CD drive, run
VBoxWindowsAdditions.exe, accept its prompts and restart when it asks. Then choose Devices, Shared Clipboard, Bidirectional, and check that Devices, Drag and Drop is Disabled. Test the clipboard by copying a line of text from LAB-PC01 into your build log. - Open the firewall's web page. In Microsoft Edge on LAB-PC01 go to
https://10.10.10.1. Edge warns that the connection is not private, because the firewall's certificate is one it made for itself, which no authority has vouched for. Accepting that warning is acceptable here and only here: you are on an isolated network, talking to a machine you built ten minutes ago, at an address you set yourself. Choose Advanced, then continue to 10.10.10.1. Never accept such a warning for a site on the internet. - Run the setup wizard. Sign in as
rootwith the vault password. OPNsense starts its initial setup wizard by itself (if it does not, open System, then Configuration, then Wizard). Use these settings and leave everything else as it is:- General Information: hostname
lab-fw01, domainlab.internal, language English, time zoneAfrica/Johannesburg, DNS servers left empty, and Enable Resolver ticked, so that Unbound answers the lab's name lookups. - Network [WAN]: type DHCP. Leave its other settings as they are: Module 3 deals with them.
- Network [LAN]: IP address
10.10.10.1/24, Configure DHCP server ticked. - Deployment type: leave every option unticked.
- Set initial password: leave it empty to keep the root password already in your vault.
- General Information: hostname
- Put the DHCP range back. The wizard writes its own, wider DHCP range for the LAN, which would include LAB-PC01's fixed address. Open Services, then Dnsmasq DNS & DHCP, then DHCP ranges. Edit the LAN range: start address
10.10.10.150, end address10.10.10.199. Save, then Apply. A wizard is a quick way to set things up, and checking what it actually did is part of the job. - Add the SERVERS segment. Open Interfaces, then Assignments, and use the add button. Device:
em2. Enabled: ticked. Description:SERVERS. IPv4 Configuration Type: Static IPv4. IPv4 address:10.10.30.1/24. Leave the gateway empty: the internal segments have no gateway of their own. Save, then Apply. - Add the one temporary rule. A new interface in OPNsense allows nothing until a rule allows it, and lab-srv01 will need the internet to install. Open Firewall, then Rules, choose SERVERS as the interface, and add a rule: Action Pass, Interface SERVERS, Direction in, Version IPv4, Protocol any, Source
SERVERS net, Destination any, DescriptionTEMP M0: SERVERS net to any, replace in Module 3. Save, then Apply. It is deliberately broad, and Module 3 replaces it. - Update the firewall. Open System, then Firmware, then Status, and check for updates. Install the updates offered for the 26.7 series and let the firewall restart. Afterwards record the version it shows (26.7.8 on 10 November 2026, or newer).
- Give LAB-PC01 its fixed address. In PowerShell as administrator, check the adapter's name with
Get-NetAdapter(usuallyEthernet), then run:
You can set the same address in Settings, under Network and internet, if you prefer.$if = 'Ethernet' Set-NetIPInterface -InterfaceAlias $if -Dhcp Disabled Get-NetIPAddress -InterfaceAlias $if -AddressFamily IPv4 | Remove-NetIPAddress -Confirm:$false Get-NetRoute -InterfaceAlias $if -DestinationPrefix '0.0.0.0/0' ` -ErrorAction SilentlyContinue | Remove-NetRoute -Confirm:$false New-NetIPAddress -InterfaceAlias $if -IPAddress 10.10.10.101 ` -PrefixLength 24 -DefaultGateway 10.10.10.1 Set-DnsClientServerAddress -InterfaceAlias $if -ServerAddresses 10.10.10.1 ipconfig /all - Record the Windows details, the wizard's settings, the DHCP range, the SERVERS interface, the temporary rule and the firewall's version in your build log.
What you produce: the LAB-PC01 section and the rest of the lab-fw01 section of 00-build-log, including the OPNsense version, the Windows version from Get-ComputerInfo or winver, and the evaluation's days left from slmgr.
How to check: ipconfig /all on LAB-PC01 shows 10.10.10.101 with gateway and DNS server 10.10.10.1, the firewall's dashboard shows the hostname lab-fw01.lab.internal, Interfaces, then Assignments lists SERVERS on em2 with 10.10.30.1/24, and the rule list for SERVERS shows the TEMP rule.
Time: 70 minutes, much of it waiting for Windows to install.
Task 4: Build the Linux server and its shares
Build lab-srv01 on the SERVERS segment, give it a second disk for /srv, fill it with Table Bay Online's invented office files, and share them the way the storage box did.
- Make two passwords in the vault:
lab-srv01 itadminandlab-srv01 Samba office. - Create the machine. Choose Machine, then New. Name:
lab-srv01. ISO image:ubuntu-26.04.1-live-server-amd64.iso. Type: Linux, Ubuntu (64-bit). Make sure unattended installation is not selected. Base memory: 2048 MB. Processors: 2. Hard disk: 25 GB, VDI, dynamically allocated. Finish. - Add the second disk and the network. In Settings, then Storage, select the SATA controller, add a hard disk, create a new one: VDI, dynamically allocated, 10 GB, named
lab-srv01-srv. In Network, set Adapter 1 to Internal Network, nametbo-srv. Leave the other adapters off. - Install Ubuntu Server. With lab-fw01 running, start lab-srv01 and work through the installer:
- Language English, then your keyboard. If it offers an installer update, you may continue without it.
- Type of installation: Ubuntu Server, the standard one, not the minimised one.
- Network: select the adapter (usually
enp0s3), edit its IPv4 settings and choose Manual. Subnet10.10.30.0/24, address10.10.30.10, gateway10.10.30.1, name servers10.10.30.1, search domainslab.internal. Save. - Proxy: leave empty. Mirror: wait until the mirror test passes. It needs lab-fw01 and the TEMP rule from Task 3.
- Storage: use an entire disk, and choose the 25 GB disk, not the 10 GB one. Leave the LVM option as it is. Confirm the summary and the warning that the disk will be formatted.
- Profile: your name
IT Administrator, the server's namelab-srv01, usernameitadmin, and the password from the vault. - Ubuntu Pro: skip for now.
- SSH: tick Install OpenSSH server and import no key, so that password sign-in stays allowed. That is the as-found weakness Module 2 removes.
- Featured server snaps: choose none.
- Note the server's key fingerprint. Sign in at lab-srv01's console as
itadminand runssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub. Write theSHA256:fingerprint in your build log. - Connect from LAB-PC01. Open Windows Terminal on LAB-PC01 and run
ssh itadmin@10.10.30.10. Before you answeryes, compare the fingerprint SSH shows with the one you wrote down. They must be identical. Do the rest of this task in this SSH session, where you can paste. - Set the time zone and update.
If the update asks to restart, runsudo timedatectl set-timezone Africa/Johannesburg sudo apt update && sudo apt full-upgrade -ysudo reboot, wait a minute and connect again. - Format and mount the second disk. Run
lsblk -o NAME,SIZE,TYPE,MOUNTPOINTSand find the 10 GB disk with no partitions, usuallysdb. Check the size before you go on: formatting the wrong disk destroys the system. Then, using that name:
Mounting by UUID means the disk is found by its own identity, even if its name changes when disks are added later.sudo mkfs.ext4 -L srv /dev/sdb UUID=$(sudo blkid -s UUID -o value /dev/sdb) echo "UUID=$UUID /srv ext4 defaults 0 2" | sudo tee -a /etc/fstab sudo systemctl daemon-reload sudo mount /srv findmnt /srv - Install Samba:
sudo apt install -y samba. - Create the office files. Run
nano seed-office.sh, paste in this script, save with Ctrl+O and Enter, and leave with Ctrl+X. Then runsudo bash seed-office.sh. It creates every folder and file later modules rely on, and the shared Linux useroffice.
The#!/usr/bin/env bash # seed-office.sh: fills /srv/office on lab-srv01 with Table Bay Online's # invented files. Every name, number and figure in them is invented. set -euo pipefail [ "$(id -u)" -eq 0 ] || { echo "Run it with sudo." >&2; exit 1; } base=/srv/office mkdir -p "$base"/{Orders,Suppliers,Products,Admin,Accounts} firsts=(Ayanda Bronwyn Charl Fatima Kagiso Leon Precious Zanele) lasts=(Fortuin Steyn Moodley Daniels Mabaso) suburbs=(Observatory Woodstock Rondebosch Claremont "Sea Point" Muizenberg Bellville Tokai) prefixes=(061 064 065 067) # 40 customers: personal information, as a real shop would hold it emails=() echo "first_name,surname,email,cellphone,suburb" > "$base/Orders/customers-2026.csv" for ((i = 0; i < 40; i++)); do f=${firsts[i % 8]}; l=${lasts[i / 8]} e="${f,,}.${l,,}@example.com"; emails+=("$e") printf '%s,%s,%s,%s 555 01%02d,%s\n' "$f" "$l" "$e" "${prefixes[i % 4]}" \ $((i + 1)) "${suburbs[(i * 3 + i / 8) % 8]}" >> "$base/Orders/customers-2026.csv" done # 60 orders for October 2026 items=("Ceramic serving bowl" "Linen tea towel set" "Olivewood salad servers" "Enamel coffee pot" "Woven bread basket" "Stoneware mug pair") prices=(450 220 340 560 290 380) echo "order,date,customer_email,item,quantity,total_rand" > "$base/Orders/orders-2026-10.csv" for ((n = 1; n <= 60; n++)); do k=$((n % 6)); q=$((n % 3 + 1)) printf 'TBO-10%03d,2026-10-%02d,%s,%s,%d,%d.00\n' "$n" $(((n - 1) / 2 + 1)) \ "${emails[(n * 7) % 40]}" "${items[k]}" "$q" $((q * prices[k])) \ >> "$base/Orders/orders-2026-10.csv" done # Three short supply agreements with invented makers for m in 1 2 3; do cat > "$base/Suppliers/maker-agreement-0$m.txt" <<TXT Supply agreement: Table Bay Online (Pty) Ltd and Maker 0$m Maker 0$m supplies handmade goods for sale in Table Bay Online's web shop. Deliveries to 3 Dock Lane, Salt River, within $((m + 4)) working days of an order. Table Bay Online pays each invoice within 30 days of delivery. Either party may end this agreement with one month's written notice. TXT done # 25 products types=("Serving bowl" "Tea towel set" "Salad servers" "Coffee pot" "Bread basket") finishes=(Natural Charcoal Ocean Sand Forest) echo "code,product,maker,price_rand" > "$base/Products/price-list-2026.csv" for ((p = 0; p < 25; p++)); do printf 'TBO-P%03d,%s (%s),Maker 0%d,%d.00\n' $((p + 1)) "${types[p / 5]}" \ "${finishes[p % 5]}" $((p % 3 + 1)) $((200 + 40 * (p / 5) + 15 * (p % 5))) \ >> "$base/Products/price-list-2026.csv" done # The kind of file people leave on shares (Module 1 should find it) cat > "$base/Admin/logins.txt" <<'TXT' Office logins fibre router admin page user: admin password: DUMMY-NOT-A-REAL-PASSWORD storage box user: office password: DUMMY-NOT-A-REAL-PASSWORD courier portal user: tbo-shop password: DUMMY-NOT-A-REAL-PASSWORD TXT cat > "$base/Accounts/supplier-bank-details.csv" <<'TXT' maker,account_holder,account_number,payment_reference Maker 01,Maker 01 (Pty) Ltd,•••• 3307,TBO-M01 Maker 02,Maker 02 CC,•••• 5192,TBO-M02 Maker 03,Maker 03 (sole proprietor),•••• 7740,TBO-M03 TXT cat > "$base/Accounts/vat-2026-q3.txt" <<'TXT' VAT working note, July to September 2026 (invented figures, for the accountant) Sales including VAT: R412,850.00 VAT at 15%: R53,850.00 Purchases including VAT: R238,050.00 VAT at 15%: R31,050.00 Difference to check against the returns for these months: R22,800.00 TXT # The one shared account for the whole share, as Table Bay Online had it id office &>/dev/null || useradd --no-user-group --gid users \ --no-create-home --shell /usr/sbin/nologin office chown -R office:users "$base" chmod -R u=rwX,g=rwX,o= "$base" find "$base" -type f | sortofficeuser cannot sign in to a shell, and its primary group is the generalusersgroup, so that Module 2 can create a group calledofficeof its own. - Share the folder as the storage box did: one share, one shared account.
sudo tee -a /etc/samba/smb.conf > /dev/null <<'EOF' [office] path = /srv/office valid users = office read only = no EOF sudo smbpasswd -a office testparm -s sudo systemctl restart smbdsmbpasswdasks for theofficeaccount's Samba password twice: use the one in the vault.testparmchecks the configuration and prints the[office]share. - Map the share on LAB-PC01. In a PowerShell window on LAB-PC01 (not the SSH session), save the
officecredentials and map the drive, as Table Bay Online's laptops had it:cmdkey /add:10.10.30.10 /user:office /pass net use O: \\10.10.30.10\office /persistent:yes net use dir O:\cmdkeyasks for the password: paste the Samba password from the vault. - Record in the lab-srv01 section: the machine's settings,
ip -brief address,findmnt /srv, the key fingerprint, the output of the seed script,testparm -sandnet use. List the as-found weaknesses you have just built: password sign-in over SSH, one shared account, Accounts inside the same share, andlogins.txton the share.
What you produce: the lab-srv01 section of 00-build-log, including a listing of /srv/office.
How to check: findmnt /srv shows the 10 GB disk mounted on /srv, sudo find /srv/office -type f | sort lists nine files, and dir O:\ on LAB-PC01 shows the five folders.
Time: 45 minutes.
Task 5: Prove the lab works and save its starting state
Test every path the lab needs, record the results, then shut the machines down and take the m0-as-found snapshots.
- Copy this test table into the Tests section of your build log, with an Actual result column.
The Module 0 tests # From What it proves Command Expected result 1 LAB-PC01 Its address settings ipconfig /all10.10.10.101, gateway and DNS 10.10.10.1 2 LAB-PC01 Name lookups through the firewall Resolve-DnsName www.virtualbox.org -Server 10.10.10.1One or more addresses 3 LAB-PC01 A web page on the internet (Invoke-WebRequest https://www.virtualbox.org -UseBasicParsing).StatusCode200 4 LAB-PC01 The firewall's web page Test-NetConnection 10.10.10.1 -Port 443TcpTestSucceeded : True5 LAB-PC01 SSH to the server Test-NetConnection 10.10.30.10 -Port 22TcpTestSucceeded : True6 LAB-PC01 File sharing on the server Test-NetConnection 10.10.30.10 -Port 445TcpTestSucceeded : True7 lab-srv01 Its gateway ping -c 3 10.10.30.13 received, 0% loss 8 lab-srv01 Name lookups through the firewall resolvectl query ubuntu.comOne or more addresses 9 lab-srv01 Updates through the firewall sudo apt updateNo errors 10 LAB-PC01 The evaluation's time left cscript //nologo C:\Windows\System32\slmgr.vbs /dlvLicensed, with the days left - Run every test and paste the key lines of each output into the table. If a result differs from the expected one, stop, find the cause, fix it, note the problem and the fix under Problems and fixes, and run the test again.
- Shut the machines down cleanly, in this order: LAB-PC01 from the Start menu (or
Stop-Computer), lab-srv01 withsudo poweroff, and lab-fw01 last, with option 6, Halt system, at its console. - Take the snapshots. In VirtualBox Manager select each machine in turn, open its Snapshots and choose Take. Name each one
m0-as-found, with a description such as "End of Module 0, the lab as found" and the date. Taking a snapshot of a machine that is switched off records a clean state. - Record under Snapshots: each machine, the snapshot's name, its date and that the machine was off when it was taken.
What you produce: the Tests and Snapshots sections of 00-build-log, with the filled test table, and an m0-as-found snapshot on each of the three machines.
How to check: all ten tests show their expected results, and each machine's Snapshots list shows m0-as-found above Current State.
Time: 15 minutes.
Show the model answer
Task 1: Check your computer and get the software
A good build log records the host as facts, not impressions, and records every download with its checksum, so that someone else could repeat your work. Here is a model of the first two sections, for a learner who downloaded on 10 November 2026. Your computer and dates will differ, and so will the checksums if newer releases are out.
HOST COMPUTER (checked 10 November 2026)
Laptop, Intel Core i5, 4 cores and 8 threads
Memory: 16 GB. Disk: 512 GB SSD, 214 GB available on C:
Windows 11 Pro, version 25H2. I have administrator rights.
Task Manager, CPU: "Virtualization: Enabled"
Memory Integrity: on. Decision: keep it on. If VirtualBox shows the
green turtle and the lab is too slow, revisit (see Problems and fixes).
DOWNLOADS AND CHECKS (10 November 2026)
KeePassXC 2.8.0, keepassxc.org: digest matched. Vault: TBO-Lab.kdbx in
Documents (not in the binder).
VirtualBox-7.2.22-175245-Win.exe, virtualbox.org
published: afd0ff1656cbe04ed88ce619594ae021419d97cce89fa9bdc443e9a963f1713f
mine: AFD0FF1656CBE04ED88CE619594AE021419D97CCE89FA9BDC443E9A963F1713F
result: MATCH. Installed, no Extension Pack. Preferences set to Expert.
ubuntu-26.04.1-live-server-amd64.iso, releases.ubuntu.com/26.04
published: cc8a95cde20f6ced61a322420de00f10cc3c90ced545daa46cb9c1a117f1d927
result: MATCH (PowerShell -eq returned True)
OPNsense-26.7-dvd-amd64.iso.bz2, mirror releases/26.7
published: 95cafedda6d5b22ce832e249dc2309110fbee19f813ad78cf28bb3d387186bfb
result: MATCH, then unpacked with 7-Zip 26.06 to OPNsense-26.7-dvd-amd64.iso
Windows 11 Enterprise 26H2 evaluation, x64, English (United States)
published (Microsoft support page, 29 September 2026):
BC3F24086EBADC94489066B5AD78089E2CF5C3491E90E790BB81A2B199C10E38
result: MATCH
Check yours against these points:
- Every file has a checksum result, and every result is a match. A missing result means a file you have not checked.
- The OPNsense checksum was checked on the
.bz2file, before unpacking, because that is the file the published checksum belongs to. - No password appears anywhere in the log. The vault's location is recorded, never its passphrase.
- The Extension Pack is not installed. In VirtualBox, File, then Tools, then Extension Pack Manager (or the Extensions page in Preferences) should list nothing.
- Any decision you made, such as keeping Memory Integrity on, is written down with its reason.
Task 2: Create the networks and build the firewall
The finished firewall machine has these settings in VirtualBox:
| Setting | Value |
|---|---|
| Type | BSD, FreeBSD (64-bit) |
| Memory and processors | 3072 MB, 2 processors |
| Disk | 20 GB VDI, dynamically allocated |
| Adapter 1 | NAT Network tbo-wan, Intel PRO/1000 MT Desktop, appears as em0 |
| Adapter 2 | Internal Network tbo-lan, Intel PRO/1000 MT Desktop, appears as em1 |
| Adapter 3 | Internal Network tbo-srv, Intel PRO/1000 MT Desktop, appears as em2 |
| Adapter 4 | Internal Network tbo-guest, Intel PRO/1000 MT Desktop, appears as em3 |
The interface assignment at the console, option 1, goes like this. Your MAC addresses will differ: VirtualBox's begin with 08:00:27.
Do you want to configure LAGGs now? [y/N]: n
Do you want to configure VLANs now? [y/N]: n
Valid interfaces are:
em0 08:00:27:5c:1e:01 Intel(R) Legacy PRO/1000 MT 82540EM
em1 08:00:27:9a:44:02 Intel(R) Legacy PRO/1000 MT 82540EM
em2 08:00:27:31:7d:03 Intel(R) Legacy PRO/1000 MT 82540EM
em3 08:00:27:c2:08:04 Intel(R) Legacy PRO/1000 MT 82540EM
Enter the WAN interface name or 'a' for auto-detection: em0
Enter the LAN interface name or 'a' for auto-detection
NOTE: this enables full Firewalling/NAT mode.
(or nothing if finished): em1
Enter the Optional interface 1 name or 'a' for auto-detection
(or nothing if finished):
The interfaces will be assigned as follows:
WAN -> em0
LAN -> em1
Do you want to proceed? [y/N]: y
Option 2 for the LAN, after you choose its number:
Configure IPv4 address LAN interface via DHCP? [y/N] n
Enter the new LAN IPv4 address. Press <ENTER> for none:
> 10.10.10.1
Enter the new LAN IPv4 subnet bit count (1 to 32):
> 24
For a WAN, enter the new LAN IPv4 upstream gateway address.
For a LAN, press <ENTER> for none:
>
Configure IPv6 address LAN interface via WAN tracking? [Y/n] n
Configure IPv6 address LAN interface via DHCP6? [y/N] n
Enter the new LAN IPv6 address. Press <ENTER> for none:
>
Do you want to enable the DHCP server on LAN? [y/N] y
Enter the start address of the IPv4 client address range: 10.10.10.150
Enter the end address of the IPv4 client address range: 10.10.10.199
Do you want to change the web GUI protocol from HTTPS to HTTP? [y/N] n
Do you want to generate a new self-signed web GUI certificate? [y/N] n
Restore web GUI access defaults? [y/N] n
Writing configuration...done.
You can now access the web GUI by opening
the following URL in your web browser:
https://10.10.10.1
The interface summary above the console menu should then read like this. Any address in 10.0.50.0/24 on the WAN is right: yours may differ.
LAN (em1) -> v4: 10.10.10.1/24
WAN (em0) -> v4/DHCP4: 10.0.50.4/24
A good build log entry for this task records the virtual machine's settings, the line "em0 = tbo-wan, em1 = tbo-lan, em2 = tbo-srv, em3 = tbo-guest", the two summary lines, the file system you chose (UFS) and "root password: vault entry lab-fw01 root". If your summary shows the WAN with no address, or LAN on em0, see the faults table in Task 5's model answer.
Task 3: Build the Windows client and finish the firewall's setup
Windows' details, from Get-ComputerInfo. Your build number is whatever your copy shows: record it exactly.
OsName : Microsoft Windows 11 Enterprise Evaluation
OsDisplayVersion : 26H2
OsBuildNumber : (your build number)
CsName : LAB-PC01
The evaluation, from slmgr.vbs /dlv. The output is longer, and these are the lines that matter. On the day you install, it shows 90 days. This copy was checked a day later:
Name: Windows(R), EnterpriseEval edition
Description: Windows(R) Operating System, TIMEBASED_EVAL channel
License Status: Licensed
Timebased activation expiration: 128160 minute(s) (89 day(s))
The address settings, from ipconfig /all (shortened):
Ethernet adapter Ethernet:
DHCP Enabled. . . . . . . . . . . : No
IPv4 Address. . . . . . . . . . . : 10.10.10.101(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.10.10.1
DNS Servers . . . . . . . . . . . : 10.10.10.1
The firewall's settings at the end of the task:
| Where | Setting |
|---|---|
| Wizard, General Information | Hostname lab-fw01, domain lab.internal, time zone Africa/Johannesburg, DNS servers empty, resolver (Unbound) enabled |
| Wizard, WAN | DHCP, other settings left as they were |
| Wizard, LAN | 10.10.10.1/24, DHCP server configured |
| Wizard, password | Left empty: root keeps the installer's password, in the vault |
| Services, Dnsmasq DNS & DHCP, DHCP ranges | LAN: 10.10.10.150 to 10.10.10.199 (put back after the wizard) |
| Interfaces, Assignments | WAN em0 (DHCP), LAN em1 (10.10.10.1/24), SERVERS em2 (10.10.30.1/24, no gateway). em3 not assigned. |
| Firewall, Rules, LAN | OPNsense's default rules that allow LAN net to any, as installed |
| Firewall, Rules, SERVERS | Pass, in, IPv4, any protocol, SERVERS net to any: "TEMP M0: SERVERS net to any, replace in Module 3" |
| System, Firmware | Updated to 26.7.8 (the latest 26.7 point release on 10 November 2026) |
| Left as installed | One account, root. The anti-lockout rule. The web page over HTTPS with its own certificate. SSH off. |
A good build log entry also says why two things were done:
- The DHCP range was put back because the wizard replaced it with a wider range of its own that included 10.10.10.101, LAB-PC01's fixed address. Two machines could then have been given the same address. Checking what a wizard did, rather than trusting it, is the course's whole idea in miniature.
- The certificate warning was accepted only because the connection was on an isolated internal network to a machine built minutes before. The note should say that this is never acceptable for a site on the internet.
If you could not sign in to Windows during setup, the usual cause is that LAB-PC01 had no internet: lab-fw01 was off, or LAB-PC01's adapter was left on NAT or attached to the wrong internal network. See the faults table in Task 5's model answer.
Task 4: Build the Linux server and its shares
The server's address and its second disk:
itadmin@lab-srv01:~$ ip -brief address
lo UNKNOWN 127.0.0.1/8 ::1/128
enp0s3 UP 10.10.30.10/24 fe80::a00:27ff:fe3c:5a21/64
itadmin@lab-srv01:~$ lsblk -o NAME,SIZE,TYPE,MOUNTPOINTS /dev/sdb
NAME SIZE TYPE MOUNTPOINTS
sdb 10G disk /srv
itadmin@lab-srv01:~$ findmnt /srv
TARGET SOURCE FSTYPE OPTIONS
/srv /dev/sdb ext4 rw,relatime
The line the commands added to /etc/fstab (your UUID differs):
UUID=3f6c2a9e-1b7d-4c55-9e21-8a0d6b4f7c13 /srv ext4 defaults 0 2
The seed script's own output, and a look inside two of its files:
itadmin@lab-srv01:~$ sudo bash seed-office.sh
/srv/office/Accounts/supplier-bank-details.csv
/srv/office/Accounts/vat-2026-q3.txt
/srv/office/Admin/logins.txt
/srv/office/Orders/customers-2026.csv
/srv/office/Orders/orders-2026-10.csv
/srv/office/Products/price-list-2026.csv
/srv/office/Suppliers/maker-agreement-01.txt
/srv/office/Suppliers/maker-agreement-02.txt
/srv/office/Suppliers/maker-agreement-03.txt
itadmin@lab-srv01:~$ sudo head -3 /srv/office/Orders/customers-2026.csv
first_name,surname,email,cellphone,suburb
Ayanda,Fortuin,ayanda.fortuin@example.com,061 555 0101,Observatory
Bronwyn,Fortuin,bronwyn.fortuin@example.com,064 555 0102,Claremont
itadmin@lab-srv01:~$ sudo wc -l /srv/office/Orders/*.csv /srv/office/Products/*.csv
41 /srv/office/Orders/customers-2026.csv
61 /srv/office/Orders/orders-2026-10.csv
26 /srv/office/Products/price-list-2026.csv
128 total
itadmin@lab-srv01:~$ id office
uid=1001(office) gid=100(users) groups=100(users)
The share, from testparm -s (the first lines vary between versions, and these are the ones that matter):
Loaded services file OK.
Server role: ROLE_STANDALONE
[office]
path = /srv/office
read only = No
valid users = office
On LAB-PC01:
PS C:\Users\lab> net use
New connections will be remembered.
Status Local Remote Network
-------------------------------------------------------------------------------
OK O: \\10.10.30.10\office Microsoft Windows Network
The command completed successfully.
PS C:\Users\lab> dir O:\
Directory: O:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2026/11/10 15:42 Accounts
d----- 2026/11/10 15:42 Admin
d----- 2026/11/10 15:42 Orders
d----- 2026/11/10 15:42 Products
d----- 2026/11/10 15:42 Suppliers
A good build log entry for this task also lists the weaknesses just built, with the module that fixes each: SSH accepts passwords (Module 2), one shared account office reaches everything (Module 2), the Accounts folder with bank details sits in the same share as everything else (Module 2), logins.txt lies on the share for anyone to read (Module 1 finds it), and the server has no host firewall (Module 4). It records the SSH key fingerprint and that it matched when you first connected from LAB-PC01. It notes that the customer file holds personal information, even though it is invented, so that the lab treats it as Table Bay Online must treat the real thing.
Task 5: Prove the lab works and save its starting state
The filled test table. Addresses of outside sites change, so yours will differ: what matters is that an answer came back.
| # | Test | Actual result | Pass |
|---|---|---|---|
| 1 | ipconfig /all | 10.10.10.101, mask 255.255.255.0, gateway 10.10.10.1, DNS 10.10.10.1, DHCP off | Yes |
| 2 | Resolve-DnsName www.virtualbox.org -Server 10.10.10.1 | An A record with one address | Yes |
| 3 | Invoke-WebRequest to www.virtualbox.org | 200 | Yes |
| 4 | Test-NetConnection 10.10.10.1 -Port 443 | TcpTestSucceeded : True | Yes |
| 5 | Test-NetConnection 10.10.30.10 -Port 22 | TcpTestSucceeded : True | Yes |
| 6 | Test-NetConnection 10.10.30.10 -Port 445 | TcpTestSucceeded : True | Yes |
| 7 | ping -c 3 10.10.30.1 | 3 packets transmitted, 3 received, 0% packet loss | Yes |
| 8 | resolvectl query ubuntu.com | Addresses, through enp0s3 | Yes |
| 9 | sudo apt update | Hit lines for resolute, resolute-updates and resolute-security, no errors | Yes |
| 10 | slmgr.vbs /dlv | Licensed, 90 days, so the evaluation ends on 8 February 2027 | Yes |
What three of the outputs look like:
PS C:\Users\lab> Test-NetConnection 10.10.30.10 -Port 22
ComputerName : 10.10.30.10
RemoteAddress : 10.10.30.10
RemotePort : 22
InterfaceAlias : Ethernet
SourceAddress : 10.10.10.101
TcpTestSucceeded : True
itadmin@lab-srv01:~$ ping -c 3 10.10.30.1
PING 10.10.30.1 (10.10.30.1) 56(84) bytes of data.
64 bytes from 10.10.30.1: icmp_seq=1 ttl=64 time=0.412 ms
64 bytes from 10.10.30.1: icmp_seq=2 ttl=64 time=0.388 ms
64 bytes from 10.10.30.1: icmp_seq=3 ttl=64 time=0.401 ms
--- 10.10.30.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2034ms
rtt min/avg/max/mdev = 0.388/0.400/0.412/0.010 ms
itadmin@lab-srv01:~$ sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu resolute InRelease
Hit:2 http://archive.ubuntu.com/ubuntu resolute-updates InRelease
Hit:3 http://security.ubuntu.com/ubuntu resolute-security InRelease
All packages are up to date.
The snapshots, as each machine's Snapshots list shows them:
lab-fw01 m0-as-found 10 November 2026, 16:20, machine off
LAB-PC01 m0-as-found 10 November 2026, 16:21, machine off
lab-srv01 m0-as-found 10 November 2026, 16:21, machine off
This is the finished lab, as found, which Module 1 starts from:
| Machine | State |
|---|---|
| lab-fw01 | OPNsense 26.7.8, root the only account. WAN em0 by DHCP on tbo-wan. LAN em1 10.10.10.1/24 with DHCP 10.10.10.150 to .199. SERVERS em2 10.10.30.1/24. Default LAN rules allow anything. The TEMP M0 rule on SERVERS. Anti-lockout rule on. GUEST adapter attached, not assigned. Unbound as installed. HTTPS with its own certificate. SSH off. |
| LAB-PC01 | Windows 11 Enterprise 26H2 evaluation, signed in daily with the lab Microsoft account, which is an administrator. 10.10.10.101, gateway and DNS 10.10.10.1. Guest Additions, clipboard both ways, drag and drop off, no shared folders. O: mapped to \\10.10.30.10\office with the office account saved. OpenSSH client and Windows Terminal, as part of Windows 11. |
| lab-srv01 | Ubuntu Server 26.04.1, fully updated, time zone Africa/Johannesburg. itadmin signs in over SSH with a password. /srv on the second disk, ext4, mounted by UUID. Samba share [office] for /srv/office with the shared office account. The seed files. ufw installed but inactive. chrony and rsyslog as installed. |
If a test failed, the cause is almost always one of these:
| What you see | The likely cause | The fix |
|---|---|---|
| VirtualBox says hardware virtualisation is not available, or a machine will not start | Virtualisation is off in the computer's firmware, or another virtualisation program is holding it | Switch on Intel Virtualization Technology, VT-x, SVM Mode or AMD-V in the firmware settings. Close other virtual machine software. |
| Everything works, but very slowly, and the processor icon shows a green turtle | VirtualBox is running on top of Windows' own hypervisor (Hyper-V, Memory Integrity and related features) | Decide, as the lesson explains: accept the speed, or turn the features off knowing what you give up. Record the decision. |
| Windows setup says "This PC can't run Windows 11" | EFI, Secure Boot or TPM 2.0 is not set on LAB-PC01 | Switch the machine off, set all three in Settings, then System, and start again. |
The console summary shows LAN on em0, or the WAN has no address | The interfaces were not reassigned, or the adapters are in the wrong order, so em0 is not on tbo-wan | Check the four adapters in VirtualBox against Task 2, then run console option 1 again: WAN em0, LAN em1. |
| No internet during Windows setup | lab-fw01 is off, the LAN allow rules were removed, or LAB-PC01's adapter is still on NAT or on the wrong internal network | Start lab-fw01, check its default LAN rules, and set LAB-PC01's Adapter 1 to Internal Network tbo-lan. |
| The Ubuntu installer's mirror test fails, or lab-srv01 cannot reach the internet | The TEMP rule on SERVERS is missing or not applied, or SERVERS was not assigned | Check Interfaces, then Assignments, and Firewall, then Rules, on SERVERS. Apply after saving. |
| LAB-PC01 suddenly has an address outside 10.10.10.150 to .199, or two machines clash | The setup wizard's DHCP range was left in place | Put the range back to 10.10.10.150 to 10.10.10.199, as Task 3 says. |
net use says access is denied, or the password is wrong | The office account's Samba password was never set, or a different password was saved | Run sudo smbpasswd -a office again, then cmdkey /delete:10.10.30.10 and save the credentials again. |
| Ubuntu was installed on the 10 GB disk | The wrong disk was chosen at the storage screen | Install again, choosing the 25 GB disk. Nothing is lost: the lab is minutes old. |
| Pasting into lab-srv01 does nothing | You are typing at its console, which has no shared clipboard | Connect from LAB-PC01 with ssh itadmin@10.10.30.10 and paste there. |
Finally, check the habit, not just the lab. Your build log should now let someone who has never seen your lab build it again: every version, every setting, every password's vault entry (never the password), every problem with its fix, every test with its result, and the three snapshots. That is your first piece of evidence, and the course adds one to the binder in every module from here on.