Hi Ahmad,
Microsoft Entra Connect password writeback operates strictly via outbound HTTPS (TCP 443) to the Azure Service Bus relay, requiring no inbound ports on your external firewall. To restrict internal dynamic RPC traffic between the sync server and Domain Controllers across internal firewalls, pin static service ports in the registry by setting the DWORD TCP/IP Port under HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters and DCTcpipPort under HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters. Update your internal firewall to allow traffic over TCP 135 for the RPC Endpoint Mapper, your assigned static ports, and standard Active Directory baseline ports (53, 88, 389, 636, and 445). If writeback issues persist—commonly indicated by Event IDs 31014 or 6100—verify that the on-premises AD DS connector account has explicit permissions to Reset Password, Change Password, Write lockoutTime, and Write pwdLastSet on target user objects.
VPHAN