Another successful OpenBSD setup

I’ve been buying these little boxes from AliExpress for years to use as firewalls and routers. My oldest one is almost 9 years old now! OpenBSD installs just fine. Just a BIOS tweak to always boot up after power is restored.

@selfhosted #selfhosting #selfhosted #openbsd #runbsd

34 points

Throw some hard drives on it and baby, you got a stew home media server goin!

permalink
report
reply
3 points

How?
I’ve been thinking about setting up one of these cheap boxes as a NAS but I cannot ever find one with 4 Sata ports. Is there a solution for this?
I could use external USB Hard drives but that just feels so janky…

permalink
report
parent
reply
1 point

Can’t speak to cheap boxes, so usb might be the way, but I use a Zimaboard. Two built in SATA ports, and a pci-e daughter card gives me two more ports. Full disclosure, i don’t do anything more than 1080p, bad eyesight…

permalink
report
parent
reply
1 point
*

I’d love to use a Zimaboard too but they’re not available were I live.
I could import one but the currency conversion + import taxes make it very not worth it.

permalink
report
parent
reply
19 points

I personally never understood the desire for BSD. BSD was good back in the day but we now have Linux which is better supported and protected under the GPL.

permalink
report
reply
22 points

PfSense and OPNsense are both killer router “out of the box” distros built on BSD. I say this as a Linux user, with little interest in running BSD for my applications, but… Respect to BSD. ✊

permalink
report
parent
reply
4 points

I run OpenWRT and it works pretty well. The only potential issue is the updates but if you have a plan it isn’t a problem.

Maybe I’m missing out but from my perspective it is way cheaper to buy a off the shelf router with OpenWRT that can handle gigabit speeds than it is is to build/buy a entire computer that pulls way more power and is several times the cost.

permalink
report
parent
reply
3 points
*

I recently installed OPNsense specifically because I had to buy a mini PC with 2.5 gig ports. There simply isn’t anything reasonable on the market for the prosumer above the 1 gig threshold. Running splendidly on a Beelink EQ12.

Also, OPNsense has things OpenWRT doesn’t offer (plugins, IPS, etc.)

permalink
report
parent
reply
1 point

Openwrt works great for gigabit networks with simple firewall rules and no IPS. But used 10-56gbps enterprise equipment is getting pretty cheap, and more complicated firewall configurations need more powerful hardware than the typical openwrt router.

And 56gbps on a home LAN might be overkill, but that’s not important.

permalink
report
parent
reply
2 points
*

I couldn’t agree more. I’ve been running PFsense for about 5 years, great little toy, not 1 single issue. BSD has been paramount in my life for my firewall needs. And I only run Linux on everything else (desktops and servers), but there is not a single FOSS firewall distro out there that can match, much less surpass, a BSD based firewall.

permalink
report
parent
reply
2 points

Yeah. I’ve no need to change to anything else. pf/OPNsense 4life.

permalink
report
parent
reply
1 point

I one heard ast describe Linux’s code quality as ‘marginal’ (presumably speaking of the kernel)

Of course, it was ast talking at BSDCan but still, harsh words from a master.

permalink
report
parent
reply
1 point

A lot of people stick with what they know and are familiar with.

permalink
report
parent
reply
17 points

So these noname boxes are good for making a hardware firewall/network?

permalink
report
reply
12 points

Yeah, as long as it it’s one with 2+ network ports. I use a little 4 port with pfsense loaded on it for my home network.

permalink
report
parent
reply
9 points
*

I use one with 6 LAN ports and a fanless 10th gen i5 running OPNsense, and it has worked well for years. It runs many services including Unbound DNS and Suricata with capacity to spare. It’s much better than any consumer router, though I run WiFi separately with an Asus AI Mesh set to AP mode.

The only concerns are that you don’t get BIOS updates, and you don’t know for sure that there’s nothing nasty in the firmware. But then you don’t really know that on consumer routers either.

permalink
report
parent
reply
7 points

I’ve been running one for the past 6+ months with no issues.

permalink
report
parent
reply
4 points

Mine died after 2 years after a power cut.
I havent tried to debug it yet. At the time, it would power on but a monitor didnt see anything from the video port, and it didnt seem to actually boot.
I presume it is toast.

If you dont need compact, a rebfurbed SFF with a 4 port network card is gonna be cheaper

permalink
report
parent
reply
2 points

Sure as long as security isn’t a concern

permalink
report
parent
reply
3 points

Ok, cool - do we have astroturfing on lemmy now?

pfSense has a very good record, but OpenBSD’s record and code quality are literally unparalleled.

Conversely, I spend a fair bit of time working on devices made by SonicWall, Fortinet, etc. and it’s all fucking garbage.

Are you concerned about it being designed in China in addition to the conventional and thoroughly ubiquitous “manufactured in China”? Please explain your concerns in detail.

permalink
report
parent
reply
3 points

As @floofloof@lemmy.ca stated:

The only concerns are that you don’t get BIOS updates, and you don’t know for sure that there’s nothing nasty in the firmware.

permalink
report
parent
reply
17 points

Sorry for my ignorance I tried googling but what is this exactly? A server for files or? A media server?

permalink
report
reply
12 points

@madcaesar @otl It’s a small server running OpenBSD, configured to operate as a router and/or firewall.

Linux and the *BSDs can operate as very good routers and firewalls, usually being much more configurable and enabling you to do more complex than off-the-shelf consumer-level hardware routers. Using them on a small form factor computer with a cheap switch in front of them can give you a better performing and nicer to use alternative.

permalink
report
parent
reply
-3 points

An operating system

permalink
report
parent
reply
16 points

Do any of those cheap Chinese computers ever get any firmware or bios updates?

permalink
report
reply
32 points

No and they don’t provide the source either. Makes you wonder what’s running in there.

permalink
report
parent
reply
14 points

I’d be surprised if it wasn’t just based off the UEFI sdk examples containing 30+ CVEs over the last couple of years. If anything, it won’t get patched for logofail and all the others UEFI exploits we’ll definitely see in the coming years.

permalink
report
parent
reply
7 points
*

I was wondering… that tp-link probably negates anything remotely resembling security on its own. But yeah, you can update some of these noname boxes easily, others, not so much.

I have dealt with (in a professional capacity) Chinese manufacturers that are under the impression they do not have to provide a working build tree for the kernel, let alone firmware, so its a gamble if you’re not talking to a major Chinese name brand. Mind you, I was ordering hundreds of those boxes, so there was some leverage.

permalink
report
parent
reply
15 points
*

That TP-link is a dumb switch. Unless you’re telling me that someone is going to find an opening in the firmware and hack their way into the ARP table or something (in which case the threat model here just became state actors and I don’t think the OP is safe with this equipment), I don’t think it affects much, if anything.

Now, if I’m mistaken and that is actually a managed switch; god help them with network security.

permalink
report
parent
reply
8 points
*

It is a managed switch. What’s wrong with TP-Link managed switches?

I have a basic Netgear managed switch for VLANs.

permalink
report
parent
reply
6 points

They do make managed switches, but just to be completely clear, my comment was mostly hyperbole. I just found the general combination of security - mindedness and cheap Chinese hardware curious / amusing.

permalink
report
parent
reply
7 points

None that I know of :(
But @benjja tells me that on some of these you can install coreboot: https://ohnepunktundkomma.org/@benjja/111991771619601081

Something I’m keen to look into.

@cmnybo @selfhosted

permalink
report
parent
reply
3 points

@otl @cmnybo @selfhosted

Protectli ported coreboot for their hardware, and with a little research you can find this hardware on aliexpress, of course under a different name.

permalink
report
parent
reply
3 points

Does any board ever get firmware updates? I don’t understand your logic.

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 3.5K

    Monthly active users

  • 3.4K

    Posts

  • 77K

    Comments