Fix the MS DTC RPC port range for firewalls
Restrict the RPC ports used by Microsoft Distributed Transaction Coordinator (MS DTC) to a fixed range so that firewall rules can be written for it.
Microsoft Distributed Transaction Coordinator (MS DTC) uses dynamic RPC ports by default, which makes firewall rules difficult to write. Fixing its RPC traffic to a port range, set in the Rpc registry key, makes it possible to open that range in the firewall.
Registry values
Set the following values under HKEY_LOCAL_MACHINE\Software\Microsoft\Rpc:
| Value name | Type | Data | Purpose |
|---|---|---|---|
Ports |
REG_MULTI_SZ | 5000-5020 |
RPC port range |
PortsInternetAvailable |
REG_SZ | Y |
Set as in the source |
UseInternetPorts |
REG_SZ | Y |
Set as in the source |
References
Notes
- The source wrote the type as
REG_MULTI-SZ; the registry type isREG_MULTI_SZ. - The source does not say whether a restart is needed or which firewall rules to create for the range. Check the Microsoft article before changing the firewall.