How Tor Selects Entry Guard Nodes

Tor protects user anonymity by routing internet traffic through a three-node circuit, where the entry guard serves as the crucial first hop. The selection of an entry guard is a two-tier process: Directory Authorities first evaluate and assign the official “Guard” flag to qualifying relays, and the Tor client then chooses and retains a small, persistent set of these relays based on bandwidth, network diversity rules, and reliability metrics.

Directory Authority Flag Assignment

Before a relay can become an entry guard, Tor’s Directory Authorities must evaluate its performance and assign it the Guard flag. The relay must satisfy several strict prerequisites:

Client-Side Guard Selection Process

Once relays receive the Guard flag in the network consensus, individual Tor clients select which specific guards to use:

Guard Persistence and Rotation

To defend against correlation and profiling attacks, Tor clients do not switch entry guards for every new connection. Instead, the client selects a small set of primary and fallback guards (defined by the Guard algorithm) and keeps them for roughly 120 to 180 days.

By pinning the user’s entry point to a long-lived, stable node, the Tor network significantly limits the probability that an adversary will successfully monitor both the entry and exit points of a user’s connection over time. If the primary guard becomes temporarily unreachable, the client falls back to a secondary guard from its persistent list until the primary returns online.