Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Patrick M. Hausen

#1
Hi all,

I just upgraded a production HA system from 26.1.latest to 26.7.5. I used the migration assistant on the primary node to migrate the firewall rules including deletion of the legacy rules.

I then synced the configuration from primary to backup.

Expectedly all the "Rules [new]" rules were present but so were the legacy rules on the backup. Is this intentional? I manually deleted them and the upgrade continued successfully without any unexpected events.

Just wondering ... I was expecting the "Rules [new]" to be synced (which happened) as well as the "Rules", i.e. the fact that there are none. This did not happen.

Kind regards,
Patrick
#2
UPDATED! Please check the list of packages needing a manual install if you do not notice any ucode updates happening.

Hi all,

apparently some (not a majority, but enough for this to be a problem) users are hit by a race condition in the FreeBSD kernel which leads to the system locking up at booting when the microcode update plugin is installed. The specific point here is that the ucode updates are loaded "early" by the standard plugin which means before regular kernel startup.

The FreeBSD package alternatively allows for "late" loading of the ucode updates. This is considered non-optimal, because CPU features might change after the kernel is started and detection of said features has happened.
Yet personally for more than 8 years since ucode updates became a thing I have never seen a problem with late loading. It simply means the kernel boot process and startup of some services will happen with an unpatched CPU, then the updates will be applied with the system up and running.

Specifically the people who experience the boot time lockups with the plugin installed - if you can afford some downtime and a couple of reboots, please try this and report back.

1. Uninstall the os-cpu-microcode-amd from the UI. You probably did this already, if you are running 26.7 and you were hit by this problem.

2. For Intel systems:

pkg install x86info
pkg install cpu-microcode-intel
pkg install cpu-microcode-rc
pkg add -f https://pkg.opnsense.org/FreeBSD:15:amd64/snapshots/misc/os-cpu-microcode-intel-devel-1.1_1.pkg

For AMD systems:

pkg install x86info
pkg install cpu-microcode-amd
pkg install cpu-microcode-rc
pkg add -f https://pkg.opnsense.org/FreeBSD:15:amd64/snapshots/misc/os-cpu-microcode-amd-devel-1.1_1.pkg

3. Reboot your system. You should be able to observe the late application of the ucode updates in /var/run/dmesg.boot after the reboot.

Thanks and kind regards,
Patrick
#3
26.7, 26.10 Series / Updated - first impressions
July 15, 2026, 01:04:08 PM
Hi all,

thanks to the team for the great work! Friction between OPNsense and upstream FreeBSD aside 15.1 is a big step forward for both projects.

- The update showed no major problems here.
- The mimugmail-single repo is not yet up to the new ${ABI}, but the old binaries still work, no service outage whatsoever.
- Nut is finally working again with the default packages.
- To get a consistent view of the plugins I needed to completely disable the mimugmail-single repo, perform "pkg update", then they switched from "orphaned" to "installed".
- I don't like the look of the new services widget. Like at all, sticks out like a sore thumb. But I can live with it. At least please put a proper header on it as someone else already suggested.

Again: double thumbs up!

Patrick
#4
German - Deutsch / Empfehlung für Access-Points?
May 31, 2026, 08:47:09 PM
Hallo ihr Lieben,

was würden ihr für WiFi empfehlen, wenn Unifi als zu teuer und proprietär und Mikrotik als zwar mächtig aber eben auch mächtig kompliziert empfunden wird?

Gesucht sind reine APs, Bridge Modus, aber mit der Möglichkeit, mehrere VLANs auf mehrere SSIDs abzubilden, 2,4 und 5 GHz getrennt etc. pp. Zentrale Management-Plane ist nicht gefordert, es werden maximal zwei Geräte. Also Web-UI pro Gerät ist prima. Aktuelle Mobilfunk-Standards versteht sich jetzt mal von selbst.

Ein Plus wäre, verschiedene Bauformen zur Auswahl zu haben, neben dem zentralen AP für die Wohnung hätte der angeheiratete Neffe gerne irgendetwas mit ein wenig Richtwirkung, so dass er "außenrum" per Reflexion mit 2,4 GHz aus der Wohnung runter in die Tiefgarage kommt, wo der Tesla steht. Gilt es natürlich auszuprobieren.

Danke und liebe Grüße
Patrick
#5
26.1, 26.4 Legacy Series / 26.1.8 breaks NUT
May 12, 2026, 04:47:37 PM
[2355] pid 59276 (upsc), jid 0, uid 0: exited on signal 11 (no core dump - bad address)
[2365] pid 76306 (upsc), jid 0, uid 0: exited on signal 11 (no core dump - bad address)
[2375] pid 96545 (upsc), jid 0, uid 0: exited on signal 11 (no core dump - bad address)
[2383] pid 11941 (upsc), jid 0, uid 0: exited on signal 11 (no core dump - bad address)
[2385] pid 15230 (upsc), jid 0, uid 0: exited on signal 11 (no core dump - bad address)
[2395] pid 32978 (upsc), jid 0, uid 0: exited on signal 11 (no core dump - bad address)
[2403] pid 45958 (upsc), jid 0, uid 0: exited on signal 11 (no core dump - bad address)
[2405] pid 50289 (upsc), jid 0, uid 0: exited on signal 11 (no core dump - bad address)

Interestingly the command does work, it only crashes on exit:

root@opnsense:~ # upsc ups
battery.charge: 100
battery.current: 0.90
battery.date: 07/20/2024
battery.runtime: 1560
battery.runtime.elapsed: 0
battery.voltage: 27.10
battery.voltage.nominal: 24
device.contact: hostmaster@hausen.com
device.description: UPS SNMP Card
[...]
ups.status: OL
ups.temperature: 34
ups.test.date: 05/09/2026
ups.test.result: Ok
Segmentation fault

Kind regards,
Patrick
#6
Hallo zusammen,

da schon die ersten Threads hier auftauchen ... es liegt nicht an eurer OPNsense. Das DENIC hat die .de Zone kaputt gemacht.

https://www.reddit.com/r/de_EDV/comments/1t4qlrg/psa_die_dezone_löst_gerade_großflächig_nicht_mehr/
https://news.ycombinator.com/item?id=48027897
https://bsky.app/profile/heise.de/post/3ml54wiav452u
https://bsky.app/profile/echobit.de/post/3ml54h2sbbk2x

Liebe Grüße
Patrick
#7
Hi all, but specifically Cedric (@monviech):

I just added Cloudflare's egress IP addresses to Caddy as trusted proxies in one of our installations so client IP addresses get passed properly down the chain. Works as designed. But feels a little clumsy:

- You can only select a single "Caddy access list" - I originally created two, one for IPv4, one for IPv6, because "of course" only to find I needed to combine them into one.
- Although Cloudflare last changed the lists in 2023 they provide them under a static URL in text CIDR format, so they could be trivially pulled into a firewall alias with the existing mechanisms.

I will happily create a feature request on Github, but wanted to discuss if that would be feasible, first.

Kind regards,
Patrick
#8
I just moved my "Outbound" NAT rules to the new "Source NAT" UI, because it now supports "static ports".

I noticed that in the legacy interface a generic "Interface address" choice for the translation was available, which matched the interface in question. Now I can only pick "XY address" with "XY" being any specific interface.

Not a big deal - intentional or oversight?

Kind regards,
Patrick
#9
Hallo zusammen,

wir haben hier ein Problem, dass über VLANs hinweg die Darstellung einer Kamera erst mit einigen Sekunden Verzögerung im Browser dargestellt wird. Aus dem Netz mit dem Browser in das IOT-Netz mit der Kamera und dem HomeAssistant ist alles erlaubt.

Der Browser loggt dann immer mehrfach:

QuoteWebRTC: ICE failed, add a TURN server and see about:webrtc for more details

ICE(PC:{973c38db-ee0c-4f1c-ac4c-d01413ea27ec} 1772974974282538 (id=15032385544 url=http://172.17.1.1:8123/dashboard-katzen-02/0)): peer (PC:{973c38db-ee0c-4f1c-ac4c-d01413ea27ec} 1772974974282538 (id=15032385544 url=http://172.17.1.1:8123/dashboard-katzen-02/0):default) has no stream matching stream PC:{973c38db-ee0c-4f1c-ac4c-d01413ea27ec} 1772974974282538 (id=15032385544 url=http://172.17.1.1:8123/dashboard-katzen-02/0) transport-id=transport_25 - 4e6f7817:ebccdf6e1b287c38cbe5dc2acf1d0cac

ICE-STREAM(PC:{0d4da293-42f9-42a1-992b-f87dcf9c99e3} 1772975955781375 (id=15032385545 url=http://172.17.1.1:8123/dashboard-katzen-02/0) transport-id=transport_0 - e5f39160:e1eabf4c8037a85881857af3fc6320da): Skipping STUN server because of address type mis-match

/builds/worker/checkouts/gecko/dom/media/webrtc/transport/third_party/nICEr/src/net/nr_socket_multi_tcp.c:175 function nr_socket_multi_tcp_create_stun_server_socket skipping UDP STUN server(addr:IP4:0.0.0.0:3478/UDP)

ICE-STREAM(PC:{ff924bcc-af30-41fe-97ee-193c9f384121} 1772975955782750 (id=15032385545 url=http://172.17.1.1:8123/dashboard-katzen-02/0) transport-id=transport_1 - a0e45dab:d0f7132aa6be03897c42948c1b35af84): failed to create passive TCP host candidate: 3

ICE(PC:{ff924bcc-af30-41fe-97ee-193c9f384121} 1772975955782750 (id=15032385545 url=http://172.17.1.1:8123/dashboard-katzen-02/0)): All candidates initialized

ICE(PC:{0d4da293-42f9-42a1-992b-f87dcf9c99e3} 1772975955781375 (id=15032385545 url=http://172.17.1.1:8123/dashboard-katzen-02/0)): peer (PC:{0d4da293-42f9-42a1-992b-f87dcf9c99e3} 1772975955781375 (id=15032385545 url=http://172.17.1.1:8123/dashboard-katzen-02/0):default) starting grace period timer for 5000 ms

ICE(PC:{0d4da293-42f9-42a1-992b-f87dcf9c99e3} 1772975955781375 (id=15032385545 url=http://172.17.1.1:8123/dashboard-katzen-02/0)): peer (PC:{0d4da293-42f9-42a1-992b-f87dcf9c99e3} 1772975955781375 (id=15032385545 url=http://172.17.1.1:8123/dashboard-katzen-02/0):default) no streams with non-empty check lists

ICE(PC:{0d4da293-42f9-42a1-992b-f87dcf9c99e3} 1772975955781375 (id=15032385545 url=http://172.17.1.1:8123/dashboard-katzen-02/0)): peer (PC:{0d4da293-42f9-42a1-992b-f87dcf9c99e3} 1772975955781375 (id=15032385545 url=http://172.17.1.1:8123/dashboard-katzen-02/0):default) no streams with pre-answer requests

Ich hab nun tatsächlich keinen Plan, was ich mit dem os-turnserver Plugin anfangen soll, aber das wäre doch das, was man dann braucht, oder?

Die "grace period timer for 5000 ms" Meldung sieht doch Verdächtig aus.
Wobei laut Paket-Trace der Browser nur mit dem HomeAssistant kommuniziert und nicht mit der Kamera direkt.

Wir haben testhalber mal "allow all" auf dem IOT-Netz angelegt - damit ist die Kamera-Darstellung dann "fluffig". Mit den Standard-Regeln "IOT darf ins Internet aber nicht ins LAN" haben wir immer diese 5 Sekunden Gedenkpause drin. Wobei die Verbindung natürlich aus dem LAN aufgebaut wird.

Danke und liebe Grüße
Patrick
#10
General Discussion / The pledge of the Network Admin
February 03, 2026, 05:09:35 PM
QuoteThe Pledge of the Network Admin

This is my network.
It is mine,
or technically, my employer′s.
It is my responsibility,
and I care for it with all my heart.
There are many other networks a lot like mine,
but none are just like it.
I solemnly swear
that I will not mindlessly paste from HOWTOs.

-- Peter N.M. Hansteen, "The Book of PF, 4th Edition"
#11
OK, I just noticed a thing after upgrading to 26.1 and using the new rule interface. I suspect the issue was present in previous versions in the same manner, I just did not notice it.

So rule order watched from the highest level is:

Floating > Interface group > Interface

This is well documented and has not changed ever I could remember. And I use it more or less extensively to get a maintainable structure and a low number of rules.

Floating:



I really do think that blocking ICMP echo is silly, that it's the most important debug tool of all in IP, so I generally allow it, even when other traffic across the same interfaces is forbidden.

Interface groups:

I have one interface group "Internal" which is all my interfaces but WAN and the one to the DSL modems's management interface. I have another group named "Restricted" which is the same as "Internal" but without LAN. These are the interfaces for which I block any "cross talk". LAN after floating and groups applied has a final "allow all" rule just like the default setup.

These are the rules for the "Restricted" group:



This allows essential services to the respective firewall interface plus Internet access to arbitrary services but no access to any other local network. If you look closely you recognise that this set of rules does not yet prohibit e.g. SMTP out to the Internet. It's only "allow" rules, so the first three simply do not match and then the last two still allow DNS, NTP and SMTP outbound.

But I take care of that in the "Internal" group:



Since my LAN is generally "allow all" but I still want to restrict DNS, NTP and SMTP, the block rules for these go into the "Internal" group. Remember, that contains all "Restricted" interfaces plus LAN.

Result:

This works. I just verified by disabling all "Internal" rules - SMTP from a host on a restricted interface to the Internet is open. Enable again - SMTP blocked.

Fine.

My question is: why?

Why are the group rules for the "Internal" group applied before the rules for the "Restricted" group? As is obviously the case? And how can I guarantee a certain order of certain groups, because I want block before allow? Is it the metric system ... er ... alphabetical sorting?

Kind regards,
Patrick
#12
Subject says it - I could not find any option that would do this.
#13
Hi all,

after upgrade from 25.7.11_2 to 26.1r1 everything looked good at first. I did not yet try the rule migration but intended to wait for RC2 with all the fixes in that specific area.

Half an hour later Internet was down. SSH to the box still working, system quite sluggish, dashboard widgets failing to load.

A couple of hundred processes like this:

/usr/local/bin/php /usr/local/etc/rc.newwanipv6 pppoe0 force

"killall -9 php" made the system responsive again for a short while but the processes kept piling up.

Anything specific in the log I should look for?

With 25.7 running, this is the dhcp6d.conf:

interface pppoe0 {
  send ia-na 2; # request stateful address
  send ia-pd 2; # request prefix delegation
  request domain-name-servers;
  request domain-name;
  script "/var/etc/dhcp6c_wan_script.sh"; # we'd like some nameservers please
};
id-assoc na 2 { };
id-assoc pd 2 {
  prefix ::/56 infinity;
};

I'm a bit puzzled by that "request domain-name-servers;" - is that hard coded? I could not find a way to disable it, anywhere and I certainly do not want any DNS servers, be it v4 or v6 from my ISP.

I isolated the logs for a single PID when the system was running 26.1r1:

root@opnsense:/var/log/system # grep 56100 *
latest.log:<29>1 2026-01-25T14:53:57+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="701"] Sending Solicit
latest.log:<27>1 2026-01-25T14:53:57+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="702"] transmit failed: Can't assign requested address
latest.log:<29>1 2026-01-25T14:53:58+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="705"] Sending Solicit
latest.log:<29>1 2026-01-25T14:53:59+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="721"] Sending Request
latest.log:<29>1 2026-01-25T14:53:59+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="722"] Received REPLY for REQUEST
latest.log:<29>1 2026-01-25T14:53:59+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="723"] failed to remove an address on pppoe0: Can't assign requested address
latest.log:<29>1 2026-01-25T14:53:59+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="724"] failed to update an address ::
latest.log:<29>1 2026-01-25T14:54:00+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="732"] Sending Solicit
latest.log:<29>1 2026-01-25T14:54:01+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="733"] Sending Request
latest.log:<29>1 2026-01-25T14:54:01+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="734"] Received REPLY for REQUEST
latest.log:<29>1 2026-01-25T14:54:01+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="735"] failed to remove an address on pppoe0: Can't assign requested address
latest.log:<29>1 2026-01-25T14:54:01+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="736"] failed to update an address ::
latest.log:<29>1 2026-01-25T14:54:02+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="741"] Sending Solicit
latest.log:<29>1 2026-01-25T14:54:03+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="744"] Sending Request
latest.log:<29>1 2026-01-25T14:54:06+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="746"] Received REPLY for REQUEST
latest.log:<29>1 2026-01-25T14:54:06+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="747"] failed to remove an address on pppoe0: Can't assign requested address
latest.log:<29>1 2026-01-25T14:54:06+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="748"] failed to update an address ::
latest.log:<29>1 2026-01-25T14:54:07+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="757"] Sending Solicit
latest.log:<29>1 2026-01-25T14:54:08+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="759"] Sending Request
latest.log:<29>1 2026-01-25T14:54:08+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="760"] Received REPLY for REQUEST
latest.log:<29>1 2026-01-25T14:54:08+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="761"] failed to remove an address on pppoe0: Can't assign requested address
latest.log:<29>1 2026-01-25T14:54:08+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="762"] failed to update an address ::
[...]
system_20260125.log:<29>1 2026-01-25T16:12:17+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="20634"] Sending Solicit
system_20260125.log:<29>1 2026-01-25T16:12:18+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="20640"] Sending Request
system_20260125.log:<29>1 2026-01-25T16:12:18+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="20641"] Received REPLY for REQUEST
system_20260125.log:<29>1 2026-01-25T16:12:18+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="20642"] failed to remove an address on pppoe0: Can't assign requested address
system_20260125.log:<29>1 2026-01-25T16:12:18+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="20643"] failed to update an address ::
system_20260125.log:<29>1 2026-01-25T16:12:19+01:00 opnsense.ettlingen.hausen.com dhcp6c 56100 - [meta sequenceId="20646"] Sending Solicit
root@opnsense:/var/log/system #

Kind regards,
Patrick
#14
German - Deutsch / Frohe Weihnachten!
December 24, 2025, 03:27:00 PM
Frohe und gesegnete Weihnachten allen, die feiern.

Ruhige besinnliche Tage, Zeit für die, die euch wichtig sind, euch allen. Und ein gesundes und friedlicheres 2026 für alle.

Patrick
#15
25.7, 25.10 Legacy Series / NDP proxy in an HA setup?
December 19, 2025, 02:14:17 PM
Hi all,

is anybody running NDP proxy in a high availability configuration? Anything special to consider?

WAN will be a flat Ethernet (vSwitch) with router advertisements and SLAAC.

TIA,
Patrick
#16
Hi all,

I swapped a dying SSD for a new one, performed a fresh installation and imported a saved configuration.
Everything went smoothly - apart from GeoIP aliases.

It seems I can download neither from ipinfo nor from maxmind.

Any time I click on "Apply" this is the message I get:



Manually fetching the data with the exact URLs I place in the UI of course works.

Any ideas? Version is 25.7.7_4.

Thanks,
Patrick
#17
Hi all,

I just moved one customer IPsec tunnel from old legacy framework to connections - all up and connected.

But this is an HA setup, the local endpoint for the tunnel is the CARP address, CARP is working and has been for years.
But the dashboard widget on the standby shows the tunnel as active (green) with the addition of "Phase2 disconnected".

This was not the case ans still isn't for connections that use the legacy method. For them the standby shows disconnected (red).

Any ideas? Thanks!
Patrick
#18
Hi all,

so I finally found a capable Netflow consumer/visualiser to send data to - thanks to @9axqe for the discussion and some pointers. I finally settled on ElastiFlow. Their Docker based quickstart instructions worked great.

Now apparently OPNsense sends ifName and ifDescr in the flow data with both fields containing e.g. "pppoe0" or "vlan01" or "igb0" ... whatever.
It would of course be great of ifName would contain "pppoe0" and ifDescr "WAN" if that interface is assigned in that way.

But that is still perfectly fine, because ElastiFlow provides a simple method to map interface names like so:

192.168.1.1:
  11:
    ifName: LAN
    internal: true

The IP address is the address of the Netflow sender, the first number is the ifIndex which is identical for both Netflow and SNMP, and then you can change arbitrary fields so the interface name in the ElastiFlow dashboards is "LAN" instead of  "vlan01" by the example above.

Great.

Now after I created entries for all my interfaces there is one single ifName for which OPNsense sends flow records to ElastiFlow and that is named - oddly - "index: 0".

What real interface on the OPNsense system is this? So I can adjust the displayed name to something reasonable.

Mind you, this is data sent from OPNsense to ElastiFlow with an interface name that is literally "index: 0" if I am not grossly mistaken. And I just wonder what precisely that data is - yes, there are flows if I filter for "index: 0". But nothing that obviously matches a real interface.

I can send anyone a single flow record in JSON showing that weird ifName field. I just do not want to post that data publicly where it will be indexed by search engines etc. Only IP addresses and DNS names in there, but still.

Thanks,
Patrick
#19
Hi all,

I am currently toying with ElastiFlow pumping netflow data from OPNsense into the tool. I take great care manually adding overrides for all my internal servers to Unbound so I have A and PTR records for everything.

What puzzled me was that in ElastiFlow OPNsense shows as "opnsense" while all other devices are "something.internal.domain.com".


I have in the configuration:

  • Register DHCP Static Mappings

  • Do not register IPv6 Link-Local addresses

  • Do not register system A/AAAA records


And then a manual override: opnsense.internal.domain.com --> 192.168.1.1

Which ends up in host_entries.conf like this:

root@opnsense:/var/unbound # grep opnsense host_entries.conf
local-data-ptr: "192.168.1.1 opnsense.internal.domain.com"
local-data: "opnsense.internal.domain.com  IN A 192.168.1.1"


Yet, when I query the system from outside, this happens:

root@flow:~# dig -x 192.168.1.1

[...]
;; ANSWER SECTION:
1.1.168.192.in-addr.arpa. 10 IN PTR opnsense.
1.1.168.192.in-addr.arpa. 10 IN PTR opnsense.internal.domain.com.
[...]

Why is that first entry there and how can I get rid of it? There should never be multiple PTR records for a single IP address, IMHO.


Thanks,
Patrick
#20
Hi all,

Scrutiny is a nice and lean HDD and SSD monitoring solution relying on smartmontools to gather health data. In case of SSDs and OPNsense most importantly the "Percentage Used" (NVMe) or "Percentage Used Endurance Indicator" (SATA) values.

This post does not cover how to install and run Scrutiny - you need a dedicated Linux system for that in addition to OPNsense. The recommended way is to simply start it in Docker.

The installation in OPNsense is done in a way which does not interfere with OPNsense configuration or updates.

February 2026: The project was recently taken over by GitHub user "Starosdev" who added many fixes and improvements including monitoring of ZFS pools. I extended these instructions to include the new repository and the new ZFS pool metrics.

Scrutiny GitHub repo


1. Install smartmontools

The easiest way is to install the os-smart plugin from System > Firmware > Plugins

2. Install the Scrutiny binaries for FreeBSD

As root on OPNsense do:

cd /root
fetch https://github.com/Starosdev/scrutiny/releases/download/v1.19.2/scrutiny-collector-metrics-freebsd-amd64
fetch https://github.com/Starosdev/scrutiny/releases/download/v1.19.2/scrutiny-collector-zfs-freebsd-amd64
chmod 755 scrutiny-collector-*

3. Create a wrapper shell script

Use an editor to create /root/run-scrutiny.sh with this content:

#!/bin/sh

cd /root

./scrutiny-collector-metrics-freebsd-amd64 run --api-endpoint "https://scrutiny.mydomain.com" --host-id "OPNsense" --log-file "scrutiny-collector-metrics.log" >/dev/null 2>&1
./scrutiny-collector-zfs-freebsd-amd64 run --api-endpoint "https://scrutiny.mydomain.com" --host-id "OPNsense" --log-file "scrutiny-collector-zfs.log" >/dev/null 2>&1

Adjust the api-endpoint and host-id for your environment.

Make it executable:

chmod 755 /root/run-scrutiny.sh
4. Create a symlink to activate it as a daily periodic job

cd /usr/local/etc/periodic/daily
ln -s /root/run-scrutiny.sh scrutiny

5. Result

The stats will be updated every night at 3 am and in my case look like this:



Clicking on the drive entry shows you all SMART attributes concerning the drive health in detail:



So I know that I have used up 5% of the drive's guaranteed write endurance, for example.

---
Done - enjoy.
Patrick