Skip to content

Instantly share code, notes, and snippets.

@Fusl
Last active October 16, 2020 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fusl/64aaa1d9b2025067a1b54b273ce11771 to your computer and use it in GitHub Desktop.
Save Fusl/64aaa1d9b2025067a1b54b273ce11771 to your computer and use it in GitHub Desktop.
Compile if_re.ko driver for RTL8111/8168/8411 on pfSense
- # Install FreeBSD 11.3-RELEASE with `ports` and `src` components in a VM
- pkg install wget ca_root_nss
- wget -qO- http://xor.meo.ws/KmLFJaaLqaQmUtNk2PP64KOLSNVb9GCy/rtl_bsd_drv_v196.04.tgz | tar xzf /dev/stdin
- cd rtl_bsd_drv_v195.00/
- sed -i.bak 's|#include <dev/re/if_rereg.h>|#include "if_rereg.h"|' if_re.c
- make
- # You're done with compiling the kernel module, `if_re.ko` is the file you need
- # Copy the kernel module file from your FreeBSD instance to your pfSense instance into /boot/kernel/
- # Exec chmod 555 /boot/kernel/if_re.ko on your pfSense instance
- # Add if_re_load="YES" to your /boot/loader.conf file on your pfSense instance
- # Reboot your pfSense instance
- # Check that the module is loaded: `kldstat -n /boot/kernel/if_re.ko`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment