Could someone please help me with this configuration.
I’ve read a lot of discussions, but the options are overwhelming, and I’m getting lost.
In short, this is my use case:
I have a house with 3 floors, with 3 routers, one on each floor.
I have a RB4011(with WiFi) on the middle floor, which is the main router.
And I have 2 hAP ac2s on the other two floors, acting as access points.
Here is a link to a simplified diagram: https://drive.google.com/file/d/1HM8sGMzK5mh-qOsWJD3TIGTt_Hp2AjbQ/view?usp=sharing
My current configuration is a simple makeshift solution, just so I get everything working.
There are no VLANs, everything is currently on the same subnet.
The RB4011 acts as a router. The ISP router (in bridge mode) is connected to it on port 1.
The hAPs are connected to the RB4011 on ports 9 and 10, acting as caps.
I’ve setup capsman on the RB4011 with just 1 WiFi network.
The hAPs get provisioned. And that part works.
The RB4011 also works as a cap, and gets provisioned by capsman.
So, I have 3 caps in total.
The RB4011 has IP 192.168.88.1 and has these port connections:
- port 1: WAN
- port 2: RPi running Home Assistant (further called Hassio)
- port 3: nothing (possibly connect NAS in the future)
- port 4: nothing (possibly connect another RPi, running Rhasspy server)
- port 5: “living room secondary”. I have a cable, but nothing is connected with it currently. It’s meant for future use if I add IP TV
- port 6: “living room primary”. This is connected to a dumb switch, which has the TV, AVR, Android box, Gaming console etc connected to it.
- port 7: “office secondary”. I have cable, but nothing is connected with it currently.
- port 8: “office primary”. This is connected to a dumb switch, which as the PC, printer etc connected to it.
- port 9: “bottom floor AP”. One of the hAPs.
- port 10: “top floor AP”. One of the hAPs.
The “bottom floor AP” hAP has IP 192.168.88.2 and has these port connections:
- port 1: connected to RB4011
- port 2: Vaillant boiler controller
- port 3: nothing
- port 4: nothing
- port 5: nothing
The “top floor AP” hAP has IP 192.168.88.3 and has these port connections:
- port 1: connected to RB4011
- port 2: nothing
- port 3: nothing
- port 4: nothing
- port 5: nothing
In short, I want to segregate devices in VLANs, and I want multiple WiFi networks accordingly.
VLANs
- Management (VLAN 1, subnet 192.168.88.0/24)
- Routers, switches, possibly Hassio
- I guess these need access to the whole network
- NoT (VLAN 10, subnet 192.168.10.0/24)
- IoT devices that have restricted access, preferably no internet access at all
- e.g. Shelly relays, Tuya lights/light switches/curtain motors/thermostats/sensors… (if I can get them to run without Internet)
- Currently, all of these are WiFi devices (not wired)
- Hassio needs to read the state, and send commands to these devices
- They don’t need to communicate with devices from other VLANs (apart from Hassio)
- They don’t need to communicate with other devices on the same VLAN
- IoT (VLAN 11, subnet 192.168.11.0/24)
- Similar to NoT, but for devices that do need internet access
- These will be both WiFi and wired devices. Currently the Vaillant boiler controller is wired (bottom floor AP, port 2), the rest are WiFi
- Hassio needs to read the state, and send commands to these devices
- They don’t need to communicate with devices from other VLANs (apart from Hassio)
- They don’t need to communicate with other devices on the same VLAN
- Multimedia (VLAN 20, subnet 192.168.20/24)
- These are multimedia devices, that need to limited access to devices from the same and other VLANs
- e.g. TV, AVR, Android Box, gaming console, NAS, security/doorbell cameras
- Most of these are wired (RB4011 ports 5 and 6), and some WiFi devices
- After I add a NAS, all of these devices need access to it
- Hassio needs to read the state, and send commands to these devices
- They do need to communicate with other devices on the same VLAN (e.g. cast doorbell camera to TV, access NAS from any device…)
- Devices from the “Main VLAN” (PCs, phones…) need to be able to cast to multimedia devices, but multimedia devices should not have direct access to “Main” devices
- Main (VLAN 30, subnet 192.168.30/24)
- These are “consumer” devices belonging to members of the household
- e.g. PCs, laptops, phones, printers/scanners etc.
- Most of these are wired (RB4011 ports 7 and 8 ), and some WiFi devices
- Hassio needs to read the state, and send commands to these devices
- They do need to communicate with other devices on the same VLAN
- They do need to communicate (e.g. cast, or read/write NAS) to devices on the “Multimedia VLAN”
- Not a must have, but it would be nice, if I could cherry-pick devices that have access to HASSIO UI (e.g. only my wired PC)
- Guest (VLAN 40, subnet 192.168.40/24)
- Guest devices that need internet access (mostly WiFi)
- They should not have access to anything else on the network
WiFi networks
WiFi networks follow the similar structure as VLANs. Since I have 3 APs (and will add more possibly) I would prefer to configure them with capsman.
So overall, I want these networks:
- NoT (probably just 2.4Ghz): for the NoT VLAN
- IoT (probably just 2.4Ghz): for the IoT VLAN
- Multimedia (both 2.4Ghz and 5Ghz): for the Multimedia VLAN
- Main (both 2.4Ghz and 5Ghz): for Main VLAN
- Guest (probably just 2.4Ghz): for Guest VLAN
Questions and dilemmas:
I have done a lot of reading, but I’m getting lost, and still not sure where some things belong.
So apart from configuring everything above, if anyone has a suggestion regarding these, I would appreciate the the help.
- I have a dilemma where to put the Hassio device. By firewall rules, it would probably go together with the routers in the “Management VLAN”. Is that a good idea? Alternatively I could put it in the “IoT” or “Main” VLANs, but I would probably need to add some firewall rules, since it needs more access that any of those VLANs provide. Or maybe to put it in it’s own VLAN?
- I plan to run the Rhasspy server on the same device as Hassio, which is not ideal from the firewall perspective. The RPI will run the Rhasspy server, while I will build my own smart speakers with RPI Zeros as Rhasspy satellites. I presume they will require to run in the same VLAN as the server. This is not ideal firewall-wise, since I don’t want all smart speakers running on the “Management VLAN”. Does anyone have an suggestion how to configure this, other than using another RPi just to run the Rhasspy server, separate from Hassio, on the NoT VLAN. I presume that Rhasspy only needs to communicate with Hassio, not other devices directly (e.g. a TV)
- I was planning on putting all security/doorbell cameras in the “Multimedia VLAN”. However, I don’t like the idea of my cameras having internet access. I plan to get all cameras with local control. I do want Hassio to be able to stream from them to a phone or a TV remotely, but I don’t want cameras having direct internet access. Would it make more sense to split this VLAN into 2 VLANS: one with, and one without internet access? Or just to cut off internet access to those cameras exclusively, via the firewall?
- If I do split it into 2 VLANs, where would the NAS go? Is it normal for a NAS to have no internet access? On the other hand, if I put it on the “internet VLAN”, then the cameras would need store their feeds to a different VLAN.
- I’m not sure where to put printers and scanners. Intuitively I wanted to put them in the “Main VLAN”, although it doesn’t really feel like they belong here communication wise (they could be Multimedia). But for convenience I think it makes more sense to keep them here. I will be printing/scanning exclusively from Consumer devices (possibly Hassio). I definitely don’t need to print something from a device on some other VLAN (e.g. a TV).
- As for the CAPsMAN and VLAN setup, I have been reading the docs here https://wiki.mikrotik.com/wiki/Manual:CAPsMAN_with_VLANs, but I’m still not sure if I should use local or capsman forwarding in my configuration.
I know It’s a lot of questions, and I’m asking for a lot…
I’m a newbie at networking. I know roughly what I want to achieve, but RouterOS has been overwhelming so far.
Any help will be appreciated.