Restricting access to a NAS