# How to compile and install latest realtek network driver in pfSense 2.5.1-RELEASE (amd64) (FreeBSD 13.4-RELEASE)

**URL:** <https://forum.hhf.technology/t/how-to-compile-and-install-latest-realtek-network-driver-in-pfsense-2-5-1-release-amd64-freebsd-13-4-release/147>\
**Category:** Tutorials\
**Tags:** pfsense, network-driver, realtek\
**Created:** [October 10, 2024, 8:13am UTC](https://forum.hhf.technology/t/how-to-compile-and-install-latest-realtek-network-driver-in-pfsense-2-5-1-release-amd64-freebsd-13-4-release/147 "2024-10-10T08:13:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhf.technoloy](https://forum.hhf.technology/user_avatar/forum.hhf.technology/hhf.technoloy/32/68_2.png) [@hhf.technoloy](https://forum.hhf.technology/u/hhf.technoloy)\
**Post date:** [October 10, 2024, 8:13am UTC](https://forum.hhf.technology/t/how-to-compile-and-install-latest-realtek-network-driver-in-pfsense-2-5-1-release-amd64-freebsd-13-4-release/147/1 "2024-10-10T08:13:00Z")

</div>

### How to compile and install latest realtek network driver in pfSense 2.5.2-RELEASE (FreeBSD 13.4-RELEASE)

1. Download [FreeBSD 13.4 VMDK](https://download.freebsd.org/ftp/releases/VM-IMAGES/13.4-RELEASE/amd64/Latest/FreeBSD-13.4-RELEASE-amd64.vmdk.xz) and create a VM with it as HDD.

2. Get FreeBSD source tree for your exact FreeBSD version and uncompress it to _/usr/src_:

3. Download latest [Realtek network driver](https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software) (you need to input an email address).

4. Uncompress driver:

5. Make driver:

6. Copy the file _if\_re.ko_ to the _/boot/kernel_ folder in pfSense device.

7. Change file permissions in _if\_re.ko_ file accessing through SSH to pfSense.

8. Modify _/boot/loader.conf_ file and add the following line at the end of the file: `if_re_load="YES"`

9. Reboot pfSense.

10. After restart, verify if module is installed through ssh with _kldstat_. Example execution:

Based on:

- [https://forum.pfsense.org/index.php?PHPSESSID=c93krctgp8ueben00q7udbhqs6&topic=103841.105](https://forum.pfsense.org/index.php?PHPSESSID=c93krctgp8ueben00q7udbhqs6&topic=103841.105)
- [Reddit - The heart of the internet](https://www.reddit.com/r/PFSENSE/comments/7n300s/solved_slow_internet_throughput_on_rogers_1gbs/)
