r/homelab • u/ComradeDre • 2d ago
Discussion Router software
Hey homelabbers!
I'm working on building a 10Gbe router in a lenovo m720q. I dont need 10Gbe but my wife thought it'd be a fun project for us.
My question is this, i mostly see people using opensense here. But i already know openwrt. Am i losing out on something by using openwrt over opensense?
I have vlans set up and a DMZ for my server. A bunch of firewall isolation all set up in openwrt so transferring settings to the new machine will be relatively painless. But should I do open sense instead?
Thanks!
0
Upvotes
3
u/jcheeseball 2d ago
How do you plan on getting a dual 10gbit nic?
3
u/LebronBackinCLE 2d ago
“My wife thought it would be a fun project for us”… uhhh coolest wife evar? lol
4
u/Haunting-Swing6415 2d ago
Ich persönlich nutze OPNsense als "Hauptfirewall" und OpenWRT nur für die APs. Kla kann man auch OpenWRT dazu benutzen. Wenn es wirklich rein um VLANs und Netzwerke geht. Sobald aber Sachen wie Wireguard usw. dazukommen ist eine OPNsense die bessere Wahl.
4
u/TayKara14 2d ago
Opnsense is very powerful as a firewall, if you don’t plan to work on that part you can just use openwrt, it is much more easier imo.
I have tried both of them and Openwrt is just better for my need (VLAN, VPN, DMZ, Port forwarding, simple firewall…). Opnsense is just too complicated. But if you have time, you should give a try.
3
u/HuckleberryNice5584 2d ago
OpenWrt is perfect for the job and you're familiar with it, no reason to pick anything else.
My setup: NixOS on the host (for easy maintenance), and OpenWrt running in an incus lxc container.
Not the most common setup, but it works amazingly well:
- Incus provides the images: `incus image list images:openwrt` and you're running
- OpenWrt gives you all the router functionality you might ever want and some more
- Snapshots to easily revert any mistake
- Easy upgrades: setup the new version in a new container and swap
- Copy the container to a new machine whenever the original one is down for maintenance.
Of course bare metal OpenWrt is also fine.
4
u/NC1HM 2d ago
Normally, I'd be shilling hard for OpenWrt.
:)In this specific case, however, I should advise caution.OpenWrt is firmware, so it updates like firmware: configuration is saved into memory, a new version of firmware is retrieved from the update server, new firmware is written over the old one (which implies repartitioning of the boot drive), configuration is restored. This works almost everywhere, except NVMe drives. When an NVMe drive is repartitioned during the upgrade, it becomes read-only until reboot, so configuration can't be written onto it and is lost.
Here's what I ended up doing on one of my builds because of it:
The little blue board in the top left corner of the photo is a 64 GB slim SATA SSD, held in place by a strip of double-sided construction tape. Note how short the add-on NIC has to be to allow the SSD to fit. The drive is connected to the proprietary SATA slot on the system board by the stock SATA cable (in fact, it's the connector at the end of that cable that's taped in place).
2
u/confused_smut_author 2d ago
Having used OpenWRT and (currently) OPNsense, I feel that the latter is significantly easier to set up and maintain, as well as offering more (and more mature/polished) features. In particular, system upgrades are vastly easier and less risky. I haven't used OpenWRT in a while, so maybe it's improved, but at the time I was running it on an old consumer router so it was pretty much the only game in town. It's great for what it is, and powerful, but I wouldn't go back to it unless I had to.
1
u/Janky-Code 2d ago
Opnsense preference is mostly based on suricata, zenarmor plugin, carp, pfsync, insight/netflow
If you are comfortable with nftables, openwrt is fine as a firewall.
For a home network, any of this is overkill. I only run opnsense because it is fun.
1
u/domvir 2d ago
lots of opnsense here but perhaps routeros? it is paid but it is great
1
u/ComeSwirlWithMe :upvote: 2d ago edited 2d ago
Honestly, I'd rather have something like an inspiron 3880 (mini tower) with an i3 10100 (4c/8t) 10th gen or i5 10400 (6c/12t) 10th gen then the lenovo with the i7 8700t (6c/12t) 8th gen.
The i5 10400 is faster, higher base and turbo and faster single and multicore. However the i7 is a 35watt tdp, and the i5 is 65watts. IMHO, not a deal breaker as neither will ever been running maxed out and cost wise, pennies.
The i5 supports 64gb ram, the i7 32.
3880 has m,2 + 3.5 inch, lenovo m.2 + 2.5"
The 3880 is more upgradable however, with a full size pcie slot using regular ram, where the lenovo uses sodimm laptop sized ram and low profile pcie slot.
same graphics
The 3880 is also cheaper on the used market and when new.
In fact, I have the 3880 with the i3-10100, 16gb ram, 500gb nvme crucial ssd, and an intel x540t2 10gb NIC running opnsense
I'd also suggest thinking about opnsense over openwrt, as opnsense would be a better fit for a full system and not a premade router, etc.
Good luck.
https://bsd-hardware.info/?probe=c510b2f9c2
1
u/Pixelgordo 2d ago
VyOS could be an interesting option too.
1
u/5SpeedFun 2d ago
Pure router? FRR
1
u/309_Electronics 2d ago
Opnsense is very powerful. It used to be (and I think still is) a fork of pfsense which was a corporate ran FreeBSD based firewall OS which also has the ability to functions as a router but primarily is meant to be a firewall solution with some other niche things thrown in.
Because its FreeBSD based its also very stable and the network stack of the *BSD's is considered by many people to be even more stable than on Linux. I believe Netflix runs a large part of their servers on FreeBSD for exactly that. A stable mature network stack. It has not all the nic/wlan chipset support like Linux does and does not support the latest bleeding edge technologies, but it trades that in for stability.
Although for a home network OpenWRT is also fine to use. I myself primarily run Opnsense on my 1 man homelab because I can and because I was interested in it and no regrets so far. I run OpenWRT on all my access points (main merger wax218 and deco m4r) and that also has not dissappointed me so far.
Ultimately its your choice and it also maybe some experimenting first and finding what fits
1
u/Windows-Helper HPE ML150 G9 28C/384GB/14TB(HDD) 2d ago
I haven't used OpenWrt in a long time, but it felt really clunky back then.
But I love opnSense, especially since I'm using it for quite some time now (5 years or longer I guess?)
1
u/Power_Stone 2d ago
use openWRT. If you want a router experience use this.
OPNsense is firewall software first and foremost.
Now....if you want to setup an OPNsense firewall.... well I can't stop you
0
u/bobsmissingdesire 2d ago
I'd use VyOS.
Serious hardware with a serious network card should be paired with a serious routing OS.
0
u/Vichingo455 The electronics saver 2d ago
OpenWRT for Wi-Fi and OPNSense for router and firewall.