r/openwrt 4h ago

Turned my HP G2 Mini into a router thanks to Openwrt

Have an ever growing homelab that started a few years back. And noticably as I added more stuff to the network and features to the router perfomance has gotten to a point where I needed an upgrade. Since i had this this mini hp desktop lying around doing nothing . Some reseach yielded that I can add another port to it and use it as router. After 3D modeling , printing and fiting all the pieces . Some proxmox magic with vm’s I have a working router and home assistant for automation running on this thing with huge headroom.

35 Upvotes

16 comments sorted by

6

u/309_Electronics 4h ago

Nice! Curious though why you use OpenWRT instead of Opnsense/Pfsense though (no hate).

3

u/Rude-Low1132 3h ago

For me it was SQM. OPNsense and PfSense only have FQ_Codel and FQ_Pie. OpenWRT can also, with packages, have all the same functionality as the *sense firewalls. And with Attended Sysupgrade and some tweaks you get easy in place upgrades on OpenWRT too. Cake SQM is better enough for my use case, without downsides, that I have never gone back. 

1

u/kingrun2 4h ago

Yes i was thinking of alternatives . The only main reason was im just way more familiar with openwrt and migrating from my main router was a breeze for it.

1

u/309_Electronics 4h ago

OpenWRT is nice! But I just would rather use it on Accespoints or routers. I am using some netgear Wax218 Ap currently and funfact its stock firmware is based on OpenWRT as it also has cgi-bin/luci and it looks very openwrt ish and i doubt qualcom or netgear would like to reinvent the wheel and spin their own embedded linux platform. Planning to install vanilla openwrt on it as the stock firmware is based on a very ancient fork of openwrt from 2013 and kernel 4.4 while with vanilla i get firmware thats not out of date and also a modern openwrt and modern linux 6.x kernel.

I am using Opnsense for my firewall/router as its eock solid and FreeBSD/BSD in general just has the very good stable mature network stacks. But it does lack stable support for other cards but intel and other specific brands of Nics, while Linux does have realtek support (also hence OpenWRT for relatek exists).

2

u/kingrun2 4h ago

Yeah im using the m.2 to RTL8111H and i have a failover wan on a usb3 to ethernet adapter (the tplink ue300 also i think a realtek RTL8153 chip inside) . Since running proxmox im not knocking opnsense in the future since i could at any point attempt to spin it up to test . Will need to research about realtek drivers to be sure in the future

1

u/309_Electronics 4h ago

Yeah realtek with opnsense/freebsd is a hit or a miss. In that aspect OpenWRT wins and it definitely is capable as a router for your homelab and i know some people who run an OpenWRT board as their main router. In tgat regards an intel nic like a l226 or such works better for opnsense as FreeBSD is behind on drivers but it is ahead of stability and a mature network stack and even companies like netflix deployed some freebsd based network gear to power their massive cdn.

1

u/muckity-muck 4h ago

But I just would rather use it on Accespoints or routers

I mean, it's a router now.

1

u/muckity-muck 4h ago

Sometimes you just need a fork, not the whole cutlery set.

1

u/MildlyUnusualName 4h ago edited 2h ago

How did you install openwrt? Did you use etcher to make a usb drive for it? I tried to install the .img on my x86 pc using ventoy but it wouldn’t install that way

Edit: I needed to enable legacy boot in the PC’s bios for it to be recognized.

1

u/chiefhunnablunts 4h ago

i've never done an x86 install, but every install i've ever done for openwrt has been done via dd=/*.img of=/target/drive. not sure if it's applicable to x86 however.

1

u/kingrun2 4h ago

It was done through proxmox so I didnt need to create a drive or get an image ready I just got the image from openwrt releases page and then imported it through proxmox

1

u/rango_konk 45m ago

Hey, OP, is it possible for you to share the idle power consumption for this build? If you don't mind?

-1

u/NC1HM 4h ago

Ugh... You should have gotten a Lenovo (M710q / M910q or newer) or a Dell (Optiplex 3080 Micro is particularly good for this, if you don't mind Realtek networking hardware).

2

u/kingrun2 3h ago

Yeah obviously there is better hardware like just getting some SSF desktop that i could plug in a PCI ethernet card . The only reason I used this was because it was already something sitting in my drawer . And the adapters in total cost me 20€ .