본문으로 건너뛰기

Entra Connect·PTA 외부 통신 검증

HYBRID IDENTITY · RESTRICTED EGRESS

Prove each dependency before changing the production allowlist

Separate Microsoft Entra Connect Sync, Pass-through Authentication and operating-system traffic, then validate observed endpoints with Microsoft documentation and repeatable positive and negative tests.

SourceIsolate
FQDNClassify
TestProve
RuleReview

Executive Summary​

A proxy deny log is evidence that a connection was attempted. It is not, by itself, evidence that the destination is required by Microsoft Entra Connect Sync or Pass-through Authentication (PTA).

In a restricted-egress environment, collect traffic separately for the Connect server, each PTA agent and test clients. Classify every candidate endpoint, verify it against current Microsoft documentation, and prove functional dependency by allowing only that candidate and then blocking it again. This avoids adding browser, Windows, tenant-specific and third-party traffic to a production identity allowlist.

Microsoft currently documents outbound TCP 443 for PTA feature operations and TCP 80 for certificate revocation checks. TCP 8080 is optional for agent status reporting when 443 is unavailable and is not used for user sign-ins. Older Connect or PTA agent versions can require additional ports, so installed versions must be recorded before a firewall decision is made.


한국어 요약​

프록시의 차단 기록은 통신을 시도했다는 뜻이며, 해당 주소를 반드시 허용해야 한다는 근거는 아닙니다. Entra Connect 서버, PTA 서버와 사용자 기기의 기록을 나누고 호출 프로세스와 기능의 실패·복구 여부를 확인하세요.

PTA는 기능 통신에 TCP 443, 인증서 폐기 확인에 TCP 80을 사용합니다. TCP 8080은 443을 사용할 수 없을 때 상태 보고에만 선택적으로 사용합니다. 구버전 에이전트의 추가 포트는 설치 버전별로 확인하세요. PTA와 Microsoft Entra 사이의 송신 TLS 통신에는 중간 검사나 TLS 종료를 적용하지 않습니다.


Scope and Decision Principles​

This guide covers:

  • Microsoft Entra Connect Sync outbound connectivity
  • Microsoft Entra Pass-through Authentication agents
  • Microsoft Entra Connect Health where it is installed
  • explicit outbound proxy and firewall allowlist validation

It does not convert a lab observation into a universal Microsoft endpoint list. Sovereign clouds, optional Connect features, tenant configuration and agent versions can change the required destinations.

Use these decision rules:

  1. Record source IP, hostname, component, agent version, test window and tested function.
  2. Rotate or isolate proxy logs before each test.
  3. Exclude client, browser and unrelated Windows traffic from the identity-component decision.
  4. Treat Microsoft documentation as the baseline, not the final proof for a specific deployment.
  5. Require functional recovery and a repeatable negative test before adding an observed-only endpoint.
  6. Review rules after agent upgrades and Microsoft documentation changes.

Reference Architecture​

The management plane and direct Internet path should be controlled separately. A lab must prove that the tested servers cannot bypass the proxy through another gateway or network adapter.

Endpoint Classification​

ClassificationMeaningProduction treatment
Microsoft documented-requiredCurrent Microsoft documentation explicitly requires it for the installed component or featureCandidate for approval after environment validation
Lab-observed and validatedRecovery and negative tests prove a functional dependencyAdd with evidence, owner and review date
Observed but not validatedAppears in logs but dependency is not provenKeep blocked or test in isolation
OS/security dependencyWindows Update, certificate trust, Defender, NCSI or similarGovern under the server platform baseline
Tenant-specificCustom domains or tenant servicesValidate with the tenant and application owner
Third-party/noiseBrowser, telemetry, advertising or unrelated softwareExclude from the identity allowlist

Microsoft-Documented PTA Baseline​

Destination or purposePortNotes
PTA feature communicationTCP 443All outbound feature operations
Certificate revocation listsTCP 80TLS certificate validation
Agent status fallbackTCP 8080Optional when 443 is unavailable; not used for sign-ins
*.msappproxy.netTCP 443PTA cloud communication
*.servicebus.windows.netTCP 443PTA cloud communication
login.windows.net and login.microsoftonline.comTCP 443Initial agent registration
autologon.microsoftazuread-sso.comThrough the outbound HTTP proxyRequired when Seamless SSO is used; Microsoft says to list it explicitly
Microsoft-documented CRL and OCSP destinationsTCP 80Use the current list in the PTA quickstart

Older versions can require TCP 5671, 8080, 9090–9091, 9350, 9352 and 10100–10120. Do not permanently allow or block these ports based only on a generic table. Record the installed Entra Connect, PTA and Connect Health versions, then apply the documentation that matches those versions.

TLS inspection exception: Avoid inline inspection and TLS termination on outbound TLS traffic between the PTA agent and Microsoft Entra endpoints. Apply the exception narrowly to the documented agent traffic rather than disabling security monitoring broadly.

Proxy Configuration Boundaries​

Connect Sync also has an authentication migration deadline: upgrade to 2.6.84.0 or later and configure application-based authentication by April 7, 2027. Microsoft warns that synchronization stops after that date if both requirements are not met. This is a Connect Sync requirement, not a PTA agent version number. Include the authentication path and registration/update traffic in the egress tests; see current Connect prerequisites.

Microsoft Entra Connect installation and Sync are .NET applications. Microsoft documents the machine-level .NET Framework machine.config proxy setting for these components. Back up the file, validate its XML, restart the relevant service in a controlled window, and recheck the setting after change management.

For Connect Sync, set the proxy connection idle timeout to at least 6 minutes. Microsoft Entra ID can take up to 5 minutes to answer a directory-synchronization request. A shorter proxy timeout can interrupt that request even when the destination is allowed; check this separately from firewall denies. See Connect connectivity prerequisites.

The PTA agent runs as a Windows service and can require its own service configuration when WPAD is not available. Do not assume that a user-level browser proxy or WinHTTP setting automatically covers the PTA service context.

For an authenticated Connect Sync proxy, the service account must be a domain account configured through custom installation. The installation wizard normally uses the signed-in user's credentials, while the Configure page and sync engine use the service account. A successful browser test therefore does not establish that synchronization can authenticate to the proxy. See Connect proxy authentication requirements.

The XML below follows the PTA service proxy example. Apply it to the documented agent service configuration; do not assume that editing the Connect Sync machine.config also configures PTA. Use placeholders in operational documentation:

<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy
usesystemdefault="true"
proxyaddress="http://&lt;proxy-fqdn&gt;:&lt;port&gt;"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>

Never publish real proxy addresses, internal hostnames, tenant domains or credentials in shared runbooks.

Validation Workflow​

PhaseActionRequired evidence
1. BaselineBlock all non-approved egress and prove that no direct path existsRoute, adapter, DNS and firewall test results
2. IsolateTest one source and one function in a defined windowSource, component, version and timestamps
3. ObserveCollect proxy allow and deny eventsSanitized FQDN, port, method and count
4. ClassifySeparate identity, OS, tenant and third-party trafficClassification and rationale
5. ValidateAllow only one candidate and repeat the failed functionFunctional recovery evidence
6. Negative testBlock the candidate again and repeatSame function fails in the expected way
7. ApproveAdd the minimum ruleOwner, approver, expiry or review date
8. MonitorRecheck after upgrade or feature changeDrift report and updated matrix

Identify the agent that processed the sign-in​

Multiple PTA agents provide availability, not deterministic load balancing. Another agent can process a request while the agent under test is blocked. In an isolated test environment, correlate the sign-in log's Authentication Method Detail PTA AgentId with the installed agent's ID before deciding whether the blocked endpoint is unnecessary. The PTA FAQ documents this comparison.

Do not disconnect all production agents to run a negative test. Password hash synchronization does not automatically take over when PTA becomes unavailable. Keep the test environment and production authentication path separate.

Production Egress Rule Matrix​

The final rule set should contain, at minimum:

FieldPurpose
Source and componentIdentifies Connect Sync, PTA or Connect Health
FQDN or documented wildcardDefines the narrow destination scope
Protocol and portPrevents broad any-port rules
PhaseInstallation, registration, runtime, update or recovery
Microsoft evidenceCurrent official documentation URL and review date
Observed evidenceSanitized proxy event and test window
Dependency resultRecovery and negative-test outcome
TLS inspection policyExplicit exception where Microsoft requires it
Owner and review dateSupports lifecycle management

Common Failure Modes​

  • Mixing client and server traffic, then treating every domain as an identity dependency
  • Allowing a domain because it appeared frequently in deny logs
  • Using expiring screenshot links as operational evidence

Microsoft References​