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

Messages - gehoernchen

#1
Just updated to OPNsense 26.7, went fairly well, no issues on my side. The dotnet package was nuked however. Thanks to @piepre for mentioning that repository. With https://github.com/sec/dotnet-core-freebsd-source-build, it is possible to upgrade to Technitium DNS Server 15.x due to requiring .NET 10 (which seems to not be available in the official FreeBSD repositories) on FreeBSD 15.

Regarding SQLite - There just seems to be a missing symlink. Beware, potentially dangerous assumptions following - I found https://forums.truenas.com/t/please-please-freebsd-gurus-i-need-your-help/14926/23 which suggested /usr/local/lib/libsqlite3.so (probably coming via the sqlite3 package) is the same as lib3_sqlite that Technitium DNS complains about. So I just symlinked it:

# show the libsqlite3.so
$ file /usr/local/lib/libsqlite3.so
/usr/local/lib/libsqlite3.so: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, for FreeBSD 15.1, stripped

# install dotnet 10 and create symlinks; wget omitted
$ mkdir /opt/dotnet/dotnet-sdk-10.0.110-freebsd.15
$ tar zxf dotnet-sdk-10.0.110-freebsd.15-x64.tar.gz -C /opt/dotnet/dotnet-sdk-10.0.110-freebsd.15
$ ln -s /opt/dotnet/dotnet-sdk-10.0.110-freebsd.15/dotnet /usr/local/bin/dotnet
$ ln -s /usr/local/lib/libsqlite3.so /opt/dotnet/dotnet-sdk-10.0.110-freebsd.15/shared/Microsoft.NETCore.App/10.0.10/libe_sqlite3

$ file /opt/dotnet/dotnet-sdk-10.0.110-freebsd.15/shared/Microsoft.NETCore.App/10.0.10/libe_sqlite3
/opt/dotnet/dotnet-sdk-10.0.110-freebsd.15/shared/Microsoft.NETCore.App/10.0.10/libe_sqlite3: symbolic link to /usr/local/lib/libsqlite3.so

I suppose this symlink might go stale in the future, but it works (for now).
#2
Hi, while this probably still works somehow (though the newest Technitium version requires .NET 9), I was able to make this work a bit easier, as there are official dotnet packages of FreeBSD in the official repositories. The OPNsense repositories do not provide it.

As such, using a separate OPNsense / FreeBSD 14 machine, I was able to fetch dotnet 9 and its required packages with this somewhat:
# Enable FreeBSD repositories
# In /usr/local/etc/pkg/repos/FreeBSD.conf, set this (vi/vim/nano):
# FreeBSD: { enabled: true }

# Search for the newest/desired dotnet version
pkg update
pkg search dotnet
# Use its output, I got dotnet-9.0.10

# Fetch dotnet and its dependencies to a local path
mkdir /tmp/dotnet
pkg fetch -d -o /tmp/dotnet dotnet-9.0.10

--
From there on, transfer over the pkg files to your actual OPNsense host (I did that with scp) and do pkg install on them. On my box, all dependencies were already installed in the same version as I got on my test VM.

You could also just enable FreeBSD repos on your actual OPNsense box outright and install dotnet-9 over there, but I felt that was a bit too risky for my taste. As such, I installed dotnet-9 on my test VM first and made sure Technitium actually ran.

This will probably cause some problems later down the line, as we will probably need to watch the dotnet package once Technitium migrates to dotnet10 or OPNsense goes to FreeBSD 15. Works for the moment, though, with Technitium 14.3