Reality is a new technology solution based on Xray-core, which allows your traffic to appear as if you are accessing any foreign website, rather than using a proxy service. This effectively helps to avoid identification and blocking.
The principle of Reality is to use the XTLS protocol and Vision technology to establish a real TLS connection between the client and server, sending the target website you want to access as the Server Name Indication (SNI) to the server. Upon receiving the SNI, the server initiates a real TLS connection to the target website and forwards its response to the client. From the outside, it appears as if you are directly accessing the target website.
In this article, I will share how I installed and used Reality on a VPS with very low configuration.
My server:
RAM | Storage |
---|---|
70MB | 160MB |
System Selection#
First, you need to choose a suitable operating system. Although debian
consumes fewer resources than Red Hat-based Linux distributions like centos
, it is still not lightweight and efficient enough for such a low-configured VPS. Therefore, I chose alpine linux
.
Installing Reality#
One-click installation command:
apk update && apk add bash curl wget unzip && wget https://raw.githubusercontent.com/lgdlkq/32m/main/xr_install.sh -O xr_install.sh && bash xr_install.sh
During the process, you only need to input the port you want to use.
Usage#
Copy the generated sharing link to a client that supports Reality, or use cat
to view the clash meta configuration file.
This method is from: Automatically set up the reality protocol on a 32MB memory alpine VPS