Skip to content

Stack 001 — OPNsense Installation

Stack 001Verified on OPNsense 26.7About 45 min

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.

  • 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

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
Home router ──► OPNsense WAN port
OPNsense LAN port ──► switch ──► lab machines + your laptop

The firewall sits behind your home router, so nothing in the lab changes your house network.

  1. Go to opnsense.org/download.
  2. Choose architecture amd64 and image type vga, and pick a mirror near you.
  3. Note the SHA256 checksum shown for the file you downloaded.

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.

Terminal window
# Show the hash
Get-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):

Terminal window
certutil -hashfile OPNsense-<version>-vga-amd64.img.bz2 SHA256

Linux / macOS:

Terminal window
sha256sum OPNsense-<version>-vga-amd64.img.bz2 # macOS: shasum -a 256
  1. Extract the .img from the .img.bz2 (7-Zip on Windows, bunzip2 on Linux/macOS).
  2. Write the .img to the USB stick with balenaEtcher or Rufus (DD mode). If you use Ventoy, copy the .img onto the stick instead.
  1. Plug the USB stick, monitor and keyboard into the firewall box.
  2. Enter the BIOS and set the USB stick first in the boot order.
  3. If the stick won’t boot, turn Secure Boot off.
  4. Boot the stick and wait for the live environment to load.
  1. At the login prompt, log in as installer with password opnsense.
  2. Keep the default keymap.
  3. Choose Install (ZFS), then stripe, then the internal disk. Choose UFS instead only for eMMC storage or very small disks.
  4. Set a new root password.
  5. 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:

  1. 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.

  2. Option 2 — Set interface IP address. Choose LAN and set it to 192.168.50.1, subnet 24.
  3. When asked, enable the DHCP server on LAN with the range 192.168.50.100 to 192.168.50.199.
  4. The console summary should now show WAN with an address from your home router and LAN at 192.168.50.1.
  1. Plug your laptop into the lab switch. It should get an address from the new pool (192.168.50.100 or higher).
  2. Browse to https://192.168.50.1 and accept the self-signed certificate warning.
  3. Log in as root with the password you set in Step 5.
  4. 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.
  5. Go to System → Firmware, check for updates and apply them.
  • The dashboard shows WAN up with an address from your home router
  • Your laptop has a 192.168.50.x address 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.