Configuration Reference / Glossary
V2Ray Glossary
Find client options and configuration fields by category. Protocols define how connections communicate, core engines determine which configuration they support, and routing rules select the outbound. These settings are not interchangeable.
Protocols & Transports
A node configuration can include a proxy protocol, a transport, and connection security settings. When troubleshooting a failed handshake, check each of these separately rather than looking only at the protocol name.
- VMess
- VMess is a proxy protocol in the Project V ecosystem. It typically identifies users with UUIDs and includes authentication and encryption mechanisms. The protocol requires the system clocks at both ends to be in sync. If the address and user ID are correct but authentication still fails, check whether the device clock is synchronized.
- VLESS
- VLESS is a proxy protocol that identifies users with UUIDs. Common configurations set the protocol field
encryptiontonone, with TLS or REALITY securing the connection; this does not disable encryption for the entire connection. If the configuration also includes a flow control field, make sure it matches at both ends.
- Trojan
- Trojan is a proxy protocol typically run over TLS and authenticated with a password configured on the server. A correct password does not guarantee a successful TLS handshake. If the log reports a certificate name mismatch, check that the server name used by the client matches a name covered by the certificate.
- REALITY
- REALITY is a connection security mechanism provided by Xray. It is often paired with VLESS and is not a proxy protocol on the same level as VLESS. After importing a node, make sure the client's core engine supports the relevant fields. Parameters such as the server name and short ID must match the configuration provided for the node.
- Transport
- Transport defines how proxy data is carried between the two ends. Common options include WebSocket and gRPC. Even with the same proxy protocol selected, different transport settings can prevent the two ends from communicating. WebSocket paths and gRPC service names belong to their respective transport configurations and cannot be used interchangeably.
Core Engines & Ecosystem
The interface shows the client name, but errors in the log may come from the core engine. To check configuration compatibility, look at the core engine actually running and its version, not just the operating system the interface runs on.
- Project V
- Project V refers to an ecosystem of open-source network proxy tools and related components, with V2Ray as its core program. When documentation uses Project V to describe the project's history, it is not referring to a specific GUI client or recommending a particular protocol.
- V2Fly
- V2Fly is a community project that continues the development of V2Ray Core. In documentation, V2Fly or V2Ray Core usually refers to the core engine and its configuration system, not the Android GUI client v2flyNG. Check the documentation for the core engine currently in use when looking up fields.
- Xray
- Xray is an open-source core developed from V2Ray code and includes features such as REALITY. Xray and V2Fly share some protocols and configuration structures, but using the same protocol name does not mean all transport options and fields are interchangeable. Before switching, check the node's protocol, transport, and security settings.
- Core engine
- A core engine reads configuration and handles protocol processing, connection forwarding, and route matching. A client saving settings does not mean the core engine has accepted the generated configuration. If startup fails, check the first specific error in the log and determine whether it points to an unknown field, a missing data file, or a local port conflict.
- GUI client
- A GUI client manages nodes, subscriptions, and interface settings, then generates configuration for the selected core engine. v2rayN is for desktop, while v2rayNG and v2flyNG are for Android. Support for subscription formats and custom configuration varies between clients. Importing the same node into different clients does not mean routing settings will transfer too.
Routing
First check whether the core engine sees a domain or an IP address, then check rule order and outbound tags. If a correctly written rule is not matching, these three areas are more useful to check first than the outbound name itself.
- Routing rules
- Routing rules select an outbound based on conditions such as domain, address, or port. The core engine typically uses the first matching rule, from top to bottom. Put exceptions for individual domains before broader rules that would otherwise match them. Whether a domain connection is resolved before matching an IP rule depends on
domainStrategy.
- Traffic routing
- Traffic routing sends connections to different outbounds, such as direct, proxy, or block, according to rules. It only handles traffic that reaches the relevant core engine. If an app does not use the local proxy and is not routed through a virtual network interface, changing the core's rules will not change the app's connection path.
- GeoIP
- GeoIP matches against collections of IP ranges organized by country, region, or address type.
geoip:privateis often used to identify private or other non-public IP ranges; the exact coverage depends on the data file. This matches IP addresses, not domain suffixes.
- GeoSite
- GeoSite references domain collections by category for domain-based routing rules. For example,
geosite:cnrefers to thecncategory in the data file; it does not simply match every domain ending in.cn. Changing the data file may change whether a category exists and which domains it includes.
- Outbound tag
- An outbound tag is the name assigned to an outbound in the configuration. Routing rules refer to it using
outboundTag.direct,proxy, andblockare common naming conventions; behavior is determined by the corresponding outbound. If you rename a tag, update every rule that refers to it.
DNS & Network Stack
Resolving a domain and connecting to its destination are two separate processes. An app receiving a DNS response only confirms that the query returned a result; it does not prove that the subsequent connection used the intended outbound.
- DNS
- DNS is the system for looking up domain records. Common queries return IPv4 or IPv6 addresses. Queries can come from an app, the system resolver, or the proxy core engine. Before changing DNS settings in a client, first identify which layer is resolving the domain. Otherwise, changing the core's upstream resolver will not affect queries made independently by an app.
- FakeDNS
- FakeDNS assigns virtual addresses to domains and keeps a mapping between each address and domain for subsequent routing. The returned address is not the real server address, so subsequent connections must return to a processing path that can identify the mapping. If a query uses FakeDNS but the connection is not captured, the domain may resolve successfully while remaining unreachable.
- DNS leak
- A DNS leak occurs when a query takes an unintended route or is sent to an unexpected resolver. To determine whether a leak has occurred, compare the actual resolver and query path with the configured targets. A browser's encrypted DNS may operate independently of system resolver settings, so encryption alone does not show whether a query followed the intended path.
- TUN mode
- TUN mode uses a virtual network interface and system routes to capture IP traffic for processing by the client's network stack and rules. Unlike a system proxy, it does not require apps to read proxy settings. Which connections it captures still depends on system permissions, route scope, and exclusions; it does not mean all connections use the proxy outbound.
- DNS routing
- DNS routing selects different resolvers for queries based on the domain or other configuration conditions. For example, internal domains can be sent to a LAN DNS server that can resolve them, while other queries go to the default upstream. Resolver selection and an app connection's outbound are separate decisions, so check them independently when troubleshooting.
Clients & Subscriptions
Importing a subscription, selecting a node, and routing an app through the proxy are three separate steps. Test results can show whether one part is connected, but they do not replace checking the app's actual connection path.
- Subscription
- A subscription lets a client retrieve or update a set of nodes, usually through a link. After adding one, you generally need to update it and select a node; the list may change when refreshed. Subscription links may contain access credentials, so avoid pasting them into support tickets or public screenshots.
- Node
- A node is a connection configuration, typically containing a server address, port, protocol, authentication parameters, and transport settings. A note in the list is only for identifying an entry; nodes with the same name may point to different addresses. When replacing a node, check its actual parameters rather than comparing display names alone.
- System proxy
- A system proxy provides a proxy address and port through the operating system for apps that follow those settings. Apps with their own proxy settings or that connect directly may not use it. If a browser works but other apps do not, first check whether those apps follow system settings, then check the local listening port.
- Latency
- Latency is the time taken by a network operation. What a client reports depends on the specific test method. ICMP round-trip time, TCP connection time, and application-level request time measure different stages, so their values are not directly comparable. When comparing nodes, use the same test method, target, and network conditions whenever possible.
- Proxy latency test
- A proxy latency test typically sends a request through a node to a test URL and measures the response time along that test path. Results are also affected by the test URL, handshake, and timeout settings, and cannot be used to estimate download speed. If only the test fails, first check whether the test URL is reachable, then distinguish a node problem from an issue with the target site.
Setup & Troubleshooting
Haven't imported a subscription or routed an app through the proxy yet? Start with Quick Start. To check rule order, DNS upstreams, or TUN routing scope, see Advanced Configuration. If the client starts but cannot connect, find the matching symptoms in Troubleshooting.