Home automation edition
Home Assistant News

Reporting the local stack, from radio to automations.

Guide · OpenWrt

OpenWrt vs OPNsense: which fits your smart home

Sooner or later every Home Assistant tinkerer looks at their ISP router and thinks: I can do better. Then the forums split you into two camps. One says OpenWrt. The other says OPNsense. Both are free, open source and cloud-free. They are also built for different jobs.

Short answer: OpenWrt is a router operating system that can run your Wi-Fi too. OPNsense is a dedicated firewall that expects separate access points. Plenty of homes run both.

OpenWrt: the all-in-one

OpenWrt is Linux for routers. It runs on thousands of ordinary Wi-Fi routers (2,187 models have official release builds, per OpenWrt's device data) and on plain x86 PCs. Your Wi-Fi networks can live right on the router.

It also has a big package library: WireGuard for remote access, mosquitto for MQTT, AdGuard Home for ad blocking, and VLAN tools to fence off your smart-home gadgets. Since 25.12, packages are installed with apk rather than opkg (what changed in 25.12).

OPNsense: the bouncer

OPNsense is built on FreeBSD and runs only on 64-bit x86 (amd64) hardware, per its hardware docs. Extra features come as plugins you install from the web UI. It wants to be the firewall and nothing else.

Wi-Fi is the giveaway. OPNsense's own wireless page says results "may vary", that wireless-ac isn't supported, and that most companies use separate access points. Believe them.

Side by side

OpenWrtOPNsense
BaseLinuxFreeBSD
HardwareConsumer Wi-Fi routers plus x86 PCsx86-64 PCs and appliances only
Wi-Fi on the boxYesLimited; use separate APs
ExtrasPackages (apk): WireGuard, mosquitto, AdGuard Home…Plugins from the web UI
InstallPer-model image from the Firmware SelectorEmbedded image (runs from a RAM disk, easy on storage) or Full image (writes to local disk)

Which one for a smart home?

Pick OpenWrt if you want one box that routes and does Wi-Fi, or you want handy tools running next to the router. It's also the cheaper path: you may be able to flash a router you already own.

Pick OPNsense if you want a serious, dedicated firewall on a small PC, with access points doing the Wi-Fi. Its docs suggest buying hardware from Deciso or its listed partners, who contribute back to the project.

Or use both: OPNsense as the firewall on a mini PC, OpenWrt routers set up as access points behind it. Build it one box at a time.

Either way, Home Assistant never needs to face the internet. For remote access, see WireGuard on OpenWrt.

Two gotchas

  • One OS per box. Switching means wiping and reinstalling. Back up your config and plan so your VLANs survive the swap.
  • Keep OpenWrt patched. The current release is 25.12.6, and its notes strongly recommend updating for web-server security fixes.
Primary sources
OPNsense hardware documentation; OPNsense installation documentation; OPNsense wireless documentation; OPNsense included software; OpenWrt 25.12.6 release notes; OpenWrt Firmware Selector, x86/64; OpenWrt device page (generic x86)