Page MenuHomeSoftware Heritage

(Major) opnsense upgrade to 21.1.6
Closed, MigratedEdits Locked

Description

In a dedicated task as the major upgrade procedure is apparently different (through cli [1]) than usual.

Referencing the greeting and changelog mentioned.

OPNsense 21.1 "Marvelous Meerkat" has reached its end of life. As such it will not receive any more updates, but the upgrade to the new 21.7 series is seamless and can be performed right here from the web GUI.

Another method is to import and reinstall using a new installation image, which will retain your settings (selecting "Import Configuration"), then reformat the disk and apply a clean system (selecting "Guided Installation").

You can also upgrade via console / SSH by using option 12 from the menu by typing "21.7" when prompted.

Make sure to read the migration notes and adjust for possible minor breaking changes.

Please backup your configuration, preview the new version via live image or in a virtual machine. Create snapshots. If all else fails, report back in the forums for assistance.

Changelog:

Hi there,

For more than 6 and a half years, OPNsense is driving innovation through modularising and hardening the open source firewall, with simple and reliable firmware upgrades, multi-language support, fast adoption of upstream software updates as well as clear and stable 2-Clause BSD licensing.

21.7, nicknamed "Noble Nightingale", is one of the largest iterations of code changes in our recent history. It will also be the last release on HardenedBSD 12.1. We are planning to start the work on FreeBSD 13 as soon as next week for the 22.1 series.

The installer was replaced to offer native ZFS installations and prevent glitches in virtual machines using UEFI. Firmware updates were partially redesigned and the UI layout consolidated between static and MVC pages. The live log now contains the actual rule ID to avoid mismatches after adjusting your ruleset and the firewall aliases now also support wildcard netmasks. For a complete list of changes see below.

Download links, an installation guide[1] and the checksums for the images can be found below as well.

Europe: https://opnsense.c0urier.net/releases/21.7/
US East Coast: https://mirror.wdc1.us.leaseweb.net/opnsense/releases/21.7/
US West Coast: https://mirror.sfo12.us.leaseweb.net/opnsense/releases/21.7/
South America: https://mirror.venturasystems.tech/opnsense/releases/21.7/
Australia: http://mirror.as24220.net/opnsense/releases/21.7/
Full mirror list: https://opnsense.org/download/
Here are the full patch notes:

system: Norwegian translation (contributed by Stein-Aksel Basma)
system: correctly enforce "Disable writing log files to the local disk" when circular logs are not used
system: allow to edit gateway entries with non-conforming names
system: add HA sync entry for live log templates
system: lock config writes during HA merges
system: raised PHP memory limit to 1G
system: raised encryption standard for encrypted config.xml export
system: removed NextCloud backup from core functionality
system: allow more characters in the certificate/authority organization fields (contributed by Jan De Luyck)
system: default gateway failure state killing is now disabled by default
system: circular logs are now disabled by default
system: removed unused traffic API dashboard feed
system: prevent use of client certificates in web GUI
system: hide far gateway option for IPv6
system: isvalidpid() is not required for a single killbypid()
system: fix PHP 7.4 deprecated warning in IPv6 library
system: do not split XMLRPC password into multiple pieces
system: enable group sync for LDAP servers that do not return memberOf (contributed by rdd2)
system: prevent excessive config writes on LDAP import
system: allow cron-based restarts of all "restart" action providers
interfaces: improve GRE/GIF configuration handling and dynamic reload behaviour
interfaces: remove duplicated handling of PPP IPv6 interface detection
interfaces: refactored address removal into interfaces_addresses_flush()
interfaces: flush IPv6 addresses on the correct IPv6 interface when it differs from the IPv4 interface
interfaces: do not check for existing CARP interfaces midstream
interfaces: remove non-tunnel restriction from address collection
interfaces: set tunnel flag for IPv4 tunnel plus cleanups
interfaces: allow interface-based overrides of hardware checksum settings
interfaces: refactor DNS lookup and add PTR to output (contributed by Maurice Walker)
interfaces: deprecate SLAAC addresses on linkdown
firewall: set label for obsolete rule in live log (contributed by kulikov-a)
firewall: MVC rewrite of the states diagnostics pages under "States"
firewall: MVC rewrite of the pfTop diagnostics pages under "Sessions"
firewall: renamed "pfTables" diagnostics to "Aliases"
firewall: add quick link to states counter from firewall rule inspection
firewall: add manual reply-to configuration to rules
firewall: delete related rules when an interface group is removed
firewall: rename source/destination networks when group name changes
firewall: possibility to filter nat/rdr action in live log
firewall: use permanent promiscuous mode for pflog0
firewall: add live log support for new filterlog format
dhcp: remove ::/0 route from router advertisements (contributed by Maurice Walker)
dhcp: always deprecate prefixes in automatic router advertisements
dhcp: fix table header sorting in lease pages (contributed by vnxme)
dhcp: lock access to settings pages when interface is not suitable for running a DHCP server
dhcp: assorted improvements surrounding dhcpd_staticmap() for real world operation
firmware: introduced connectivity check
firmware: confirm plugin removal dialog
firmware: static template for firmware upgrade message
firmware: add version/date header into check script as well
firmware: mask subscription in GUI output
firmware: add "-q" option for in-place opnsense-bootstrap run
firmware: fix grep call on FreeBSD 13 (contributed by Mariusz Zaborski)
firmware: correct return code on type change in opnsense-update
installer: assorted wording improvements
intrusion detection: fix alert reads from eve.json
ipsec: adhere to system defaults for route-to and reply-to when creating automatic VPN rules
ipsec: switched to explicit type selection for identities
network time: added NTPD client mode
openvpn: offer the ability to export a user without a certificate
openvpn: increase consistency between export types
openvpn: fix invalid rules generated by wizard (contributed by kulikov-a)
unbound: fix domain overrides for private address reverse lookup zones (contributed by Maurice Walker)
unbound: add "unbound check" backend action
unbound: allow to retain cache on service reload
unbound: fix /var MFS dilemma for DNSBL after boot
unbound: remove deprecated custom options setting
unbound: switch model to integrate full DNS over TLS support
unbound: add qname-minimisation-strict option
unbound: renamed "blacklist" to "blocklist" for clarity
console: throw error when opnsense-importer encounters an encrypted config.xml
mvc: allow to unset attribute via setAttributeValue()
mvc: catch all errors including syntax and class not found errors
mvc: reduce differentials in config.xml when saving models
rc: opnsense-beep melody database directory
shell: fix IPv4 /31 assignment
ui: improved JS hook_ipv4v6() to jump to /64 on IPv6 and back to /32 on IPv4
ui: inject default tooltips into bootgrid formatters
ui: prevent translation line breaks from breaking JS
ui: removed $main_buttons magic handler
ui: switch firewall category icon for clarity
ui: work on unification of add buttons by minifying them and adding primary color markup
plugins: os-acme-client 2.6[2]
plugins: os-etpro-telemetry 1.5 exclude stale data from telemetry upload
plugins: os-fetchmail 1.0 (contributed by Michael Muenz)
plugins: os-freeradius 1.9.15[3]
plugins: os-frr 1.22[4]
plugins: os-haproxy 3.4[5]
plugins: os-maltrail 1.8[6]
plugins: os-net-snmp 1.5[7]
plugins: os-nextcloud-backup 1.0
plugins: os-nut 1.8[8]
plugins: os-postfix 1.9[9]
plugins: os-radsecproxy 1.0 (contributed by Tobias Boehnert)
plugins: os-telegraf 1.11.0[10]
plugins: os-tftp 1.0 (contributed by Michael Muenz)
plugins: os-zabbix-agent 1.9[11]
src: dhclient support for VLAN 0 decapsulation
src: FreeBSD updates for the pf(4) and iflib(4) subsystems
src: FreeBSD updates for Intel e1000, ixgbe and ixl drivers
src: compatibility shim for upcoming rtsold "-M" command line option
src: separately log NAT and firewall rules in pf(4)
src: libcasper: fix descriptors numbers[12]
src: linux: prevent integer overflow in futex_requeue[13]
src: axgbe: make sure driver works on V1000 platform and remove unnecessary reset
ports: drop hardening options to ease migration to FreeBSD ports tree
ports: clog 1.0.2 fixes garbage header write on init
ports: curl 7.78.0[14]
ports: filterlog adds CARP IPv6 support and moves label to previously reserved spot
ports: libxml 2.9.12[15]
ports: nettle 3.7.3
ports: nss 3.68[16]
ports: openvpn 2.5.3[17]
ports: php 7.4.21[18]
ports: phpseclib 2.0.32[19]
ports: python 3.8.10[20]
ports: sudo 1.9.7p1[21]
ports: suricata 5.0.7[22]
ports: syslog-ng 3.33.2[23]
Known issues and limitations:

NextCloud backup feature moved from core to plugins. Please reinstall if needed.
IPsec identities are now set using their explicit type. See StrongSwan documentation[24] for the old automatic defaults.
Unbound custom options setting has been discontinued. Local override directory /usr/local/etc/unbound.opnsense.d exists.
The public key for the 21.7 series is:

-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA1Cc2Mw+t6NAgU5Ts8feU
+vJSn4N8Ex1afuZ/tyXnRwxQ7w0+Hr0Bs8Ygy2X67KQi/7pi5FQ/hIJyEnf5Tm/7
7sS6O6XPvu2fg7UN1RBi5VgFJh4vajwhVGUg+EpuMNIgZw7AkWNlULvQSLBHOX7S
FAthJQQ957OU2RARQA+LVT3wyiLpEhQp0S9h/YAO1tITQKlsPjlU4+0Iv58JZuAG
lek+FaZyBLqCUF4ItLxGjqO3L4cx5iy3yD7qIOR3dN7tncdEYxQweut8cA80hFUe
Wy8DgPUKVZRRZnVWSZp9QXzoo9ACLebAv6DOzN17DrVdO0iH6iYr6s/7tDoxtN0G
+r6huk0tTKQ0UJX7O9l5GAQe+HWFH1WxTU37Pb79BbxXW+9LCUtAZ35HKLmIaQyb
6t3Jr0FTX+LtJBMUpWtYIAYjQIH2dlBGbwFRbljsibbSTsi/E+1WW3ob1r5O5fML
b734CktIXm3HFvQ0qZ4DyIQDZS0J8zoVO2wHjlh9MsxCJdDvDXe6Dbj/Y93SBXVr
Az8T8YrEwjK0fPt8dB1p+Ue49eYXPs5lJPmB5iaiXlp1VTqUwH2Lm3BZG5bUKded
zOjHavmTeTXuSKWEYh/UP7mLGeY1FQF0o7VHJfdiJLt/4s2ybM9DNUssjSDBqBRV
CPvKwujGiI0N2BPJHP21g1ECAwEAAQ==
-----END PUBLIC KEY-----

Stay safe,
Your OPNsense team

SHA256 (OPNsense-21.7-OpenSSL-dvd-amd64.iso.bz2) = 34f9b5dee78cb4ded515393bd17c248d5a06b5cbc7c3cca9a58a919dc5e0fd65
SHA256 (OPNsense-21.7-OpenSSL-nano-amd64.img.bz2) = e29ddb1749798d3f4403e44c9ee259a00826814a9cb71e0918fc3a6cb75df7db
SHA256 (OPNsense-21.7-OpenSSL-serial-amd64.img.bz2) = b79e8f3b2dcdc1b13ff27d4aec435662a4f8b11201dff22c538cb2fd11c655f8
SHA256 (OPNsense-21.7-OpenSSL-vga-amd64.img.bz2) = 03333348f3dbd42445986221cebaf753ebe5e4549d02dbb870f651b6399327d8

[1] https://docs.opnsense.org/manual/updates.html#major-upgrades

Event Timeline

ardumont triaged this task as Normal priority.Dec 1 2021, 3:57 PM
ardumont created this task.
ardumont updated the task description. (Show Details)

backup:

***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 21.7.6 (amd64/OpenSSL) at Wed Dec  1 15:32:37 UTC 2021
Fetching changelog information, please wait... done
Updating OPNsense repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.txz: .......... done
Processing entries: .......... done
OPNsense repository update completed. 775 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
Checking for upgrades (1 candidates): . done
Processing candidates (1 candidates): . done
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***
ardumont renamed this task from (Major) opnsense upgrade to 21.1 to (Major) opnsense upgrade to 21.1.Dec 1 2021, 4:34 PM

master:

***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 21.7.6 (amd64/OpenSSL) at Wed Dec  1 15:59:55 UTC 2021
Fetching changelog information, please wait... done
Updating OPNsense repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.txz: .......... done
Processing entries: .......... done
OPNsense repository update completed. 775 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
Your packages are up to date.
Checking for upgrades (1 candidates): . done
Processing candidates (1 candidates): . done
Checking integrity... done (0 conflicting)
Your packages are up to date.
***DONE***

We also increased the hardware forh both pushkin and glyptotek [1]

  • RAM: 2G -> 4G
  • 1 socket, 2 cores -> 2 sockers, 4 cores

And restarted those through proxmox so it's taken into account (1 by 1, when the machine is in backup mode).pp

[1] Reason: when there is some vpn traffic, the cpus got saturated.

ardumont renamed this task from (Major) opnsense upgrade to 21.1 to (Major) opnsense upgrade to 21.1.6.Dec 1 2021, 5:14 PM
ardumont changed the task status from Open to Work in Progress.
ardumont closed this task as Resolved.
ardumont claimed this task.
ardumont added a subscriber: vsellier.