Configuration Reference

V2Ray Glossary

Look up terms by configuration stage: distinguish protocols, transports and cores, then see how clients capture traffic, match outbounds and resolve domains. Knowing which layer a setting belongs to helps identify the field to change.

01Connection Settings

Protocols & Transports

VMess

VMess is a proxy protocol in the V2Ray ecosystem that uses a user ID and time-based authentication data. It can be paired with different transports, so the protocol name alone does not tell you whether WebSocket is in use. If a connection fails, check the configuration on both ends and the system clock before assuming the network is down.

VLESS

VLESS is a proxy protocol. Node configurations typically include a UUID as the user ID. VLESS does not inherently mean TLS; encryption=none is a protocol-level setting and does not, by itself, tell you whether a transport security layer protects the connection. When reviewing a node configuration, check the protocol, transport and security settings separately.

Trojan

Trojan is a proxy protocol that typically uses password authentication over a TLS connection. The password authenticates the proxy protocol, while certificate validation confirms the identity of the peer; one cannot replace the other. If logs show an error during the TLS handshake, check the certificate, hostname and system clock before checking the password.

REALITY

REALITY is a transport security mechanism supported by Xray and commonly used with VLESS. If a client shows “VLESS · REALITY,” the first item is the proxy protocol and the second is the security setting. If these fields are blank or ignored after import, confirm that the running core and its version support the configuration.

Transport

The transport determines how proxy protocol traffic is carried over a connection. Common options include TCP, WebSocket and gRPC. Even two VLESS nodes may require different fields if they use different transports. WebSocket paths and gRPC service names are transport-specific settings and cannot be used interchangeably.

02Runtime Components

Cores & Ecosystem

Proxy core

The core handles inbound connections, applies routing rules and establishes outbound connections. A graphical client mainly imports subscriptions, edits settings and manages the core process; the client version and core version are separate. If a protocol option is missing, check whether the client can generate its configuration and whether the core can read and run it.

Xray

Xray is an open-source proxy core with its own release cycle and supports features maintained by the project, including REALITY. It shares some configuration concepts with V2Ray, but fields with the same name are not guaranteed to behave identically across implementations or versions. When troubleshooting a configuration load failure, check the core and version shown in the runtime logs.

V2Fly

V2Fly is an open-source community project that continues the work of Project V and maintains the V2Ray implementation. In a client, v2fly usually refers to this core implementation, not a proxy protocol. Before following an older guide, check which implementation and version it targets, then verify the configuration fields.

03Client Setup

Clients & Subscriptions

Subscription

A subscription lets a client fetch and update a set of node configurations. Importing the URL and refreshing the list are separate actions. If the list is still empty after saving, make sure the right group is selected and that the client supports the response format. Subscription URLs may contain access credentials, so do not share the full link when troubleshooting.

See how to import a subscription

Node

A node is a connection profile in a client’s list, usually containing the server address, port, protocol and transport settings. Its display name is only for identification and does not affect the connection; entries with the same name may use different ports. If a connection fails after a subscription update, check the settings of the node currently selected.

Real connection latency

Real connection latency is usually measured by sending a request to a test URL through the selected node; it is not the same as the round-trip time to the server. The test URL’s response, connection reuse and the client’s timing method can all affect the result. To compare two nodes, use the same test URL and method where possible.

System proxy

The system proxy is a set of proxy settings provided by the operating system. It affects applications that read and follow those settings. An application with its own network settings may use a separate proxy or connect directly. If one app works and another does not, first check whether both use the system settings rather than changing the node.

TUN mode

TUN mode receives IP traffic routed by the system through a virtual network interface, so apps do not need to read the system proxy settings themselves. The traffic it captures still depends on the routing table, exclusions and permissions. If local devices become unreachable after enabling it, check whether the local subnet is being routed through the virtual interface.

04Matching & Outbounds

Routing & Traffic Rules

Routing rule

Routing rules map conditions such as domains, destination IPs or inbound tags to a specified outbound. V2Ray and Xray typically check rules in configuration order and use the first match. If traffic matches unexpectedly, check both the rule order and whether the core is matching against a domain or an IP address.

See how rule matching and traffic routing work

Traffic routing

Traffic routing sends different connections to different outbounds based on rules, such as direct, proxy or block. direct and proxy are often used as outbound tags, but the tag name itself does not determine what happens. To find out how a connection is routed, check the match result and the outbound configuration associated with that tag.

GeoIP

GeoIP rules match destinations against IP address ranges in a data file. These ranges may represent geographic groupings or private address space. geoip:private refers to the private IP range in the data, not a domain list. If a connection starts with a domain name, matching its IP also depends on the routing DNS strategy.

GeoSite

GeoSite is domain rule data organized by labels, and entries can use different domain-matching methods. geosite:cn refers to the collection named cn; it does not match every domain ending in .cn. If rule matches change, check the data file version as well as the configuration order.

05Name Resolution

DNS & Networking

DNS resolution

DNS resolution looks up records associated with a domain, such as the IPv4 or IPv6 address used to establish a connection. Queries may come from an app, the operating system or the proxy core, and each may use a different resolver. To troubleshoot, first identify which layer sent the query, then adjust its DNS settings.

DoH

DoH sends DNS queries over HTTPS, protecting them in transit between the client and the DoH resolver. Enabling DoH only affects queries that use that resolver; it does not take over DNS for other apps. If the resolver’s address is itself a domain, also consider how its address is resolved on the initial connection.

FakeDNS

FakeDNS temporarily assigns a synthetic IP to a domain and records the mapping. When an app connects to that address, the component capturing the traffic can use the mapping to restore the domain for routing. If DNS returns a synthetic address but the subsequent connection is not handled by the same mechanism, the app may be unable to connect.

DNS leak

A DNS leak occurs when queries do not use the expected resolver or network interface; seeing multiple resolvers does not by itself confirm a leak. Application traffic and DNS queries may take different paths, and browsers may use their own secure DNS setting. Check the app’s DNS settings, the system’s default resolver and the core logs.

06Handshakes & Authentication

Security & Encryption

TLS

TLS establishes an encrypted connection through a handshake and protects the integrity of data in transit. In common certificate-based authentication setups, the client also verifies the server’s identity. Reaching the server’s port only confirms that the underlying connection is reachable; it does not mean the TLS handshake or subsequent proxy authentication succeeded.

SNI

SNI is an extension that lets a client specify the target hostname during the TLS handshake, allowing the server to select a site and certificate. The server address is used to establish the network connection, while SNI is used during the handshake; they do not have to be the same. If the names do not match, check the hostname the client expects to validate against the names covered by the peer’s certificate.

Certificate validation

Certificate validation checks the trust chain, validity period and whether the certificate matches the hostname expected for the connection. An incorrect system clock can make a currently valid certificate appear expired or not yet valid. If an error occurs, check the date, trust chain and hostname settings first rather than disabling validation to hide the cause.