I know that in order to use Profile Manager's MDM service I need to open ports 2195, 2196, 5223. From documentation I can check which IP Addresses are used when using Apple Push Notification Service:
The IP address range for the push service is subject to change; the expectation is that providers will connect by hostname rather than IP address. The push service uses a load balancing scheme that yields a different IP address for the same hostname. However, the entire 17.0.0.0/8 address block is assigned to Apple, so you can specify that range in your firewall rules.
This is for APNS, though. Are there any additional IP Addresses that Apple uses when running MDM service (Profile Manager, Enrollment, Device Management) that I might have missed?