Four Intel i226 ports in a fanless case do not make a firewall. They make a small computer with four network cards. What turns that computer into a firewall is a short list of decisions OPNsense asks you to make in the first hour: which port faces the internet, which networks may talk to each other, and what a VPN client is allowed to reach.
Most build guides stop at the parts list, so the box ends up running with one flat LAN and every default left in place. This one follows a single packet path from the parts you buy, through the install, a separate IoT VLAN and a WireGuard road warrior tunnel, then proves each rule from the outside. Hardware specs come from maker pages, Protectli’s knowledge base, Amazon listings and the Network UPS Tools compatibility list, and the power figures are ServeTheHome’s measurements. Every command below was run on OPNsense 26.7, updated to 26.7.9, in a nested KVM lab in November 2026.

Each address in the diagram shows up again in the command output below.
The parts decide your headroom
A home firewall needs less than you’d guess. The OPNsense hardware page recommends a 1.5 GHz multi-core CPU, 8 GB of RAM and a 120 GB SSD, and an Intel N150 with four i226 ports clears all three. You are buying for the features you will turn on later, not for routing, because routing a home connection is the lightest job the box will do. The table below is the build this guide plans around.
| Part | Pick | Why this one | Price band |
|---|---|---|---|
| Firewall box | Protectli Vault Pro VP2430e (coreboot) | Intel N150, 4x Intel I226-V 2.5GbE, fanless, one DDR5 SO-DIMM slot, one M.2 2280 NVMe slot, barebones | From Protectli direct, check the live price; the coreboot Amazon listing is currently unavailable |
| RAM | Crucial 16GB DDR5-4800 SO-DIMM (CT16G48C40S5) | The .M8A1 revision is listed on Protectli’s compatibility page for this box | $260 to $300, check the live price |
| NVMe | WD Blue SN5100 500GB | In stock, 300 TBW rating, 5-year warranty | $110 to $130, check the live price |
| NVMe (endurance) | WD Red SN700 500GB | 1000 TBW rating for heavy logging, often backordered | $170 to $190 when in stock |
| PoE switch | TP-Link TL-SG2210P V3 | 8x PoE+ ports, 61 W budget, 2x SFP, 802.1Q VLANs | $100 to $130, check the live price |
| UPS | CyberPower CP850PFCLCD | 850VA/510W, listed by Network UPS Tools under the usbhid-ups driver | $160 to $180, check the live price |
Three trade-offs sit inside that table, and each one changes what you should buy:
- The NVMe slot runs at PCIe Gen3 x2, so a Gen4 drive’s speed is wasted.
- 8 GB of RAM is enough for routing, VLANs and WireGuard. 16 GB is for Suricata or Zenarmor.
- TP-Link’s page lists the TL-SG2210P as End of Sale, so stock will thin out.
The step-up tier is an Intel Core i3-N305, which Intel lists at 8 cores and 15 W TDP against the N150’s 4 cores and 6 W base power. That headroom matters only if you plan to run intrusion detection at multi-gigabit speeds, because Suricata inspects every packet on the CPU and it is the first feature to run out of cores. No 4x i226-V N305 box passed a maker-page check for this build, so the current N305 options live in the pfSense and OPNsense hardware guide instead. If you’re still choosing the software, OPNsense vs pfSense on a mini PC covers that decision first.
Assembly is two parts and a lid
A barebones box ships without memory or storage. The VP2430e has one SO-DIMM slot and one M.2 NVMe slot, plus a 2.5-inch SATA bay this build leaves empty. In order:
- Open the bottom cover.
- Seat the DDR5 SO-DIMM until both clips latch.
- Insert the M.2 2280 NVMe at an angle, press it flat, fit the screw.
- Close the cover and connect the 12 V supply.
Protectli’s VP2430 compatibility page lists the memory modules it has validated, and it’s worth checking before you order RAM from another brand. Do not cable the WAN port yet. You will decide which physical port is WAN during the install, and OPNsense can detect it from the link state for you, so there is no need to guess from the case labels.
The signature covers the raw image
OPNsense publishes a checksum file and an RSA signature for every image, and the two protect different files. The checksum covers the compressed download. The signature covers the image after you decompress it, which is the detail that trips people up. Download the VGA image, its signature, the checksum file and the release public key:
curl -fLO https://pkg.opnsense.org/releases/26.7/OPNsense-26.7-vga-amd64.img.bz2
curl -fLO https://pkg.opnsense.org/releases/26.7/OPNsense-26.7-vga-amd64.img.sig
curl -fLO https://pkg.opnsense.org/releases/26.7/OPNsense-26.7-checksums-amd64.sha256
curl -fLO https://pkg.opnsense.org/releases/26.7/OPNsense-26.7.pub
Check the compressed file against the published hash first. The --ignore-missing flag skips the other images listed in the same file:
sha256sum -c --ignore-missing OPNsense-26.7-checksums-amd64.sha256
Only the VGA image is on disk, so only its line is checked:
OPNsense-26.7-vga-amd64.img.bz2: OK
What happens when you verify the signature against the .bz2 file? It fails twice over. The .sig file is base64 text, so feeding it to OpenSSL raw gives a padding error. After you decode it, the signature still does not match the compressed file:
40477F24257F0000:error:02000068:rsa routines:ossl_rsa_verify:bad signature:../crypto/rsa/rsa_sign.c:430:
40477F24257F0000:error:1C880004:Provider routines:rsa_verify:RSA lib:../providers/implementations/signature/rsa_sig.c:774:
Verification failure
Decode the signature, keep a decompressed copy of the image with -k, and verify the decompressed file:
openssl base64 -d -in OPNsense-26.7-vga-amd64.img.sig -out vga.sig.bin
bunzip2 -k OPNsense-26.7-vga-amd64.img.bz2
openssl dgst -sha256 -verify OPNsense-26.7.pub -signature vga.sig.bin OPNsense-26.7-vga-amd64.img
The release key now vouches for the exact bytes you’re about to write, as long as the key itself is genuine. The install docs advise comparing the .pub file with a copy from another source, such as the release announcement, because a tampered mirror could swap both:
Verified OK
Write the decompressed .img to a USB stick of at least 4 GB with the imaging tool you already use, then boot the mini PC from it. The OPNsense install guide lists the other image types: serial for headless boxes, DVD and nano.
The installer writes ZFS to NVMe
The USB stick boots a live OPNsense that already routes, which is why the installer hides behind its own login. Log in as installer with the password opnsense, pick your keymap, and choose Install (ZFS) from the task menu.

ZFS over UFS is the right call on a box that can lose power, because its copy-on-write design never overwrites live data in place. An unclean shutdown therefore does not leave you running fsck on the firewall’s root disk, which is exactly the chore a power cut causes on UFS. With a single NVMe drive, pick stripe, select the disk, confirm the wipe and set a root password. The install finished in a few minutes in the lab, and the system reboots from NVMe once you remove the stick.
Port labels don’t name interfaces
On first boot, OPNsense assigns LAN and WAN to the first two NICs it finds and gives LAN the address 192.168.1.1/24. On an i226 box the four ports appear as igc0 to igc3, and the number FreeBSD gives a port may not match the label printed on the case. If you cable by the labels and guess wrong, your laptop ends up facing the modem and the setup wizard is not reachable at all.

The lab’s virtual NICs show as vtnet0 and vtnet1, and the logic is the same on hardware. Log in as root, pick option 1, Assign interfaces, and answer no to the LAGG and VLAN questions. Then let the link state name the ports:
- Unplug every cable from the box.
- At the WAN prompt, press
a. - Plug in only the cable from your modem.
- Repeat at the LAN prompt with the cable to your switch.
The port that comes up first is the one OPNsense assigns, so you never have to know which igc number sits behind which socket. If an i226 port later drops its link under load, the i226 link-drop fixes for OPNsense cover the EEE and driver tunables.
The wizard blocks private WAN sources
Plug a laptop into the LAN port, browse to https://192.168.1.1, accept the self-signed certificate and log in as root. The setup wizard opens on General Information, where you set the Hostname and Domain. The lab used gw01 and home.arpa, the domain RFC 8375 reserves for home networks.

- 1Hostname
- 2Domain
The WAN step holds the setting people misread. With Type left on DHCP, the box takes its WAN address from your modem or ISP router, and Block RFC1918 Private Networks is ticked by default. That checkbox does not stop the WAN getting a private address. It drops inbound packets whose source is a private address, so it only bites when something you want to reach the firewall sits on a private network upstream of it.

- 1Type
- 2Block RFC1918 Private Networks
Leave it ticked when your VPN clients connect from the internet, because their source addresses are public. The lab unticked it because its road warrior sat on the private 10.99.0.0/24 upstream, and the WireGuard handshakes would have been dropped otherwise. Finish the wizard with a new root password, and the dashboard loads.
Updates come before configuration
Install images are cut at each major release, so a fresh box is usually several minor updates behind. Patching first means every screen you configure afterward matches the current release, and you are not chasing a bug that a later minor release already fixed. Use option 8 on the console, or enable SSH under System, Settings, Administration and also tick root login and password login there, then check what’s running:
opnsense-version; freebsd-version -ku; uname -a
The fresh install reports the base release and its kernel patch level:
OPNsense 26.7 (amd64)
15.1-RELEASE-p1
15.1-RELEASE-p1
FreeBSD gw01.home.arpa 15.1-RELEASE-p1 FreeBSD 15.1-RELEASE-p1 stable/26.7-n283674-12334a596709 SMP amd64
Open System, Firmware, Status, click Check for updates, then Update. This one carried a kernel patch, so it asked for a reboot, and the box was back in about five minutes. The OPNsense update guide covers the console path too. The status page now shows the new version:

Running the same command again confirms both layers moved, the OPNsense packages and the FreeBSD base:
OPNsense 26.7.9_1 (amd64)
15.1-RELEASE-p6
15.1-RELEASE-p6
FreeBSD gw01.home.arpa 15.1-RELEASE-p6 FreeBSD 15.1-RELEASE-p6 stable/26.7-n284285-1633399de9dd SMP amd64
The kernel patch level moved from p1 to p6, which is why the reboot was needed. A packages-only update would change the first line and leave the other three alone.
A VLAN is three objects
Creating a VLAN in OPNsense does not give you a network. You get a tagged device with no address, no rules and no DHCP, and it stays useless until you build two more objects on top of it. In order:
- The VLAN device: a tag on a parent port.
- The interface assignment: a name the firewall can write rules for.
- The address: the gateway IP that clients on the VLAN will use.
Go to Interfaces, Devices, VLAN and add one. Set Parent to the LAN port, VLAN tag to 20 and Description to IOT. The parent is the port that carries tagged frames to your switch, so the switch port on the other end must be a trunk that carries VLAN 20 tagged.

- 1Parent
- 2VLAN tag
- 3Description
Next, Interfaces, Assignments: add a new interface, type IOT as the Description and pick the VLAN 20 device. Save, and the IOT interface appears in the left menu, enabled but without an address.

- 1Description
- 2Device
In the same Edit Assignment dialog on Interfaces, Assignments, set IPv4 Configuration Type to Static IPv4 and the IPv4 address to 192.168.20.1/24. The /24 matters here, because the prefix you type is what defines the “IOT net” alias your rules use later.

- 1IPv4 Configuration Type
- 2IPv4 address
On a TP-Link switch such as the TL-SG2210P, that means tagging VLAN 20 on the uplink port and setting it untagged, with PVID 20, on the ports for IoT devices. The VLAN-capable switch roundup lists cheaper 802.1Q options if you don’t need PoE.
Dnsmasq answers only where told
New installs use Dnsmasq for DHCP, and a DHCP range alone is not enough to serve a new VLAN. Dnsmasq also has to listen on that interface, which is a separate setting on a different tab. The lab added two things:
- a DHCP range for IOT, 192.168.20.100 to 192.168.20.200
- IOT in the General tab’s Interface list, next to LAN
Under Services, Dnsmasq DNS & DHCP, DHCP ranges, set Interface to IOT, then the Start address and End address:

- 1Interface
- 2Start address
- 3End address
On the General tab, add IOT to the Interface field and apply. The wizard selected only LAN here, and this selection is also what registers the automatic firewall rules for DHCP on each interface.

A Linux client on a VLAN 20 sub-interface proves it. The lab’s interface was vi-n.20, so swap in your own name:
sudo dhclient -v vi-n.20
The offer comes from 192.168.20.1, the IOT gateway, with an address from the new range:
Internet Systems Consortium DHCP Client 4.4.3-P1
DHCPDISCOVER on vi-n.20 to 255.255.255.255 port 67 interval 3 (xid=0xf331266c)
DHCPDISCOVER on vi-n.20 to 255.255.255.255 port 67 interval 8 (xid=0xf331266c)
DHCPOFFER of 192.168.20.174 from 192.168.20.1
DHCPREQUEST for 192.168.20.174 on vi-n.20 to 255.255.255.255 port 67 (xid=0x6c2631f3)
DHCPACK of 192.168.20.174 from 192.168.20.1 (xid=0xf331266c)
bound to 192.168.20.174 -- renewal in 35684 seconds.
The client sent two discovers before the offer arrived, which is normal right after a change is applied. A client that keeps sending discovers with no offer at all points back at the range or the Interface field. The block above is trimmed to the DHCP exchange.
Rules match top down
A new interface in OPNsense blocks everything inbound until you add a pass rule, so IOT clients have an address but can’t reach anything yet. Rules on an interface are checked against packets entering that interface, from the top, and the first match wins. The IOT interface needs two:
- Block, source IOT net, destination LAN net.
- Pass, source IOT net, destination any.
Under Firewall, Rules, IOT, add the block rule first. Turn on the dialog’s advanced mode if Source and Destination aren’t showing, then pick the network aliases:

- 1Source
- 2Destination
The pass rule uses the same Source, with Destination set to any. It lets IoT devices reach DNS on the gateway and the internet. Any destination not caught by the block rule above it is allowed, including the WireGuard net and any VLAN you add later, so add a block rule for each of those too.

- 1Source
- 2Destination
Check the order on the rules list before you apply. Swap the two and the pass rule matches LAN-bound traffic first, so the block never fires. The list still looks fine at a glance, which is why you should read the order rather than the rule names.

The pings from the IOT client show both rules working. The IOT gateway and the internet side at 10.99.0.2 answer, the LAN client and even the firewall’s LAN address don’t:
# ping IOT gateway
2 packets transmitted, 2 received, 0% packet loss, time 1055ms
rtt min/avg/max/mdev = 0.367/0.453/0.540/0.086 ms
# ping internet side 10.99.0.2 (allowed)
2 packets transmitted, 2 received, 0% packet loss, time 1015ms
rtt min/avg/max/mdev = 0.515/0.544/0.573/0.029 ms
# ping LAN client 192.168.1.43 (blocked)
--- 192.168.1.43 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2039ms
# ping LAN gateway address 192.168.1.1 (blocked)
--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2087ms
Why does 192.168.1.1 fail when it’s the firewall itself? Because “LAN net” includes the firewall’s own LAN address. That does not lock IoT devices out of the firewall: the pass rule still matches its IOT address 192.168.20.1, which answered the IOT client’s pings, and the web GUI listens on every interface by default. To keep IoT gear off the GUI, limit Listen Interfaces to LAN under System, Settings, Administration. The SSH section on that page has its own Listen Interfaces field, so set it to LAN too, or turn password login back off once the update is done. A ping from the LAN client to 192.168.20.174 still succeeded in the lab, since the block lives on IOT and only filters traffic entering from VLAN 20. Nothing else changes for LAN.
WireGuard needs two firewall rules
Turning on WireGuard does not open a port. The tunnel listens on the WAN, but the WAN still drops everything until a rule passes UDP to it, and traffic coming out of the tunnel is blocked until a second rule passes it. The whole setup is five objects:
- An instance: the server side, with its keys and tunnel address.
- A peer: one client and the address it may use.
- The service switch.
- A WAN rule for UDP 51820.
- A rule on the WireGuard group for tunnel traffic.
Under VPN, WireGuard, Instances, add an instance. Set Name to wg0, Listen port to 51820 and Tunnel address to 10.66.66.1/24, and let the dialog generate the key pair. Copy the instance’s public key now, because the client needs it.

- 1Name
- 2Listen port
- 3Tunnel address
- 4Peers
The Peers field in that dialog links a client to the instance. Create the peer on the Peers tab, then come back and select it here. The lab’s peer form left its own Instances field empty and the link held from this side.
On the Peers tab, add a peer with Name roadwarrior01, the client’s Public key, and Allowed IPs set to 10.66.66.2/32. A /32 per peer is what stops one client from claiming another’s tunnel address.

- 1Name
- 2Public key
- 3Allowed IPs
Back on the main WireGuard page, tick Enable WireGuard and press Apply. The service starts, but no client can reach it yet.

- 1Enable WireGuard
- 2Apply
Under Firewall, Rules, WAN, add a pass rule with Protocol UDP, Destination WAN address and Destination Port 51820. Choosing WAN address rather than any scopes the rule to the firewall itself, so it can’t accidentally pass UDP 51820 to a host behind it.

- 1Protocol
- 2Destination
- 3Destination Port
Then open Firewall, Rules, WireGuard, the group every instance joins, and pass traffic from the WireGuard net as Source to any Destination. Narrow Destination to LAN net if road warriors should reach only your home network.

- 1Source
- 2Destination
The client side needs five values. These are the ones the lab’s road warrior ran with, read back from its wg show output:
| Client setting | Lab value | What it does |
|---|---|---|
| Address | 10.66.66.2/32 | Must match the peer’s Allowed IPs on the firewall |
| Peer public key | The wg0 instance’s public key | Proves the client is talking to your firewall |
| Endpoint | WAN address, port 51820 | Your public IP or a dynamic DNS name on a real line |
| AllowedIPs | 10.66.66.0/24, 192.168.1.0/24 | Split tunnel: only the VPN and LAN go through it |
| PersistentKeepalive | 5 seconds | Keeps NAT mappings open; 25 seconds is the usual value |
Bring the tunnel up on the client and check the handshake:
sudo wg show
A handshake seconds old means the WAN rule and both keys are right. A missing “latest handshake” line almost always means the UDP rule or the endpoint is wrong:
interface: rw0
public key: V7KUg5vDgGhXVxeLV8fkjVbmb4yTLWKyqMsC1byzQgI=
listening port: 36814
peer: jZksgj+ssbmb/vP9ljB3Bz13nnRz1R6BgxlHcFbd/j8=
endpoint: 10.99.0.101:51820
allowed ips: 10.66.66.0/24, 192.168.1.0/24
latest handshake: 4 seconds ago
transfer: 892 B received, 948 B sent
persistent keepalive: every 5 seconds
VPN, WireGuard, Status on the firewall shows the same peer from its side, with the handshake time and traffic counters. The OPNsense road warrior how-to adds the outbound NAT rule you need for a full tunnel.

A handshake proves the keys, not the rules. The ping test further down checks that tunnel traffic actually reaches the LAN.
Lab numbers measure the method
The throughput below comes from a nested VM, not an N150, and it should not be read as a hardware figure. The firewall ran with 2 vCPUs of an Intel Xeon at 2.80 GHz and 4 GB of RAM on a GCP n2-standard-8 host, with virtio NICs. A baseline with no firewall in the path hit 162 Gbits/sec, so the host wasn’t the limit.
| Path (iperf3, 4 streams, 10 s) | Sender | Receiver |
|---|---|---|
| LAN to WAN through NAT | 1.66 Gbits/sec | 1.65 Gbits/sec |
| WAN to LAN through NAT (-R) | 1.67 Gbits/sec | 1.66 Gbits/sec |
| WireGuard, road warrior to LAN | 915 Mbits/sec | 907 Mbits/sec |
| WireGuard, LAN to road warrior (-R) | 689 Mbits/sec | 684 Mbits/sec |
The ratio is the useful part. WireGuard cost roughly half the NAT throughput on the same two cores, because every packet is encrypted and decrypted on top of being routed, and that work lands on the CPU rather than the NIC. You should expect the same shape on a mini PC, with the absolute numbers set by its cores and the i226 ports. If your line is faster than the WireGuard figure your box reaches, the tunnel becomes the limit for remote access, not the connection.
Idle footprint carries over better. After the lab’s 33 minutes of uptime, the firewall sat at 95% idle CPU and the install used little of the NVMe:
CPU: 2.7% user, 0.0% nice, 1.5% system, 0.7% interrupt, 95.2% idle
Mem: 264M Active, 186M Inact, 528M Wired, 2056K Buf, 2922M Free
ARC: 263M Total, 62M MFU, 156M MRU, 447K Anon, 2425K Header, 42M Other
173M Compressed, 436M Uncompressed, 2.51:1 Ratio
Swap: 8192M Total, 8192M Free
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zroot 55.5G 1.17G 54.3G - - 1% 2% 1.00x ONLINE -
Under 1 GB of active and wired memory, with the ZFS cache included, is why 8 GB is plenty without IDS. A 1.17G install on a 500 GB drive leaves the rest for logs and Netflow data.
Power draw needs real hardware, and ServeTheHome measured it on two close relatives of this build. No published wall-power measurement for an N150 four-port box turned up in the research for this build, so treat the N100 row as the nearest guide:
| Box (measured by STH) | Idle | Under load |
|---|---|---|
| Fanless N100, 4x i226-V | 10.5 to 12 W | 22 to 23 W max |
| Fanless i3-N305, 4x 2.5GbE | 9 to 11 W | about 36 W for the first 36 seconds, then 28 to 29 W |
A firewall drawing 10 to 30 W is a small load for an 850VA UPS, and the switch’s PoE devices will usually draw more than the firewall. With the os-nut plugin and the UPS on USB, OPNsense can shut itself down cleanly before the battery runs out, and Network UPS Tools lists this CyberPower model under its usbhid-ups driver. The OPNsense NUT how-to covers the plugin’s netclient mode for a UPS attached to another machine.
Prove it from outside
A rule you checked only on the firewall’s own pages is a rule you haven’t tested. Each claim in this build has a test from a second machine, and the lab ran all three:
- NAT: the upstream side sees only the WAN address
- VLAN isolation: the IOT pings above, blocked to LAN
- VPN reach: a road warrior pings a LAN host
A packet capture on the upstream host, while the LAN client at 192.168.1.43 pinged 10.99.0.2, shows the firewall’s WAN address 10.99.0.101 as the source. The private LAN address never leaves the box:
05:04:52.805988 IP 10.99.0.101 > 10.99.0.2: ICMP echo request, id 63455, seq 1, length 64
05:04:52.806007 IP 10.99.0.2 > 10.99.0.101: ICMP echo reply, id 63455, seq 1, length 64
From the road warrior, ping the firewall’s tunnel address and then the LAN client through the tunnel:
ping -c 3 10.66.66.1
ping -c 3 192.168.1.43
Both answer, which proves the WireGuard group rule passes tunnel traffic into the LAN:
--- 10.66.66.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2026ms
rtt min/avg/max/mdev = 0.730/0.787/0.901/0.080 ms
--- 192.168.1.43 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2039ms
rtt min/avg/max/mdev = 0.746/0.855/0.943/0.081 ms
Run the same three tests whenever you change a rule, from a device on the network you are changing. If you would rather rehearse all of this before the hardware arrives, the same screens work in a VM. The OPNsense on Proxmox VE guide walks through that setup, and the NIC guide for OPNsense and pfSense covers adding ports once four aren’t enough.