On OPNsense 26.7, install os-realtek-re and reboot for RTL8125 driver support. The plugin installs Realtek’s realtek-re-kmod driver. The built-in re(4) lacks RTL8125 support. Plugin Makefile, plugin description, re(4) manual
Which driver handles the RTL8125 on OPNsense?
| Driver | RTL8125 support | Status on OPNsense 26.7 |
|---|---|---|
FreeBSD re(4) | No | Listed in the amd64 GENERIC kernel configuration. OPNsense kernel configuration, re(4) manual |
Realtek realtek-re-kmod | Yes | Installed by os-realtek-re. Reboot to activate it. Plugin Makefile, plugin description, package index, supported device list |
FreeBSD rge(4) | Yes | Absent from the 26.7 amd64 GENERIC kernel configuration and the listed amd64 package index. Kernel configuration, package index, rge(4) manual |
The vendor driver covers RTL8125, RTL8125B(G), RTL8125D, RTL8125K, RTL8125BP and RTL8125CP. It also supports the 5GbE RTL8126 and 10GbE RTL8127 families. FreeBSD Ports supported device list
Why doesn’t the built-in re(4) driver attach to an RTL8125?
OPNsense 22.1 switched the base system from Realtek’s vendor driver to FreeBSD’s re(4), which lacked support for the newer 2.5GbE chips. The FreeBSD 15.1 manual lists older families such as the RTL8168 and RTL8111. OPNsense 22.1 release notes, re(4) manual
From the console shell, run pciconf -lv and look for the Realtek controller. If its driver name is none, the system can see the PCI device and no driver is attached. pciconf(8) manual
How to install os-realtek-re, even with no working NIC
With a working port, open System → Firmware → Plugins, find os-realtek-re, and use the install icon. Reboot the firewall to activate the driver. OPNsense changelog guide, firmware guide, plugin description
The plugin ships these settings in src/etc/rc.loader.d/50-realtek-re. The FreeBSD package gives the same lines “to override the built-in FreeBSD re(4) driver”. Plugin loader file, FreeBSD Ports install message
if_re_load="YES"
if_re_name="/boot/modules/if_re.ko"
Install offline from USB
If the firewall has no working network port, download both packages for installation from a USB stick. A spare USB Ethernet adapter is another option if OPNsense can use it. One RTL8125 owner reported that both of their USB adapters crashed before they could download the package. OPNsense forum report
-
Download
realtek-re-kmodandos-realtek-refor the firewall’s installed OPNsense release and architecture. The 26.7 amd64 index listsrealtek-re-kmod-1102.01.1501000_3.pkgandos-realtek-re-1.0.pkg. Use the matching filenames in the commands below. OPNsense 26.7 package index -
Copy both files to the root of the USB stick’s FAT filesystem. On the firewall console, select option 8 for Shell. With the stick inserted, use
gpart show -pto list partition names. OPNsense console guide, gpart(8) manual -
Replace
USB_PARTITIONwith your USB partition name and mount it at/mnt. Install the driver package, then the plugin that depends on it. mount_msdosfs(8) manual, pkg-add(8) manual, plugin Makefilemount_msdosfs /dev/USB_PARTITION /mnt pkg add /mnt/realtek-re-kmod-1102.01.1501000_3.pkg pkg add /mnt/os-realtek-re-1.0.pkg -
After both installs succeed, run
umount /mntand thenreboot. umount(8) manual, reboot(8) manual
Verify the driver and assign the ports
After rebooting, run kldstat and look for if_re.ko. Run pciconf -lv again to check for a driver attached to the RTL8125. kldstat(8) manual, pciconf(8) manual, Realtek 2.5GbE port example
To assign the new ports to LAN and WAN, select option 1 for Assign interfaces in the console menu. The OPNsense install and first boot guide walks through the setup. OPNsense console guide
How to undo the plugin
Keep console access before removing the packages. Removing realtek-re-kmod can leave RTL8125 ports without a driver after reboot. re(4) manual
Run the removal command from the console shell and review the package list before confirming. Reboot after package removal succeeds. pkg-delete(8) manual, reboot(8) manual
pkg delete os-realtek-re realtek-re-kmod
reboot
Upgrading from OPNsense 26.1 to 26.7
OPNsense 26.7 moved to FreeBSD 15.1. The 26.7.9 release notes list fixes to the built-in re(4) driver, including changes to transmit recovery and the reset sequence for RTL8168G and later chips. OPNsense 26.7 release notes
One owner reported errors waiting for configd after the os-realtek-re step of a 26.1.11 to 26.7 upgrade. They recovered by reinstalling 26.7.1 and restoring a configuration backup. OPNsense upgrade forum report
A separate report covers an RTL8111E that stopped working on 26.1 and 26.7. The reporter tried the Realtek plugin and saw the same behavior. OPNsense issue 307
The 26.7 release notes also list security fixes for the series.
Realtek vendor driver tunables and checksum offload
Set the hw.re.* values under System → Settings → Tunables when they apply to your setup. OPNsense settings guide, FreeBSD Ports install message
hw.re.max_rx_mbuf_sz="2048"reduces the receive buffer size if you can do without jumbo frames. The package message suggests it for hangs that can occur when memory is highly fragmented.hw.re.flow_control="0"turns off 802.3x flow control if a congested link partner throttles transmission with pause frames. For Intel NICs, see the i226-V link-drop checklist.hw.re.s5wol="1"andhw.re.s0_magic_packet="1"may be needed to enable Wake on LAN.
Version 1102.01 of the vendor driver fixed an RTL8125 transmit hang when sending small UDP packets. If the RTL8125 still has network hangs with IPv6 enabled, check Disable hardware checksum offloading under Interfaces → Settings. For drivers that support configurable checksum offloading, the FreeBSD ifconfig flags to disable it are -rxcsum -txcsum -rxcsum6 -txcsum6. FreeBSD Ports install message, OPNsense interface settings, ifconfig(8) manual
What rge(4) changes
FreeBSD imported rge from OpenBSD in December 2025. It supports Realtek RTL8125 at up to 2.5Gbps, RTL8126 at up to 5Gbps and RTL8127 at 10Gbps. FreeBSD import commit, rge(4) manual, FreeBSD Ports package description
Run ifconfig -l to list interface names. The FreeBSD example shows an interface named rge0. For an RTL8125 on OPNsense 26.7, use os-realtek-re from the release’s package repository. ifconfig(8) manual, FreeBSD interface example, OPNsense 26.7 package index
NIC choice for an OPNsense firewall
OPNsense’s hardware guide recommends Intel NICs for LAN connections. OPNsense hardware guide
The I226-V vs I225-V comparison covers Intel NIC differences. The N100 firewall build guide and fanless mini PC picks cover hardware choices.
Suricata IPS and netmap settings
Suricata IPS uses netmap. The FreeBSD netmap manual lists re(4) as a driver with native netmap support. OPNsense directs you to disable all hardware offloading under Interfaces → Settings for IPS mode. OPNsense IPS guide, netmap(4) manual
For a card without full netmap support, set dev.netmap.admode to 2 under System → Settings → Tunables to force emulated mode. OPNsense IPS guide, OPNsense settings guide, netmap(4) manual
Evidence and limits. The procedures are based on OPNsense 26.7 documentation, FreeBSD 15.1 manuals and package files. No hands-on testing was performed for this guide.
Related across the network
- Best Mini PC for OPNsense 2026: A Buyer’s Guide by Tier — firewallcompare.com
- OPNsense Hardware Requirements: CPU, RAM & Storage — opnsenserouter.com