Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Xray-Script

Simple one-click script for installing and managing Xray-core on Ubuntu.
Automatically sets up the protocol, obtains a TLS certificate, and generates connection links and QR codes.


⚑ Quick Install

bash <(curl -sSL https://raw.githubusercontent.com/SpecFlowdev/Xray-Script/main/xray.sh)

Requires Ubuntu 20.04 / 22.04 / 24.04 and root access


πŸ“‹ Supported Protocols

Protocol Transport Description
Trojan WS + TLS WebSocket over TLS
Trojan TCP + TLS Direct connection, low overhead
VLESS WS + TLS WebSocket over TLS
VLESS TCP + TLS Direct connection, low overhead

πŸ›  Features

  • Auto install β€” system packages, UFW, Xray, TLS certificate in one run
  • Auto TLS β€” Let's Encrypt via acme.sh with auto-renewal
  • Certificate management β€” dedicated menu, expiry check, issuance
  • Named users β€” each user has a name, easy to manage
  • User management β€” add, remove, show QR for one or all users
  • Protocol switching β€” change protocol from menu without reinstalling
  • WARP β€” Cloudflare WARP as outbound, route all traffic or specific domains
  • Multihop β€” chain two servers, Russian traffic goes direct, rest via second server
  • Short command β€” after install just type xray-manage

πŸ“± Compatible Clients

Platform Client
Android v2rayNG
iOS Shadowrocket, Karing
Windows v2rayN, Hiddify
macOS Hiddify, Karing
Linux v2rayN, NekoBox

πŸ–₯ Management

xray-manage

Menu

Domain:    vpn.example.com
Protocol:  TROJAN_WS_TLS
Users:     3
Xray:      active

── Users ──
1.  List all users
2.  Add user
3.  Remove user
4.  Link & QR for one user
5.  Show all links & QR

── Protocol ──
6.  Install or reinstall protocol
7.  TLS Certificates

── Extra ──
8.  WARP (bypass blocks)
9.  Multihop (server chain)

── System ──
10. Restart Xray
11. Status & logs
12. Update script

πŸ”— Multihop

Chain of two servers:

Client β†’ Server 1 β†’ Server 2 β†’ Internet
  • πŸ‡·πŸ‡Ί Russian domains and IPs β†’ Server 1 directly (fast)
  • 🌍 Everything else β†’ Server 2 (via chain)

Both servers are installed with the same script.


☁️ WARP

  • Route all traffic through Cloudflare WARP
  • Route only specific domains (e.g. openai.com)

πŸ“‹ Requirements

  • Ubuntu 20.04 / 22.04 / 24.04
  • Root access
  • Open ports: 22, 80, and the port for Xray
  • Domain with an A record pointing to your server IP

πŸ“„ License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages