Darrin Jackson

DIY OPNsense Router Build (x86 Firewall Appliance)

Executive Summary

This project documents the design and deployment of a custom x86-based router/firewall using OPNsense and repurposed enterprise hardware. The objective was to build a low-cost, professional-grade routing platform while gaining hands-on experience with hardware constraints, network interface selection, and FreeBSD driver compatibility. The system now operates as a functional WAN/LAN router and serves as the foundation for future network security projects.


Project Objectives


Environment and Hardware

Base System

Additional Network Interface

Operating System


Design Constraints and Decisions

The OptiPlex Small Form Factor chassis limited use of the primary PCIe expansion slot due to physical clearance under the drive cage. To maintain dual-interface routing without modifying the chassis, the onboard M.2 Key-E WLAN slot was repurposed to host a dedicated Ethernet adapter.

The Intel i210 chipset was intentionally selected due to:

This approach provided physical WAN/LAN separation while avoiding unreliable USB-based adapters.


Implementation Process

  1. Removed the original Wi-Fi adapter from the M.2 Key-E slot and installed the Intel i210 Ethernet adapter.
  2. Created OPNsense installation media and installed the operating system onto the OptiPlex system.
  3. Verified hardware detection during boot and through the OPNsense console.
  4. Identified network interfaces:
    • igb0 – Intel i210 (M.2 adapter)
    • re0 – Onboard Realtek NIC
  5. Assigned interfaces:
    • WAN: igb0 (Intel i210)
    • LAN: re0 (onboard Realtek)

Placing the Intel interface on the untrusted WAN side prioritized stability and driver reliability for inbound traffic handling.


Validation and Testing

The router successfully initialized with functional WAN/LAN separation and was ready for integration into the home network.


Outcome

The project resulted in a fully operational custom router/firewall appliance with:

This system now serves as the core routing platform for future network segmentation, monitoring, and security experimentation.


Skills and Concepts Demonstrated


Next Steps