Thank you for posting in Microsoft Q&A forum.
Based on my understanding, UDP 500 is an assigned port for ISAKMP / Internet Key Exchange. It’s not used directly by OSD, but the client may be attempting to failover connect via IPSec if one of the other required ports is blocked.
Could we know which error are you getting when trying to deploy an OS?
Here is a similar case may for your to refer to:
https://social.technet.microsoft.com/Forums/en-US/4d32e2ac-4981-4088-82e6-4da3adf0d729/unable-to-deploy-os-as-udp-500-is-blocked-on-firewall?forum=configmanagerosd
Have a good day!
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.