DIY Router On X86 E-Waste: OpenWrt And OPNsense
In previous installments of this collection we checked out how making a DIY router utilizing an e-waste-level PC has modified over time, earlier than making an attempt as well OpenWrt for x86 on it. After an preliminary SD card booting failure on one system, one other system with a more moderen mainboard – an Intel Board D2500CC – was used which fortunately booted OpenWrt from an SD card inserted right into a USB card reader.
Unfortunately, OpenWrt didn’t see any usable Ethernet interfaces regardless of having a minimum of 4 Intel Ethernet controllers and two hooked as much as lively networks. After not too long ago getting again to the undertaking, I discovered why each onboard Intel 82574L Ethernet controllers didn’t present up in OpenWrt: the drivers for the Intel 82574L controllers are within the e1000e driver bundle, whereas only the e1000 package is current within the supplied x86 picture. This problem persists within the ‘generic’ image profile to today.
Yet relatively than diving head-first into constructing my very own picture that features the kmod-e1000e bundle, I made a decision to provide OPNsense a shake first.
All The Features
Suffice it to say that OPNsense is a complete totally different galaxy in comparison with the cheerful-and-light OpenWrt. Rather than concentrating on simply being a fundamental router, you as a substitute get entry to a feature list the place it’s in all probability sooner to begin asking what it doesn’t do. This FreeBSD-based software program particularly takes purpose at industrial merchandise providing firewall, community visitors evaluation and routing in addition to community security measures, with plugins including options that in all probability has the typical community admin salivating.
Although solely the tiniest little bit of overkill once you merely need to arrange a consumer-grade community router, to not point out possess simply sufficient community administration abilities to not injure your self whereas working the setup wizard of a router and plugging in Ethernet cables, it’s nonetheless a pleasant fuzzy heat feeling to know that you’ve got all this energy at your fingertips must you ever want it.

The Get Started web page for OPNsense can also be relatively reassuring, promising that the lowly 2012-era Intel Atom D2500CC board with its twin 1.8 GHz cores will do exactly wonderful. Although solely 2 GB of DDR3 is put in, DDR3 SODIMM sticks are nonetheless plentiful and comparatively reasonably priced, so it’s straightforward to hoard have a strategic reserve of them for upgrading older methods to 4 GB and past in the event that they assist it. Surreptitiously closes drawer with RAM hoard
Storage-wise a 4 GB SD or CF card is taken into account the minimal, with a 120 GB SSD advisable. Considering that I’ll be residing massive with OPNsense I made a decision to splurge on a complete 128 GB SATA SSD right here within the midst of a provide disaster no much less. This approach it must be attainable to put in OPNsense from a USB stick and be up and working with out the constraints of working a ‘nano’ picture off an SD card or comparable.
The thrilling side right here is that whereas the D2500 Atom CPU is technically a 64-bit CPU and will run 64-bit Linux quite all right if the mainboard additionally helps it, the x86_64-only focus of OPNsense makes this a make-or-break side. Will I would like to interrupt out Yet Another E-Waste PC to make this work? Stay tuned.
Deployment Time

The directions on the OPNsense ‘Get Started’ web page are a bit imprecise on which picture to make use of precisely, with the DVD ISO, VGA, Serial and Nano photographs all having apparently particular objectives and functions that aren’t straightforward to decipher when you attempt to determine what precisely is totally different between the ‘DVD’ and ‘VGA’ picture. Some looking out with DuckDuckGo later and the discovered solutions – together with deeper within the full documentation – pointed me to the ‘VGA’ picture. This .img file must be extracted from the .bz2 archive earlier than it may be written with Rufus or much like a USB stick.
Fortunately this half-guess on the proper picture turned out to be the proper one, because the system booted proper into the reside picture, additionally placing to relaxation preliminary fears of the system rejecting the modernity of 64-bit. Amusingly, the installer works by logging into the reside session’s login as installer relatively than root with the identical opnsense because the password, which is simply mildly awkward when you end up observing a login immediate for putting in an OS.
A mere eleven minutes and forty-five seconds of OPNsense reside session uptime later, the set up was completed and I used to be requested to take away the USB stick and reboot to admire the glory that’s OPNsense. Meaning principally to do first-time setup issues and ensure that every little thing that ought to work additionally does so. Would the system even boot?
First Boot
With some stage of trepidation, I pushed the ability button on the entrance of the case, solely to see it cycle via all the standard pleased FreeBSD issues, albeit all of it distorted for the reason that moveable monitor I used hates 640×480 as decision for some purpose. I had opted for the standard ZFS filesystem possibility during installation, together with principally all the opposite defaults. The solely factor that I used to be unsure about was whether or not it might choose the suitable Ethernet port because the WAN port by default or that I’d must reassign it.
This worry turned out to be unfounded, with what turned out to be the second interface (em1) – which I had plugged into an lively LAN connection – being assigned the WAN function, leaving the second interface (em0) because the model new LAN’s interface. By default OPNsense assigns shoppers on this LAN interface /24 fashion addresses with the router and DHCP server discovered on 192.168.1.1. Clients are assigned addresses within the vary of 192.168.1.100-200.
As an apart, I actually respect how OPNsense publicizes main state modifications like ending booting and happening for a reboot/shutdown outcome within the working of a beep script which creates a fanfare that even a half-deaf community admin working on the different facet of a busy server room can be hard-pressed to overlook. This isn’t a joke, I actually respect clear signaling for something that warrants these within the room to be 100% conscious of this reality.
With a contented UP message on the em1 WAN interface, and fortunately blinking LEDs on the WAN interface, it was time to plug a shopper into the brand new LAN port to see whether or not I now had an actual web router.
Speed Testing
Rather than drag out a more moderen PC or laptop computer, I used my 2013-era gaming laptop computer working Manjaro. This makes it about the identical age because the Intel board within the new OPNsense router, although each are clearly helpful otherwise. Fortunately each methods had been more than pleased to see one another, with plugging in a brand new Ethernet cable between the 2 instantly popping up a affirmation pop-up in Manjaro about an Ethernet connection.
It being Arch-based, the very first thing to check was updating Manjaro with what turned out to be almost a gigabyte of updates. A couple of minutes later this was all downloaded and the laptop computer’s fan was kicking in as if to inform everybody to gradual it down considerably. Clearly it was time to run some comparative benchmarks with different methods not trapped behind this new OPNsense router.
Here I acquired some barely humorous outcomes, which is perhaps extra as a result of how unreliable browser-based web pace checks are. First utilizing quick.com in Firefox I acquired a piddly 61 Mbps up and 23 down, which had me considerably nervous, but once I ran over to my common PC to run the identical take a look at within the Firefox ESR-based Waterfox, I acquired a really comparable rating at 55/36.
As a sanity verify I benchmarked then with speedtest.web, which gave the Manjaro laptop computer a giant thumbs up with 184/187 Mbps, which is nearer to what my ISP claims is a ~300/150 Mbps connection. On my PC with Waterfox I acquired decrease once more the primary time, however the second time it was a lot increased and nearer to the outcome on the Manjaro laptop computer. It’s all relative, I suppose.
I additionally checked the speedtest.web app on my Android cellphone utilizing the common Wi-Fi entry level and acquired a contented 163/142 Mbps, so no matter is occurring, it’s in all probability as a result of JavaScript or browser compatibility or comparable shenanigans as are about 90% of all community points as of late.
Happy Routing
Either approach, the connection on the Manjaro laptop computer in Firefox through the OPNsense router was steady over the course of an hour, with the speedtest claiming a 16 ms ping and to date no points detected. I’ll positively have to determine a greater solution to benchmark the connection, and in addition to recollect to verify the system load on this newly minted OPNsense system, however to date it’s been an astoundingly and fortunately boring expertise.
There are additionally much more options in OPNsense which might be begging to be explored additional, for which I’ll gladly take requests since me {and professional} networking gear are at most on a neighbor-level of acquaintance. For some purpose diving into OPNsense does really feel like in some unspecified time in the future you completely must get that 19″ rack to slot in with the membership.



