The easiest option is Synology or Qnap. I personally prefer Synology in terms of usability. I would record for a longer period. 24 hours is too short. 3 days to 1 week. Storage space is not expensive. With 4 cameras and 4k, you have to choose an appropriate NAS. Especially since you probably want to use it for other things as well. Get a 48-port switch right away. You can connect the NAS with more than one port. Cameras and recording device should be in a separate network. At least virtually (VLAN). Then the NAS in both networks. For this, you need a router and switch that support VLANs. Or the NAS takes over this task. So router and switch for the normal network and a switch for cameras and one port from the NAS. The NAS must then act as a router in the camera network. The data should also be backed up externally. Otherwise, they might be gone in case of theft. If you only want the NAS because of the cameras, you could also use a network recorder from, e.g., Axis. They also come with a switch.