OPNsense for Raspberry Pi

Flash-and-boot OPNsense 26.7 (FreeBSD 15.1) images. The UEFI firmware is already on the disk.

Unofficial community build, not supported by Deciso.

Works

Raspberry Pi 4

  • Onboard Ethernet genet0 as LAN
  • USB 3 NIC (RTL8153 / AX88179) as WAN
  • UEFI: pftf/RPi4 v1.53
  • No AES hardware, so VPNs are CPU-bound
Download for Pi 4
1.32 GB · sha256
Works

Raspberry Pi 5

  • Onboard Ethernet rp1eth0 works (1 Gb/s; tested on a 16 GB board)
  • USB 3 NICs (RTL8156 2.5 GbE) attach as ue0, ue1, ... and carry traffic
  • Measured as a home router on a 1 Gb/s AT&T line: about 830 Mbit/s down, 700 up, with Suricata on; CPU 18% average across cores (details)
  • UEFI: rpi5-uefi v0.1, D0 boards (all 16 GB), SD boot
  • AES hardware on Cortex-A76
Download for Pi 5
1.32 GB · sha256

Startup on a real Pi 5: time until traffic flows

Real Pi 5 (16 GB), from the reboot commandopnsense-pivyos-pisensr (development build, ran on a Pi 5)
Kernel starts36–38 s14 s≈19 s (derived)
Traffic flowing (network up)64–67 s48 s≈34 s
SSH / UI ready65–68 s
web GUI
47–48 s
SSH
43 s
SSH; UI assets not packaged yet
Fully ready81–85 s48–49 s≈66 s

Timed from the reboot command, so shutdown, the Pi firmware and the boot loader come first (the "kernel starts" row): OPNsense boots through UEFI, VyOS straight from the Pi firmware. "Traffic flowing" is the LAN port up with an address; "fully ready" is OPNsense's last boot script or VyOS's config loaded. OPNsense from its own boot logs over 7 typical reboots (1 s resolution); VyOS from 2 warm reboots, its journal plus a 1 s external watcher. VyOS has no web UI, so its figure is SSH. The sensr column is its development trial (pi5-1, imported home-router config): on the box, kernel 0.6 s, initrd 4.7 s and userspace 41.9 s, LAN carrier 14.9 s, SSH 24.0 s after kernel start, and 43 s from the reboot command to SSH by wall clock; the kernel/traffic/ready rows are that 43 s less the kernel-to-SSH interval (≈1 s uncertainty). Method and every run: Pi 5 comparison, boot time.

x86 VM (relative only, not the Pi)
x86 VM, from VM startOPNsenseVyOSsensr
Traffic flowing14.5 s
17.7 s with 1k rules
30.7 s
120.6 s with 1k rules
10.7 s
config imported at first boot; 9.6 s with the factory config
UI/API ready15.4 s
19.4 s with 1k rules
39.4 s
>10 min with 1k rules
18.3 s
SSH/API; being optimised

OPNsense and VyOS from the sensr benchmark: median of 5 boots from virsh start, virtio, boot loader delays as shipped; "1k rules" is 1,000 rules plus a 10k-entry table. sensr from its own boot benchmark (nix/bench/boot-times.py) with the same definitions: x86 qcow2 under KVM, median of 5 (5 of 5 succeeded), from QEMU start including OVMF and systemd-boot's 1 s timeout; traffic flowing is a LAN client pinging the WAN host through NAT every 50 ms. A fix to sensr's SSH/API start-up order is in progress. These show relative start-up cost on fast hardware, not Pi 5 times.

Pi 5 LAN port speed

Measured on a live home router running this image: a Pi 5, 16 GB, OPNsense 26.7.9_1, on 2026-11-16.

iperf3 between a wired 1 GbE Mac and the router's LAN port (USB RTL8156, linked at 1 Gb/s), 15 s runs:

TestOPNsense Mbit/sOPNsense CPUVyOS Mbit/s (same router role, USB RTL8156 LAN)
TCP in, 1 stream591–59422–23%911–916
TCP in, 4 streams600–61224–29%862–871
TCP out, 1 stream922–92823–33%911–923
TCP out, 4 streams931–93223–24%927–928
UDP in at 1 Gb/s953, 0.8% loss20%952, 0.7–0.8% loss
UDP out at 1 Gb/s930, 0.04% loss40%922–944, 0.02–0.3% loss

The VyOS column is vyos-pi after it replaced this router on the same day: the same Mac, switch and USB RTL8156 chip, but a different board and a different adapter unit. It was a live router too, also running ntopng.

These end on the router itself, so they measure the NIC, driver and CPU, not routing or NAT; the router was carrying household traffic at the time. 940 Mbit/s is the 1 GbE limit. Method and raw data, side by side with VyOS on the same board type: Pi 5 comparison.

A sensr development trial (Pi 5, 16 GB, USB RTL8156 LAN, imported home-router config with Suricata) measured 940 Mbit/s into the router and 932 Mbit/s out with 4 TCP streams – the Mac's 1 GbE limit – and, forwarded through NAT and the firewall on the 1 Gb/s AT&T line, 436 Mbit/s up and about 717 Mbit/s down. Its boot figures are in the table above.

Image size

Pi 5 download (.img.xz)Pi 4 downloadInstalled on disk*
opnsense-pi (release 26.7-4)1.32 GB1.32 GB~2.1 GiB (2,104 MiB)
vyos-pi (release 2026.11.16-2)599 MB562 MB~0.7 GiB (732 MiB squashfs)
sensr (development build, not released)~373 MB (.img.zst from CI; 2.1 GB raw)—~0.85 GiB (870 MiB x86 closure)

Downloads: the latest GitHub releases (this page updates the sizes from GitHub when it loads). *Installed: measured on x86 VMs in the sensr benchmark (OPNsense 26.7, VyOS rolling), not on the Pi images. The sensr row is measured on its development builds: the Pi 5 image as CI builds it (zstd), and the closure of the x86 qcow2 image.

Throughput ceiling on the Pi 5

Theoretical; not yet measured with 5 GbE dongles.

LinkCeiling
Onboard Ethernet1 Gbit/s
Each blue USB 3.0 port5 Gbit/s signalling (USB 3.x Gen 1, 8b/10b coding), so at most 4 Gbit/s of data. A 5 GbE RTL8157 dongle can link at 5 Gbit/s, but on a PC's Gen 1 port it moved 3.47 Gbit/s in iperf3 (4.70 on Gen 2). Expect about 3.5 Gbit/s per port. Each port has its own USB controller in the RP1 chip.
RP1 ↔ SoCPCIe 2.0 x4, about 16 Gbit/s each way, shared by both USB ports and the onboard Ethernet. It is not the limit with two dongles.
DriverFreeBSD's ure driver stops at the RTL8156: it has no RTL8157 support, in FreeBSD 15.1 (OPNsense 26.7) or in FreeBSD's main branch as of November 2026. 2.5 GbE (RTL8156) is the fastest supported USB NIC, about 2.35 Gbit/s per port.
Through the routerThe lowest of the WAN port, the LAN port and what the CPU can forward. The firewall rules, NAT and Suricata set the real figure. Measured so far: through NAT on a live router and to the router itself.

Live router: OPNsense vs VyOS through NAT, with Suricata

The same tests, run on this router and then on vyos-pi after it replaced it (same Pi 5 model, same Mac, same public iperf3 servers, 15 s runs, household traffic flowing). Mbit/s with 8 streams:

SuricataOPNsense down / upVyOS down / up
Stopped664 / 441591–790 / 714–718
IDS on WAN, ET Open rules loaded478 / 340544 / 635
IPS on WAN (blocking)264 / 192363 / 374

The public servers cap these numbers, not the routers: repeating a state varied by about ±25%. VyOS was also running ntopng and AdGuard Home. On both, IDS on the NATed WAN with HOME_NET set to private ranges matches almost no ET rules. Every state, latency, CPU and the detection probes: VyOS live-router results, side by side with the OPNsense baseline.

One-liner (Linux)

Writes the Pi 4 image straight to a disk. Replace /dev/sdX; everything on it is erased.

curl -fL https://github.com/itpick/opnsense-pi/releases/latest/download/opnsense-pi4.img.xz | xz -dc | sudo dd of=/dev/sdX bs=4M conv=fsync status=progress

Or, in Raspberry Pi Imager, choose Use custom and select the downloaded .img.xz.

First boot

  1. Update the EEPROM bootloader first (Raspberry Pi OS: sudo rpi-eeprom-update -a).
  2. Pi 4: press Esc at the UEFI splash, go to Device Manager → Raspberry Pi Configuration → Advanced Configuration, and disable Limit RAM to 3 GB.
  3. On the HDMI console, assign interfaces: LAN genet0 (Pi 4) or rp1eth0 (Pi 5), WAN ue0.
  4. Open https://192.168.1.1 and log in as root / opnsense. Change the password.

Build it yourself

git clone https://github.com/itpick/opnsense-pi && cd opnsense-pi && make image BOARD=pi4