XRay: Difference between revisions

From Elvanör's Technical Wiki
Jump to navigation Jump to search
Created page with "= Concepts = * XRay is an advanced VPN with a focus on bypassing Internet censorship. * It's a good VPN solution for countries with Internet restrictions. * You must install the classic pair of client and server. * For clients, V2rayN is a good choice for desktop OSes (Linux, Windows). For Android, V2rayTun on the Google store is fine. * For servers, the 3x-ui docker image (bundling the server / proxy component with a web interface) is what I used. = Setting up the ser..."
(No difference)

Revision as of 15:45, 7 July 2025

Concepts

  • XRay is an advanced VPN with a focus on bypassing Internet censorship.
  • It's a good VPN solution for countries with Internet restrictions.
  • You must install the classic pair of client and server.
  • For clients, V2rayN is a good choice for desktop OSes (Linux, Windows). For Android, V2rayTun on the Google store is fine.
  • For servers, the 3x-ui docker image (bundling the server / proxy component with a web interface) is what I used.

Setting up the server

  • Clone this repository: https://github.com/MHSanaei/3x-ui. As explained, this is a web interface also containing the server part, in a self-contained Docker image.
  • Run inside the directory: docker compose up -d
  • The default port for the web interface is 2053, and login/password is admin/admin. It's HTTP by default, not HTTPs.
  • It's easy to create a vless configuration on the web interface. Every setting can be left to default; for the security part I chose Reality, and you need to generate a public key / private key.
  • The port for the interface AND the port for the vless configuration (for instance, 4443) both need to be opened if you have a firewall. For Rocky Linux 9.3:
firewall-cmd --permanent --add-port=2053/tcp
firewall-cmd --permanent --add-port=4443/tcp
firewall-cmd --reload

Setting up the client

  • This is super easy; just copy the vless link from the 3x-ui interface into the client. It looks like:
vless://7ef83dc3-79ab-4169-8a58-54d382bef4ee@valmar.elvanor.net:PORTNUMBER?type=tcp&security=reality&pbk=PUBLICKEY&fp=chrome&sni=www.bing.com&sid=7db81f&spx=%2F#valmar-elvanor