I’m small enough scale that a the flint 3 router does all of this I think.
Comment on Simplest VLAN setup?
neidu4@piefed.social 1 day ago
VLANs have been a major part of my career for the past 20 years, and it seems that the most common thing I need to teach people joining me at work is this: Switches don’t provide access between VLANs. Routers do.
Sure, it’s reasonably obvious to many, and there are exceptions, but a very common question I get is how one can set up VLANs so that some hosts can talk to each other across VLANs.
There are many ways to set up VLANs, but I find it easiest to number a VLAN based on an octet in the IP scope of its clients. For example:
172.20.32.0/24 gets VLAN 32
172.20.40.0/24 gets VLAN 40
…etc
And then you plug a router into each of those VLANs and set up firewall rules according to your preferences. The router can be connected via a single trunk cable, or if you’re lazy, tou use a dedicated interface and cable for each VLAN.
So back to your question: Pit your cameras on an isolated VLAN, provide that VLAN with a gateway, and then you config the gateway to block internet traffic, but allow access between your camera vlan and some (or all) hosts on your other subnets/vlans.
Squizzy@lemmy.world 1 day ago
remotelove@lemmy.ca 1 day ago
Yes to all of this. Learning the switch bit is probably harder than setting up opnsense. With opnsense, it’s just building the VLANs on your interfaces and the routing is automagic.
With switches, there are nuances like PIVDs, tagging and untagging along with trunks. It’s not that hard, but it can be difficult to visualize at first.
I still love not having to constantly move cables around though. Even though it’s literally just across my office, I plugged in 8 cables from my servers today into 8 empty switch ports and that was that. Everything weird and crazy I might do is going to be all handled by VLANs, routing and firewall rules and the cables still get to look nice while that happens.
I just started segmenting my wifi network and isolating all the IoT trash off into its own little corner letting all those thingies just broadcast at each other instead of the rest of my network…
iamthetot@piefed.ca 16 hours ago
Thanks for the reply! To make sure I understand your suggestion, I made up this diagram. Do I have the right idea?
To expand on this, there’s another part I’m not sure about. I already have Ethernet runs in the walls, with wall-plates in various rooms in the house. These all run back to what I will make my server room. I’m a little confused about how the VLANs will work when running through the wall, for example can two different VLANs share the same Ethernet run or do they need to be entirely physically separate runs?
Here’s the overall, big picture of what I want to achieve eventually.
neidu4@piefed.social 13 hours ago
I would use the VLAN capable switch as your first switch after the router. That way, you can assign a VLAN to everything. And your “any dumb” switch can be downstream of one of them, serving whichever VLAN it is connected to.
How this works:
VLAN ports have two modes. Terminology might change between vendors, but they all do the same:
¹: Yes, PCs can also connect to a tagged port, but then you have to set up your network config to also use VLAN tagging. In most cases, it’s easier to just connect the PC to an Untagged port. One benefit of connecting a PC to a tagged port is that you can configure this PC to talk on multiple VLANs with a separate IP for each, so that you can in effect be connected to multiple networks with only one cable.