Hello,
I am in the process of migrating to OPNsense. Since I am already running a Technitium DNS server (https://technitium.com/dns/) in a Docker container, I wondered if I could simply run a secondary DNS on the OPNsense. It worked directly with bind (+unbound), but I was not satisfied because I was missing the filters for ADS.
There is a repository for ADGuard, but I switched to Technitium DNS Server about a year ago because I wanted full zone management. I had no previous experience with OPNsense/FreeBSD as I only use Debian Linux. However, the documentation made it relatively easy to install the Technitium DNS Server. Below are the necessary steps (I did it on a virtual opnsense test/dev machine):
- build port dotnet8
cd /usr/ports/
mkdir packages
opnsense-code tools src ports
cd lang/dotnet8
make package
... wait ...
- install dotnet8 and run technitium dns server
make install
cd
fetch https://download.technitium.com/dns/DnsServerPortable.tar.gz
zfs create zroot/opt
zfs set mountpoint=/opt zroot/opt
tar -zxf DnsServerPortable.tar.gz -C /opt/technitium/dns/
cd /opt/technitium/dns
./start.sh
- build packages
cd /usr/ports/lang/dotnet8
pkg create -a -o /usr/ports/packages/
- TODO: create a pkg repository
- for now I copied the following pkg-files to my productive OPNsense via scp and manually installed the with pkg install <package>
compat13x-amd64-13.2.1302001.20231227.pkg
dotnet-host-9.0.2.pkg
dotnet8-8.0.6_3.pkg
node22-22.14.0.pkg
terminfo-db-20231209.pkg
- autostart dns server; create file /usr/local/etc/rc.syshook.d/start/90-dns
#!/bin/sh
/opt/technitium/dns/start.sh > /dev/null 2>&1 &
Welcome to the forum and thanks for the post. :)
Hi,
Im a bit slow, how did you get dot net installed on opnsense?
Quite easy if you follow the directions
it states:
-build port dotnet8
cd /usr/ports/
mkdir packages
opnsense-code tools src ports
cd lang/dotnet8
make package
Ok, my opnsense box does not have a /usr/ports folder
Quote from: cbothma on April 25, 2025, 01:41:45 PMOk, my opnsense box does not have a /usr/ports folder
mkdir /usr/ports
# or
zfs create zroot/usr/ports
got it sorted thanx
Finally got it up and running, i have a question, does anyone know how i would get it's DHCP working? I would rather have technitium do the dhcp all in one app ontop of my firewall?
Fair warning ⚠️
Make package is a long process. 5 hours in with a C3758 and still running.
So, i managed to install technitium with this guide, with a few hiccups.
The start job is not working, i need to start it manually.
I can't figure out how to make DHCP work with this too.. anyone?
Hi,
I installed dotnet packages downloaded from FreeBSD.pkgs.org.
Seems to Work, i'm able to start technitium, but Not able to Open Management port. Maybe an Idea whats the issue?
Verified Binding with netstat -an and technitium seems to run and bound on all Interfaces.
tried it also with compiled packages - same issue.
EDIT:Technitium is running, i´m able to connect to dns server (nslookup).
so only webinterface is not reachable.
only thing i found: dotnet for 5380 is bound to tcp46.
root dotnet 34826 304 tcp46 *:5380 *:*
root dotnet 34826 305 udp4 *:53 *:*
root dotnet 34826 306 tcp4 *:53 *:*
root dotnet 34826 307 udp6 *:53 *:*
root dotnet 34826 308 tcp6 *:53 *:*
Thx
Chris
Quote from: tango38317 on July 17, 2025, 07:44:47 PMHi,
I installed dotnet packages downloaded from FreeBSD.pkgs.org.
Seems to Work, i'm able to start technitium, but Not able to Open Management port. Maybe an Idea whats the issue?
Verified Binding with netstat -an and technitium seems to run and bound on all Interfaces.
tried it also with compiled packages - same issue.
EDIT:Technitium is running, i´m able to connect to dns server (nslookup).
so only webinterface is not reachable.
only thing i found: dotnet for 5380 is bound to tcp46.
root dotnet 34826 304 tcp46 *:5380 *:*
root dotnet 34826 305 udp4 *:53 *:*
root dotnet 34826 306 tcp4 *:53 *:*
root dotnet 34826 307 udp6 *:53 *:*
root dotnet 34826 308 tcp6 *:53 *:*
Thx
Chris
found my issue on testinstance of opnsense:
did not run the wizard. after running wizard, and deploying a static ip i was able to configure Technitium.
I was also not able to get the DHCP Server up and running.
br
Chris
Quote from: NeoDragon on July 02, 2025, 02:32:02 AMSo, i managed to install technitium with this guide, with a few hiccups.
The start job is not working, i need to start it manually.
I can't figure out how to make DHCP work with this too.. anyone?
I changed my start job to:
#!/bin/sh
cd /opt/technitium/dns/
./start.sh > /dev/null 2>&1 &
I do not use the technitium dhcp, but I'll test it in the next days...