Stack 001 — OPNsense Installation
Video walkthrough coming soon. The written steps below are complete.
By the end of this Stack your lab has its own network behind a firewall: it hands out IP addresses, resolves names, and keeps the lab separate from the rest of your house. Every later Stack plugs into it.
What you’ll need
Section titled “What you’ll need”- A small PC or firewall appliance with at least two network ports (one for WAN, one for LAN)
- A USB stick, 4 GB or larger
- A network switch for the lab side
- A laptop or desktop to reach the web interface
- A monitor and keyboard for the firewall during the install
The values used in this Stack
Section titled “The values used in this Stack”Use your own if you prefer; just keep them consistent through the series.
| Item | Value |
|---|---|
| Lab subnet | 192.168.50.0/24 |
| Firewall LAN IP (the lab’s gateway) | 192.168.50.1 |
| DHCP pool | 192.168.50.100 – 192.168.50.199 |
| Fixed addresses (outside DHCP) | 192.168.50.2 – 192.168.50.99 |
| Domain | stacks.lab |
How it’s cabled
Section titled “How it’s cabled”Home router ──► OPNsense WAN port OPNsense LAN port ──► switch ──► lab machines + your laptopThe firewall sits behind your home router, so nothing in the lab changes your house network.
Step 1 — Download the installer
Section titled “Step 1 — Download the installer”- Go to opnsense.org/download.
- Choose architecture amd64 and image type vga, and pick a mirror near you.
- Note the SHA256 checksum shown for the file you downloaded.
Step 2 — Verify the checksum
Section titled “Step 2 — Verify the checksum”The image downloads compressed (.img.bz2), and the published checksum is for that compressed file, so check it before extracting.
Windows (PowerShell): open your Downloads folder in File Explorer, type powershell in the address bar and press Enter.
# Show the hashGet-FileHash .\OPNsense-<version>-vga-amd64.img.bz2 -Algorithm SHA256
# Or compare directly: True means it matches(Get-FileHash .\OPNsense-<version>-vga-amd64.img.bz2).Hash -eq "PASTE_PUBLISHED_HASH_HERE"Windows (Command Prompt):
certutil -hashfile OPNsense-<version>-vga-amd64.img.bz2 SHA256Linux / macOS:
sha256sum OPNsense-<version>-vga-amd64.img.bz2 # macOS: shasum -a 256Step 3 — Write the USB stick
Section titled “Step 3 — Write the USB stick”- Extract the
.imgfrom the.img.bz2(7-Zip on Windows,bunzip2on Linux/macOS). - Write the
.imgto the USB stick with balenaEtcher or Rufus (DD mode). If you use Ventoy, copy the.imgonto the stick instead.
Step 4 — BIOS and boot
Section titled “Step 4 — BIOS and boot”- Plug the USB stick, monitor and keyboard into the firewall box.
- Enter the BIOS and set the USB stick first in the boot order.
- If the stick won’t boot, turn Secure Boot off.
- Boot the stick and wait for the live environment to load.
Step 5 — Run the installer
Section titled “Step 5 — Run the installer”- At the login prompt, log in as
installerwith passwordopnsense. - Keep the default keymap.
- Choose Install (ZFS), then stripe, then the internal disk. Choose UFS instead only for eMMC storage or very small disks.
- Set a new root password.
- When the install finishes, remove the USB stick and reboot.
Step 6 — Assign interfaces and the LAN address
Section titled “Step 6 — Assign interfaces and the LAN address”From the console menu after reboot:
- Option 1 — Assign interfaces. Pick the port connected to your home router as WAN and the port connected to the switch as LAN.
Not sure which port is which? Unplug all but one cable and watch which interface shows a link.
- Option 2 — Set interface IP address. Choose LAN and set it to
192.168.50.1, subnet24. - When asked, enable the DHCP server on LAN with the range
192.168.50.100to192.168.50.199. - The console summary should now show WAN with an address from your home router and LAN at
192.168.50.1.
Step 7 — First login and setup wizard
Section titled “Step 7 — First login and setup wizard”- Plug your laptop into the lab switch. It should get an address from the new pool (
192.168.50.100or higher). - Browse to
https://192.168.50.1and accept the self-signed certificate warning. - Log in as
rootwith the password you set in Step 5. - In the wizard: set a hostname, set the domain to
stacks.lab, keep Unbound as the DNS resolver, leave WAN on DHCP, and confirm the LAN settings. - Go to System → Firmware, check for updates and apply them.
Check that it worked
Section titled “Check that it worked”- The dashboard shows WAN up with an address from your home router
- Your laptop has a
192.168.50.xaddress and appears under the DHCP leases - The laptop can browse the internet through the firewall
- Firmware is up to date
Stack 002 — Proxmox Installation installs Proxmox on a mini PC on this new network.