How To

How to Update OPNsense from the Web UI or Console

This post contains affiliate links. If you buy through them, we may earn a small commission at no extra cost to you. Learn more.

To update OPNsense you have three tools, and they are not interchangeable. The web UI handles minor updates well. Console option 12 is what the project recommends for a major upgrade, because the firewall goes offline while the new release installs and a browser tab cannot show you what happened. The opnsense-update command sits under both of them, for scripting the job or reading the logs.

Original content from computingforgeeks.com - post 154193

We took one firewall through all three: a minor GUI update, a major upgrade from the console, a patch from the shell, then a package rollback and back to current. Every step below was run in November 2026 on an OPNsense lab firewall that went from 26.1.6 to 26.7.9, so the screens and output come from that box.

Pick the right update path

Which method you use depends on what the update is and whether you can reach the box when it stops answering. OPNsense ships minor updates within a series (26.7.7 to 26.7.9) and a major release twice a year (26.1 to 26.7), and the two behave very differently:

  • Minor update, remote box: System > Firmware in the web UI
  • Major upgrade: console option 12 on a monitor, serial line or IPMI
  • Scripted or headless minor update: opnsense-update -bkp from a root shell
  • One broken package after an update: opnsense-revert

Updating from the console does not need SSH. Option 12 lives on the local console menu you get on a monitor or serial cable. SSH only gives you a remote copy of that same menu, and you lose it the moment the major upgrade reboots into its offline install phase. If the firewall is a VM, the hypervisor console counts as local, which is what we used for the lab.

Back up the configuration first

Everything OPNsense knows about your network lives in one file, /conf/config.xml. A failed update you can reinstall around in twenty minutes, but only if you still have that file, so download a copy before every update, minor ones included. Open System > Configuration > Backups and click Download configuration:

OPNsense System Configuration Backups page with the Download configuration button marked

Keep the XML off the firewall, in a password manager or an encrypted folder, because it holds password hashes and VPN keys. Console option 13 (Restore a backup) can put an older configuration back later, and a fresh install will import the file during setup.

If OPNsense runs as a VM, take a hypervisor snapshot as well. On Proxmox that is one click in the VM’s Snapshots tab, and our OPNsense on Proxmox VE guide covers that setup.

Update OPNsense from the web UI

For a minor update the GUI is the fastest path, and it is the one most people should use. Go to System > Firmware > Status. The tab shows the installed version and the mirror it pulls from. Our lab box read 26.1.6_2 against the FreeBSD 14 package mirror. Click Check for updates:

OPNsense System Firmware Status tab on 26.1.6 with the Check for updates button marked

A changelog dialog pops up first. Close it and the Updates tab lists every package with its current and new version. Look at the base and kernel rows: when they change, the update needs a reboot. Our run offered 79 updates and a 307.5 MiB download, with the base set 26.1.6 to 26.1.11 and the kernel row making the same jump:

OPNsense Firmware Updates tab listing the base and kernel sets moving from 26.1.6 to 26.1.11
  1. 1Updates tab
  2. 2base set 26.1.6 to 26.1.11

Scroll to the bottom of the list and click Update. When the kernel is part of the update, OPNsense asks you to confirm the reboot before it starts, because the box drops every connection when it restarts:

OPNsense Reboot required dialog warning that the firewall reboots right after the firmware update

Click OK and the log streams into the page. It fetches the base and kernel sets, prints “A critical upgrade is in progress”, and ends with “Please reboot”. Do not close the tab or power the box off while that banner is up:

OPNsense firmware update log fetching the 26.1.11 base and kernel sets before the automatic reboot

On our lab VM the download and install took about 75 seconds, plus one reboot. The screens are identical on physical hardware. My own OPNsense install runs on a Protectli appliance (the current model is the Protectli VP2430e) and it shows the same pages. When you log back in, the Status tab should show the new version.

Update OPNsense from the console

Console option 12, “Update from console”, runs the same firmware script as the GUI. Log in as root on the local console (a monitor and keyboard, a serial cable, or the hypervisor console) and the menu appears. Type 12 and press Enter. When only minor updates are pending, you confirm with y and it installs them, reboots if the kernel changed, and returns you to the menu.

You can reach the same menu over SSH if you have enabled it. Our guide to enabling SSH on OPNsense shows how. For a minor update that’s fine. For a major upgrade, use a real console, because the offline install phase runs with no network services at all.

Run a major OPNsense upgrade

Once a series reaches end of life, the GUI tells you so. After the 26.1.11 update our box showed this notice: 26.1 was end of life, and the upgrade to 26.7 runs from the web GUI or from the console with option 12. It also says to back up the configuration and take a snapshot first:

OPNsense 26.1 end of life notice with upgrade instructions for the 26.7 major release

We ran it from the console, which is what the OPNsense update documentation recommends, because major updates install offline. Before you start, remove any third-party package repository. OPNsense 26.7 moves from OpenSSL 3.0 to 3.5 and the release notes warn that such repositories “may interfere with your upgrade experience”. They also suggest removing the CPU microcode plugin for the upgrade itself. Then choose option 12. The script spots the new series and asks you to type its number:

OPNsense console menu option 12 offering the 26.7 major firmware upgrade prompt

Read that prompt carefully. Typing 26.7 starts the major upgrade (about 1000 MB to download and 2000 MB of free space to unpack), while y only installs pending minor updates. Next the 26.7 release notes open in a pager, so press q to leave it. The script then downloads the package, base and kernel sets, runs its sanity checks and starts installing. This is the console log from our run:

Fetching packages-26.7-amd64.tar: .......................... done
Fetching base-26.7-amd64.txz: .... done
Fetching kernel-26.7-amd64.txz: .... done
Flushing temporary package files... done
Extracting packages-26.7-amd64.tar... done
Extracting base-26.7-amd64.txz... done
Extracting kernel-26.7-amd64.txz... done
Please reboot.
>>> Invoking upgrade script 'sanity.sh'
Passed all upgrade tests.
!!!!!!!!!!!! ATTENTION !!!!!!!!!!!!!!!
! A critical upgrade is in progress. !
! Please do not turn off the system. !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Installing kernel-26.7-amd64.txz... done

From here the box reboots on its own, installs the base set, reboots again, then applies 193 package changes offline before a final reboot. Ours came back as 26.7.7 on FreeBSD 15.1, not 26.7 GA, because the upgrade pulls the current point release of the new series. The jump to FreeBSD 15 is also a good moment to check the network cards. If a NIC drops out after the upgrade, our Intel i226 drop fix covers the most common case. If you are replacing hardware anyway, the best NICs for OPNsense guide sorts the cards that stay stable.

A new series rarely stays at its first point release for long. When we logged in to 26.7.7, the GUI already offered 26.7.9 with its changelog:

OPNsense 26.7.9 changelog dialog shown over the Updates list on a 26.7.7 firewall

We installed that patch from the shell instead, to show the third method.

Update from the shell with opnsense-update

opnsense-update is the tool the GUI and option 12 call underneath. According to its man page, -bkp “is used to update all currently installed components at once”: -b selects the base system, -k the kernel and -p the packages. Open a root shell (console option 8) and confirm what you’re running:

opnsense-version

The box reported the release the major upgrade had installed:

OPNsense 26.7.7 (amd64)

Run the update. Unlike option 12, it does not ask for confirmation, so be sure the backup from the first step is current:

opnsense-update -bkp

It upgrades packages first. On our box that was 47 package changes (2 new, 43 upgrades, 2 reinstalls) and a 90 MiB download, including openssh-portable 10.5 to 10.6 and the opnsense core package 26.7.7 to 26.7.9. Then it fetches and installs the base and kernel sets:

Number of packages to be installed: 2
Number of packages to be upgraded: 43
Number of packages to be reinstalled: 2
The process will require 8 MiB more space.
90 MiB to be downloaded.
...
Fetching base-26.7.9-amd64.txz: .... done
Fetching kernel-26.7.9-amd64.txz: ... done
!!!!!!!!!!!! ATTENTION !!!!!!!!!!!!!!!
! A critical upgrade is in progress. !
! Please do not turn off the system. !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Installing kernel-26.7.9-amd64.txz... done
Installing base-26.7.9-amd64.txz... done
Cleaning obsolete files... done
Please reboot.
Flushing temporary package files... done

The command exited 0, but the new kernel only loads after a restart, so reboot:

reboot

After the reboot, opnsense-version printed OPNsense 26.7.9 (amd64), and the Firmware Status page agreed and now pointed at the FreeBSD 15 mirror:

OPNsense System Firmware Status tab showing version 26.7.9 and the FreeBSD 15 package mirror

The man page lists many more flags. These are the ones worth knowing for updates:

FlagWhat it does
-bkpUpdate base, kernel and packages in one minor update
-cCheck whether a set update can be performed, without installing it
-vPrint the installed set version
-g / -GShow the log of the last update / last major upgrade
-L / -ULock a set against updates / unlock it
-uStart a major upgrade; finish with -K, -B, -P in that order, rebooting after each

We’d leave -u alone. It needs three more invocations and three reboots, in order, and option 12 already runs that sequence for you with sanity checks. The -G flag earns its place, though, because a major upgrade installs with nothing on the network, and its log is the only record of what happened.

What changes in recent OPNsense releases

The 26.7 series changes several things you’ll notice right after the upgrade. Read the 26.7 release notes in full before you type the version number. These are the items most likely to catch someone out:

  • Legacy firewall rule pages moved to the os-firewall-legacy plugin (26.7)
  • Outbound NAT page moved to the same plugin (26.7.5)
  • Password hashing switched from bcrypt to argon2id (26.7.5)
  • Advanced and file based DHCP modes removed (26.7.6)
  • OpenSSL 3.0 to 3.5, which can break third-party repositories

The firewall move is the one you’ll see first. Your rules keep working without the plugin, and Firewall > Migration assistant converts them to the new Rules page. On our upgraded box the old /firewall_rules.php URL returned a 404 until the plugin was installed, so old bookmarks break. This is the new page, with the assistant in the menu:

OPNsense 26.7 Firewall Rules page with the Migration assistant menu entry marked

Password hashing needs no action. Existing bcrypt passwords still log in, and an account only gets the argon2id hash when you change its password. DHCP is easier to miss: the 26.7.6 notes say advanced and file based modes “are gone and will reset on save”, so check any interface that used them before you edit it.

For SSH, one detail from 26.7.8: OpenSSH 10.6 rejects ML-DSA keys generated by 10.5’s experimental support, so only ML-DSA SSH host keys need regenerating, and the release notes say that happens on the next reboot or service restart. Your other keys are unaffected, and our OPNsense SSH guide covers the rest of the SSH setup. Plugins such as the Tailscale client on OPNsense update through the same firmware run, so check that they started after the reboot.

Roll back a bad OPNsense update

How you roll back depends on what broke. For a single package that regressed, use opnsense-revert. It installs the version of a package from an earlier OPNsense release, as long as the mirror still has that release. We rolled the core opnsense package back from 26.7.9 to 26.7.7:

opnsense-revert -r 26.7.7 opnsense

It fetches the old package, checks the signature and forces the install over the newer one:

Fetching opnsense.pkg: .... done
Verifying signature with trusted certificate pkg.opnsense.org.20260608... done
opnsense-26.7.9: already unlocked
Installing opnsense-26.7.7...
package opnsense is already installed, forced install
...
>>> Invoking update script 'refresh.sh'
Flushing all caches...done.

After that, opnsense-version printed OPNsense 26.7.7 (amd64). Note that -r takes an OPNsense release number, not the package’s own version. To return to current once the fix ships, run the command without -r:

opnsense-revert opnsense

Our box was back on 26.7.9 with no locked packages left behind. This only works for packages, though. A bad kernel or a failed major upgrade needs a whole-system fallback, and System > Snapshots is that tool, but it only works on ZFS. Our lab ran the UFS nano image and the page said so:

OPNsense System Snapshots page warning that snapshots need a ZFS file system

On a ZFS install, create a snapshot named something like known-good before the upgrade. If the upgrade fails, the snapshots documentation gives two ways back:

  • Activate the snapshot in the GUI and reboot
  • Press Space at the boot menu and pick 8 (Boot Environments)

On UFS your fallbacks are a hypervisor snapshot or a reinstall plus the config XML you saved. That’s the strongest argument for choosing ZFS at install time on any firewall you can’t afford to lose for an afternoon.

Fix common OPNsense update problems

Two of these hit our own lab run. The third is the most common post-upgrade surprise in 26.7.

Option 12 hangs after you type the version on a serial console

Our first major upgrade attempt ran over a serial line. After we typed 26.7, the release notes opened in a pager that ignored input from that line, so the upgrade never started. We logged in on the VGA console, killed the stuck less process, and ran option 12 again there, where q left the pager and the upgrade went ahead. If your firewall has a monitor port or a hypervisor console, use that for major upgrades.

“Snapshots are only available when a ZFS file system is used.”

This message on System > Snapshots means the install uses UFS. You can’t add snapshots to UFS in place, so before a major upgrade use a VM snapshot or keep the config backup and an install image ready. Moving to ZFS means a reinstall and a config restore.

Firewall rule pages return 404 after the 26.7 upgrade

The PHP rule pages now ship in the os-firewall-legacy plugin. Install it from System > Firmware > Plugins if you want the old pages back, or use Firewall > Migration assistant to move to the new Rules page. Your rules keep filtering traffic either way.

Planning the next upgrade cycle on hardware with headroom? Compare the best pfSense and OPNsense hardware or our OPNsense vs pfSense mini PC tests. A 5G failover router also keeps the house online while the main box reboots.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch agent-framework PyPI Malware: Check 1.26.1/1.26.2 and Rotate Keys AI agent-framework PyPI Malware: Check 1.26.1/1.26.2 and Rotate Keys Drupal SA-CORE-2026-019 (CVE-2026-136716): Check and Patch Security Drupal SA-CORE-2026-019 (CVE-2026-136716): Check and Patch Cisco Wireless Architectures and AP Modes Explained Networking Cisco Wireless Architectures and AP Modes Explained

Leave a Comment

Press ESC to close