ULTIMATE AUTOSCRIPT

SSH XRAYS Websocket Multiport (BETA)

Debian 9/10/11 Ubuntu 18/20/22 Xray Core Websocket Multiport

🚀 Quick Installation

apt install -y wget screen && wget -q https://script.nexajs.com/main.sh && chmod +x main.sh && screen -S install ./main.sh
apt install -y wget screen && wget -q https://script.nexajs.com/setup.sh && chmod +x setup.sh && screen -S install ./setup.sh

For IPv4 + IPv6 support

wget -q -O /usr/sbin/updatemenu "https://script.nexajs.com/update/updatemenu.sh" && chmod +x /usr/sbin/updatemenu && updatemenu

Update menu command

🔄 System Reinstallation

wget https://script.nexajs.com/reinstall.sh && chmod +x reinstall.sh && ./reinstall.sh ubuntu 20.04

Use this command to reinstall the system image if not compatible

📋 System Requirements

Supported Distributions

  • Debian 9 (Stretch)
  • Debian 10 (Buster)
  • Debian 11 (Bullseye)
  • Ubuntu 18.04 LTS
  • Ubuntu 20.04 LTS

System Preparation

apt update -y && apt upgrade -y && apt dist-upgrade -y && reboot

For Debian systems

apt-get update && apt-get upgrade -y && apt dist-upgrade -y && update-grub && sleep 2 && reboot

For Ubuntu systems

🔧 Port Information

SSH & DNS

  • Open SSH: 443, 80, 22
  • DNS (SLOWDNS): 443, 80, 53
  • Dropbear: 443, 109, 80
  • Dropbear Websocket: 443, 109

VPN & Protocols

  • OpenVPN SSL: 443
  • OpenVPN TCP: 443, 1194
  • OpenVPN UDP: 2200
  • UDP Custom: 1-65535

Web Services

  • Nginx Webserver: 443, 80, 81
  • Haproxy Loadbalancer: 443, 80
  • DNS Server: 443, 53
  • DNS Client: 443, 88

XRAY Services

  • XRAY Vmess TLS: 443
  • XRAY Vmess gRPC: 443
  • XRAY Vless TLS: 443
  • XRAY Vless gRPC: 443
  • Trojan gRPC: 443
  • Shadowsocks WS: 443

⭐ Additional Features

⚙️ Cloudflare Settings

Recommended Configuration:

  • SSL/TLS: FULL
  • SSL/TLS Recommender: OFF
  • GRPC: ON
  • WEBSOCKET: ON
  • Always Use HTTPS: OFF
  • UNDER ATTACK MODE: OFF

⚠️ Known Issues

  • Squid problem (currently disabled)
  • GRPC not working in some configurations
  • Certificate trust issues on some systems
apt-get install ca-certificates

Fix for "ERROR: The certificate of 'raw.githubusercontent.com' is not trusted"

🔗 Credits & Resources