I have a video covering pfsense and UniFI with VLAN setups for 2022. For XCP-NG just make sure the ports from the UniFi switch to the XCP-NG servers are set to “ALL” and then define the interfaces in XCP-NG with the proper VLAN tag to separate out the traffic.