Top
Best
New

Posted by yabones 10 hours ago

How to turn anything into a router(nbailey.ca)
524 points | 193 commentspage 4
timw4mail 9 hours ago|
Surely something like OPNsense/PFsense would be better for the average user than setting up all the software manually?
drnick1 5 hours ago||
Not necessarily. For one, the BSD has, or at least used to have much worse driver support for wireless adapters. With a regular server/desktop Linux distro, it's also easier to run other services on the same device. For example, nothing prevents you from running nginx and hosting a website, or a personal email server.
MathMonkeyMan 9 hours ago|||
I appreciated learning what's involved, though.
fragmede 7 hours ago||
In this day and age, if that's what you're after, you can just point an AI at the problem and give it shell access, and it'll just do what you describe (Claude code, codex, etc).
ghc 8 hours ago||
Here I was thinking this article would tell me how to turn my unmanaged switches into routers, but no, "anything" actually means "any fully featured general purpose computer with networking".
HugoTea 8 hours ago|
I suppose if you manage to get OpenWRT or something onto your switch you could use it as a router.
wtallis 7 hours ago||
That's theoretically possible but a bad idea for a managed switch, because they seldom have enough CPU performance or IO between the CPU and switch silicon to provide respectable routing performance. For an unmanaged switch, it's more likely that whatever CPU core is present (if any) doesn't have enough resources to run a real network stack.
st_goliath 8 hours ago||
> sudo systemctl enable [email protected]

:-)

Let me guess, ".*@.*\..*"?

gigatexal 2 hours ago||
nftables syntax makes me love pf’s syntax even more. Shudder man shudder.
rashkov 8 hours ago||
Anyone know how necessary UPnP is? From what I can tell, this setup does not run UPnP for automatic port forwarding
pak9rabid 5 hours ago||
You'd need to run a daemon like miniupnpd to enable UPnP, however I'd avoid it if you can, as it can be a significant security risk.
drnick1 5 hours ago|||
Not necessarily at all and a huge security risk.
YouAreWRONGtoo 7 hours ago||
[dead]
zer00eyz 7 hours ago||
I live in the SF Bay Area, and ended up with Sonic Internet, and a 10gbe connection. Routing this with anything off the shelf was going to be "very expensive".

I ended up with an Opnsense box. It's an m920q (i5-8500), with riser card and a dual SFP+ nic in it. All in, it was less than 200 bucks (now it would be closer to three). I ended up with a cheap, Chinese "media converter" (from aliexpress because the same thing on amazon is 3x the price) that just had two SFP+ ports on it. That let me go from an SPF+ copper ethernet module to a DAC and not dump a bunch of heat into the 1L pc.

I have to say that the functionality made it a worth while investment: traffic shaping, wireguard and the like have been mostly a joy. And the documentation for Opnsense made the setup and use (mostly) easy.

maybe_pablo 7 hours ago||
I did kind of the opposite, I made my main beefy gaming computer the router, then connected to it a nice wireless AP in bridge mode to serve internet to the rest of the computers. That way I can have a local llm agent manage my network and firewall by simply asking.
mayhemducks 2 hours ago|
good god man are you insane?
jrm4 8 hours ago||
We are just scraping the surface here; let's imagine a really easy to use and install bit of router software that includes all kinds of p2p bells and whistles.

The extreme difficulty of setting up networking and routers is (obviously?) a weird endgame result of how companies and safety and capitalism and restriction intersect* and given the relatively insane regulatory ideas we're seeing these days, time for another look at all of this.

*edit, and not, e.g. an inherent property of "networking technology," it does NOT have to be this hard.

bitwize 8 hours ago||
Qotom mini PCs are my cheatcode. These little PCs are often available with multiple NICs, and I use one as a wifi bridge/router for my office network. Put Linux or FreeBSD on one and you have a very capable little network-appliance box.
Ir0nMan 9 hours ago|
A fun project that results in a unique and stylish router is repurposing a Mac Pro Trashcan. They can be picked up for a few hundred dollars, offer dual 1GbE Intel NICs that work natively on Linux, and have plenty of CPU and RAM overhead. Throw OPNsense on there and you’re off to the races.
wffurr 9 hours ago||
The idle power usage on those is atrocious compared to say an Intel N100 or an Arm system.
whalesalad 9 hours ago||
Performance per watt is not ideal on the trash can. But totally doable.
More comments...