Alright… something like this. Basically I setup three bridges… one for local, one for kids, and one for guest. I set up the VLANs on Ether5 (the trunk port) because that is how you do VLANs on MikroTik. I bridged the VLANs into the three bridges along with their respective ports. I setup addresses, pool, dhcp networks, and dhcp servers on each of the bridges. I made sure that the switch chip was disabled (set master-port=none on the interfaces). Then I setup a firewall… first I allowed related/established, then allowed ports 53, 67, and 68 (DNS and DHCP) from the guest and kids networks (I did this with a jump to a separate chain so I didn’t have to copy all of the rules for both “guest” networks (kids and guest)), then allowed ALL from local and then DROP everything else (I prefer drop by default hence why the last input rule is drop vs the mikrotik standard of accept by default). Then I allowed forwarded traffic from anywhere out to the internet… then dropped everything again by default (this will isolate the Bridges. Then I masq traffic going out to the internet. Lastly I shut off discovery on the gateway interface and all of the guest interfaces.
Thats a basic config to get you started… any questions?
Oh… and on the Unifi… setup three SSIDs with the corresponding VLANs. Also make sure that the switch you are using can handle VLANs… or however the Unifi access points are connected.
/interface ethernet
set 0 name=ether1-gateway
set 1 name=ether2-local master-port=none
set 2 name=ether3-kids master-port=none
set 3 name=ether4-guest master-port=none
set 4 name=ether5-trunk master-port=none
/interface vlan
add interface=ether5-trunk name=vlan-local-ether5 vlan-id=100
add interface=ether5-trunk name=vlan-kids-ether5 vlan-id=101
add interface=ether5-trunk name=vlan-guest-ether5 vlan-id=102
/interface bridge
add comment=“Local Bridge” name=bridge-local
add comment=“Kids Bridge” name=bridge-kids
add comment=“Guest Bridge” name=bridge-guest
/interface bridge port
add bridge=bridge-local interface=ether2-local
add bridge=bridge-local interface=vlan-local-ether5
add bridge=bridge-kids interface=ether3-kids
add bridge=bridge-kids interface=vlan-kids-ether5
add bridge=bridge-guest interface=ether4-guest
add bridge=bridge-guest interface=vlan-guest-ether5
/ip address
add address=192.168.1.1/24 interface=bridge-local
add address=192.168.2.1/24 interface=bridge-kids
add address=192.168.3.1/24 interface=bridge-guest
/ip pool
add name=pool-local ranges=192.168.1.2-192.168.1.254
add name=pool-kids ranges=192.168.2.2-192.168.2.254
add name=pool-guest ranges=192.168.3.2-192.168.3.254
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1
add address=192.168.2.0/24 dns-server=192.168.2.1 gateway=192.168.2.1
add address=192.168.3.0/24 dns-server=192.168.3.1 gateway=192.168.3.1
/ip dhcp-server
add address-pool=pool-local disabled=no interface=bridge-local name=local
add address-pool=pool-kids disabled=no interface=bridge-kids name=kids
add address-pool=pool-guest disabled=no interface=bridge-guest name=guest
/ip firewall filter
add action=accept chain=input connection-state=established disabled=no
add action=accept chain=input connection-state=related disabled=no
add action=jump chain=input jump-target=input-guest in-interface=bridge-kids
add action=jump chain=input jump-target=input-guest in-interface=bridge-guest
add action=accept chain=input in-interface=bridge-local
add action=drop chain=input
add action=accept chain=forward out-interface=ether1-gateway
add action=drop chain=forward
add action=accept chain=input-guest dst-port=53 protocol=tcp
add action=accept chain=input-guest dst-port=53 protocol=udp
add action=accept chain=input-guest dst-port=67 protocol=udp
add action=accept chain=input-guest dst-port=68 protocol=udp
/ip firewall nat
add chain=srcnat action=masquerade out-interface=ether1-gateway
/ip neighbor discovery
set ether1-gateway discover=no
set ether3-kids discover=no
set ether4-guest discover=no
set bridge-kids discover=no
set bridge-guest discover=no
set vlan-kids-ether5 discover=no
set vlan-guest-ether5 discover=no