I have three VLANs, one for management, one for guests and one for IoT-devices. My bridge has PVID 200, the same has all the devices connected to the router, and my Unifi AP has PVID 200. The IoT devices has PVID 50, and the guests have PVID 100.
Now I want to let my Home Assistant server have access to my IoT devices. How do I do this? I’ve tried setting up firewall rules with my management interface as “in interface”, and my IoT interface as “out interface”, but I still can’t communicate with my IoT devices.
Read this excellent reference on vlans and adjust config accordingly.
Right off the bat I would not apply a subnet to the bridge itself and I would not use a vlan on the bridge either.
Just leave the default pvid=1 setting for your bridge.
Thank you so much! My network works as intedded now, I just have to figure out port forwarding, since that doesn’t work now. My PiHole DNS, the Avahi-reflector is kind of working, but Google Cast and Spotify connect does not work. It discovers the Google Cast device, but I can’t connect to it.
Edit: Google Cast is now working, I had to add this rule, still have to figure out how to get Spotify Connect working across VLANs:
add action=accept chain=forward comment="Give all VLAN-devices access to Shield device" dst-address=10.0.0.25 in-interface-list=VLAN
Edit 2, added firewall rule to accept connections DSTNATed:
add action=accept chain=forward comment="Accept all DSTNATed" connection-nat-state=dstnat in-interface=ether1
I don’t know if this is the best way to do it, but setting my UnRAID computer with PiHole VM as tagged because the PiHole has 3 network interfaces, where two of them are tagged as VID 50 and 100, and the other one is untagged. Also my Unifi AP has 3 SSID, where two of them are tagged as VID 50 and 100.
Should I use the switch chip for VLAN, when I have a RB3011?