Comment on Simplest VLAN setup?
CompactFlax@discuss.tchncs.de 9 hours ago
You need a router. Opnsense is a router. You could buy a different one but if you want to go the route of opnsense, why would you get a different one? I’m not following.
You also need a vlan aware switch or a second switch (and the router needs more than one local port). Just a switch won’t work; you need the firewall rules between vlans and internet to make it worthwhile.
My opnsense has ports to WAN, LAN, and IOT (cameras). LAN connects to a switch. IOT connects to a different (poe) switch that runs the cameras. I have a firewall rule on IOT blocking all outbound traffic, and allowing inbound from LAN.
iamthetot@piefed.ca 8 hours ago
I have lots of stitches already, but what’s a specific “VLAN aware” switch?
As for the opensense, the hardware I have seen recommended to run it is quite expensive right now due to AI shit. I’ve seen N100 or N150 devices recommended a lot. Add in ram and storage and building a whole device gets more expensive than a brand name router for now. For example, I can find Ubiquiti routers for a few hundred dollars.
CompactFlax@discuss.tchncs.de 8 hours ago
Commonly a “Smart switch”.
If you can find a UI router for less than opnsense, I’d go that route. Their switches aren’t the cheapest but they’re pretty affordable, and the integration is convenient. I run opnsense because I got a device for $50 - used. It’s an Atom processor circa 2012 and has 4GB RAM. I think it should handle a couple hundred mbps and that’s fine for me. Gigabit speed needs more processing horsepower as the speeds increase.
“Someday” I’ll buy some UI access points, a switch, and a router.
GreatBlue@infosec.pub 8 hours ago
A VLAN aware switch is probably a switch which can handle VLANs. If the switch does not, the behavior can vary from ignoring the VLAN-tag, stripping the tag or discarding the packet altogether.
If your are looking for a switch, look for support for “802.1Q”, “dot1q” or similar. It’s the IEEE standard for VLANs.
kieron115@startrek.website 8 hours ago
use an old laptop to start, routing doesn’t take much until you start doing fancy flow control/quality of service like CAKE or FQ-CODEL. connect a dot1q-aware “smart” switch to it and you have what you need.
iamthetot@piefed.ca 7 hours ago
I probably should have mentioned that I would like to achieve 1 gig speeds, which is why I believe building an opnsense machine would be more expensive at the moment.
However, looking again, I’m finding some Topton machines on Aliexpress that might work for much less than last time I looked. Maybe black Friday sales.
kieron115@startrek.website 7 hours ago
Most routers come with simple ARM SOCs so any relatively modern laptop CPU should be more than capable of handling gigabit routing. I used an i7-6700HQ laptop as a router for a while and it was incredibly overkill.