├── README.md ├── img ├── abc ├── settingambar1.jpg ├── settingambar2.jpg ├── settingambar3.jpg ├── settingambar4.jpg ├── settingambar5.jpg └── settingambar6.jpg ├── install-tools.sh ├── install-xray.sh ├── menu ├── add-akun.sh ├── auto-pointing.sh ├── cek-port.sh ├── delete-akun.sh ├── restart-xray.sh ├── updatedll.sh └── xmenu.sh └── setup.sh /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 | 5 | # XRAY MANTAP 6 | - ***Script XRAY Multi Port 443/80 By SL*** 7 | - ***SCRIPT UNTUK MEMBUAT SERVER VPN*** 8 | 9 |

Hayuk

10 | 11 |

12 | 13 |

14 |
15 |

Contact me:
16 | 17 |

Support me:
18 | 19 |

20 |
21 | # 22 | 23 | # FITUR XRAY TLS 24 | - TROJAN WS : **443** 25 | - TROJAN GRPC : **443** 26 | - SHADOWSOCKS WS : **443** 27 | - SHADOWSOCKS GRPC : **443** 28 | - VMESS WS : **443** 29 | - VMESS GRPC : **443** 30 | - VLESS WS : **443** 31 | - VLESS GRPC : **443** 32 | 33 | # FITUR XRAY HTTP 34 | - TROJAN WS : **80** 35 | - TROJAN GRPC : **80** 36 | - SHADOWSOCKS WS : **80** 37 | - SHADOWSOCKS GRPC : **80** 38 | - VMESS WS : **80** 39 | - VMESS GRPC : **80** 40 | - VLESS WS : **80** 41 | - VLESS GRPC : **80** 42 | 43 | # Aplikasi VPN (Android Only) 44 | * Link: 45 | https://github.com/fisabiliyusri/XRAY-FOR-ANDROID 46 | 47 | 48 | # OS 49 | - Debian 9 (HVM) 50 | - Debian 10 51 | * Berhasil di gunakan di vps aws dan os debian 9 hvm 52 | * untuk vps isp yg lain saya tidak tau, dan os yg lain juga saya tidak tau wkwk 53 | 54 | # Syarat && Bahan Untuk Menggunakan Script Ini 55 | - Wajib Punya VPS 56 | - Wajib Punya Akun Cloudflare 57 | - Wajib Punya Domain Punya Kamu Sendiri 58 | - ***Jika semua syarat dan Bahan sudah terpenuhi ,silahkan di coba script ini*** 59 | 60 | # Settingan Di Cloudflare 61 | 1. Buat VPS Baru 62 | 2. Pointing Dulu Domain Kamu, Kalo sudah pernah di pointing 63 | - Pergi ke dash.cloudflare.com,lalu pilih domain punya kamu, di tab TLS/SSL lalu pilih Overview, di tab TLS/SSL Harus pilih yang FULL 64 | - FULL (Encrypts end-to-end, using a self signed certificate on the server)✅ 65 | ![settinggambar1](https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/img/settingambar1.jpg) 66 | ![settinggambar2](https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/img/settingambar2.jpg) 67 | ![settinggambar3](https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/img/settingambar3.jpg) 68 | - Lalu pilih Edge Certificates disini kamu harus matikan Always Use HTTPS (Harus Mati/OFF)❌ 69 | ![settinggambar4](https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/img/settingambar4.jpg) 70 | - Buka tab Network di cloudflare kamu aktifkan WebSocket nya ✅ 71 | ![settinggambar5](https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/img/settingambar5.jpg) 72 | ![settinggambar6](https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/img/settingambar6.jpg) 73 | 3. Setting Di Cloudflare Selesai 74 | # Cara Install Script Nya 75 | - Login ke VPS kamu ( wajib pake user ***root***) 76 | 1. MASUK KE VPS LALU KETIK 77 | 78 |

79 | 80 |

81 | 82 | 83 | ``` 84 | sudo su 85 | ``` 86 | 87 | 2. Update Dulu VPS NYA 88 | 89 |

90 | 91 | 92 | 93 | 94 |

95 | 96 | ``` 97 | apt-get update && apt-get upgrade -y && update-grub && sleep 2 && reboot 98 | ``` 99 | - Otomatis Akan Reboot/ Hidupkan Ulang 100 | 3. Login Lagi Ke VPS NYA 101 | 4. Masukan Nama Domain Kamu, domain harus aktif 102 | - contoh nama domain punya aku,silahkan ganti dengan punya kamu 103 | ``` 104 | cat >/root/domain </etc/xray/domain < 124 | 125 |

126 | 127 | ``` 128 | xmenu 129 | ``` 130 | 7. DONE / SELESAI 131 | 132 | # Info Perbaiki / FIX 133 | - ***NOTE*** 134 | - jika xray dan nginx mengalami error ! 135 | - ketik 136 | ``` 137 | certv2ray 138 | ``` 139 | lalu ketik 140 | ``` 141 | restart-xray 142 | ``` 143 | 144 | # INFO KODE SCRIPT 145 | - xmenu (untuk menampilkan menu 146 | - updatedll (untuk update sc) 147 | - restart-xray (hidupkan ulang xray) 148 | - certv2ray (Perbarui Sertifikat / Update Certificate) 149 | 150 | # Contoh Cara Pointing Domain ke Cloudflare 151 | - Link: 152 | ``` 153 | https://youtu.be/Pwfvwy5Ghcw 154 | ``` 155 | # Cara Pointing Subdomain Secara Otomatis Di Cloudflare Menggunakan Script 156 | - edit dulu script auto-pointing nya 157 | ``` 158 | nano /usr/bin/auto-pointing 159 | ``` 160 | - contoh punya aku 161 | - tinggal ubah saja yg mantapxsl.my.id menjadi domain punya kamu 162 | ``` 163 | DOMAIN=mantapxsl.my.id 164 | SUB_DOMAIN=onichan-${sub}.mantapxsl.my.id 165 | NS_DOMAIN=zerosl-${sub}.mantapxsl.my.id 166 | CF_ID=slinfinity69@gmail.com 167 | CF_KEY=dd2c5e0313f122b3c1833471d469b1025f492 168 | ``` 169 | - Lalu ubah juga CF_ID= isi dengan alamat email cloudflare kamu 170 | - CF_KEY= isi dengan YOUR API KEY (GLOBAL API KEY) 171 | 172 | # Cara Mendapatkan API KEY CLOUDFLARE 173 | - Link 174 | https://dash.cloudflare.com/profile/api-tokens 175 | - API Keys ,Global API Key, Klik View, Masukan Password kamu, lalu klik View 176 | - nanti muncul Your API Key ,lalu tinggal di salin/copy 177 | 178 | 179 | -------------------------------------------------------------------------------- /img/abc: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /img/settingambar1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/46c53d1274b2d8b3c00de506c383d76dc9112d24/img/settingambar1.jpg -------------------------------------------------------------------------------- /img/settingambar2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/46c53d1274b2d8b3c00de506c383d76dc9112d24/img/settingambar2.jpg -------------------------------------------------------------------------------- /img/settingambar3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/46c53d1274b2d8b3c00de506c383d76dc9112d24/img/settingambar3.jpg -------------------------------------------------------------------------------- /img/settingambar4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/46c53d1274b2d8b3c00de506c383d76dc9112d24/img/settingambar4.jpg -------------------------------------------------------------------------------- /img/settingambar5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/46c53d1274b2d8b3c00de506c383d76dc9112d24/img/settingambar5.jpg -------------------------------------------------------------------------------- /img/settingambar6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/46c53d1274b2d8b3c00de506c383d76dc9112d24/img/settingambar6.jpg -------------------------------------------------------------------------------- /install-tools.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ========================================== 3 | # Color 4 | RED='\033[0;31m' 5 | NC='\033[0m' 6 | GREEN='\033[0;32m' 7 | ORANGE='\033[0;33m' 8 | BLUE='\033[0;34m' 9 | PURPLE='\033[0;35m' 10 | CYAN='\033[0;36m' 11 | LIGHT='\033[0;37m' 12 | # ========================================== 13 | # Getting 14 | MYIP=$(wget -qO- ipinfo.io/ip); 15 | # ================================================== 16 | # Link Hosting Kalian 17 | akbarvpn="raw.githubusercontent.com/fisabiliyusri/Mantap/main/ssh" 18 | 19 | # 20 | cd 21 | 22 | # Edit file /etc/systemd/system/rc-local.service 23 | cat > /etc/systemd/system/rc-local.service <<-END 24 | [Unit] 25 | Description=/etc/rc.local 26 | ConditionPathExists=/etc/rc.local 27 | [Service] 28 | Type=forking 29 | ExecStart=/etc/rc.local start 30 | TimeoutSec=0 31 | StandardOutput=tty 32 | RemainAfterExit=yes 33 | SysVStartPriority=99 34 | [Install] 35 | WantedBy=multi-user.target 36 | END 37 | 38 | # nano /etc/rc.local 39 | cat > /etc/rc.local <<-END 40 | #!/bin/sh -e 41 | # rc.local 42 | # By default this script does nothing. 43 | 44 | sslh-fix-reboot 45 | screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7100 --max-clients 100 46 | screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7200 --max-clients 100 47 | screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 100 48 | systemctl enable xray 49 | systemctl restart xray 50 | systemctl restart nginx 51 | systemctl enable runn 52 | systemctl restart runn 53 | iptables -I INPUT -p udp --dport 5300 -j ACCEPT 54 | iptables -t nat -I PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 5300 55 | echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6 56 | exit 0 57 | END 58 | 59 | # Ubah izin akses 60 | chmod +x /etc/rc.local 61 | 62 | # enable rc local 63 | systemctl enable rc-local 64 | systemctl start rc-local.service 65 | # 66 | # set time GMT +7 67 | ln -fs /usr/share/zoneinfo/Asia/Jakarta /etc/localtime 68 | 69 | # set locale 70 | sed -i 's/AcceptEnv/#AcceptEnv/g' /etc/ssh/sshd_config 71 | 72 | #alat 73 | sudo apt install -y libnss3-dev libnspr4-dev pkg-config libpam0g-dev libcap-ng-dev libcap-ng-utils libselinux1-dev libcurl4-nss-dev flex bison make libnss3-tools libevent-dev xl2tpd pptpd 74 | #update 75 | apt update -y 76 | apt upgrade -y 77 | apt dist-upgrade -y 78 | apt-get remove --purge ufw firewalld -y 79 | apt-get remove --purge exim4 -y 80 | 81 | # install wget and curl 82 | apt -y install wget curl 83 | apt -y install net-tools 84 | 85 | # Install Requirements Tools 86 | apt install ruby -y 87 | apt install python -y 88 | apt install make -y 89 | apt install cmake -y 90 | apt install coreutils -y 91 | apt install rsyslog -y 92 | apt install net-tools -y 93 | apt install zip -y 94 | apt install unzip -y 95 | apt install nano -y 96 | apt install sed -y 97 | apt install gnupg -y 98 | apt install gnupg1 -y 99 | apt install bc -y 100 | apt install jq -y 101 | apt install apt-transport-https -y 102 | apt install build-essential -y 103 | apt install dirmngr -y 104 | apt install libxml-parser-perl -y 105 | apt install neofetch -y 106 | apt install git -y 107 | apt install lsof -y 108 | apt install libsqlite3-dev -y 109 | apt install libz-dev -y 110 | apt install gcc -y 111 | apt install g++ -y 112 | apt install libreadline-dev -y 113 | apt install zlib1g-dev -y 114 | apt install libssl-dev -y 115 | apt install libssl1.0-dev -y 116 | apt install dos2unix -y 117 | 118 | # 119 | # install 120 | apt-get --reinstall --fix-missing install -y bzip2 gzip coreutils wget screen rsyslog iftop htop net-tools zip unzip wget net-tools curl nano sed screen gnupg gnupg1 bc apt-transport-https build-essential dirmngr libxml-parser-perl neofetch git lsof 121 | echo "clear" >> .profile 122 | echo "neofetch" >> .profile 123 | 124 | # install webserver 125 | apt -y install nginx php php-fpm php-cli php-mysql libxml-parser-perl 126 | rm /etc/nginx/sites-enabled/default 127 | rm /etc/nginx/sites-available/default 128 | curl https://${akbarvpn}/nginx.conf > /etc/nginx/nginx.conf 129 | curl https://${akbarvpn}/vps.conf > /etc/nginx/conf.d/vps.conf 130 | sed -i 's/listen = \/var\/run\/php-fpm.sock/listen = 127.0.0.1:9000/g' /etc/php/fpm/pool.d/www.conf 131 | useradd -m vps; 132 | mkdir -p /home/vps/public_html 133 | echo "" > /home/vps/public_html/info.php 134 | chown -R www-data:www-data /home/vps/public_html 135 | chmod -R g+rw /home/vps/public_html 136 | cd /home/vps/public_html 137 | wget -O /home/vps/public_html/index.html "https://${akbarvpn}/index.html1" 138 | /etc/init.d/nginx restart 139 | cd 140 | cd 141 | chown -R www-data:www-data /home/vps/public_html 142 | /etc/init.d/nginx restart 143 | cd 144 | -------------------------------------------------------------------------------- /install-xray.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | dateFromServer=$(curl -v --insecure --silent https://google.com/ 2>&1 | grep Date | sed -e 's/< Date: //') 3 | biji=`date +"%Y-%m-%d" -d "$dateFromServer"` 4 | ########################} 5 | 6 | 7 | clear 8 | red='\e[1;31m' 9 | green='\e[0;32m' 10 | yell='\e[1;33m' 11 | NC='\e[0m' 12 | echo "XRAY Core Vmess / Vless / Trojan / Shadowsocks" 13 | echo "Trojan" 14 | echo "Progress..." 15 | sleep 3 16 | 17 | domain=$(cat /root/domain) 18 | sleep 1 19 | mkdir -p /etc/xray 20 | echo -e "[ ${green}INFO${NC} ] Checking... " 21 | apt install iptables iptables-persistent -y 22 | sleep 1 23 | echo -e "[ ${green}INFO$NC ] Setting ntpdate" 24 | ntpdate pool.ntp.org 25 | timedatectl set-ntp true 26 | sleep 1 27 | echo -e "[ ${green}INFO$NC ] Enable chronyd" 28 | systemctl enable chronyd 29 | systemctl restart chronyd 30 | sleep 1 31 | echo -e "[ ${green}INFO$NC ] Enable chrony" 32 | systemctl enable chrony 33 | systemctl restart chrony 34 | timedatectl set-timezone Asia/Jakarta 35 | sleep 1 36 | echo -e "[ ${green}INFO$NC ] Setting chrony tracking" 37 | chronyc sourcestats -v 38 | chronyc tracking -v 39 | echo -e "[ ${green}INFO$NC ] Setting dll" 40 | apt clean all && apt update 41 | apt install curl socat xz-utils wget apt-transport-https gnupg gnupg2 gnupg1 dnsutils lsb-release -y 42 | apt install socat cron bash-completion ntpdate -y 43 | ntpdate pool.ntp.org 44 | apt -y install chrony 45 | apt install zip -y 46 | apt install curl pwgen openssl netcat cron -y 47 | 48 | 49 | # install xray 50 | sleep 1 51 | echo -e "[ ${green}INFO$NC ] Downloading & Installing xray core" 52 | domainSock_dir="/run/xray";! [ -d $domainSock_dir ] && mkdir $domainSock_dir 53 | chown www-data.www-data $domainSock_dir 54 | # Make Folder XRay 55 | mkdir -p /var/log/xray 56 | mkdir -p /etc/xray 57 | chown www-data.www-data /var/log/xray 58 | chmod +x /var/log/xray 59 | touch /var/log/xray/access.log 60 | touch /var/log/xray/error.log 61 | touch /var/log/xray/access2.log 62 | touch /var/log/xray/error2.log 63 | # / / Ambil Xray Core Version Terbaru 64 | bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u www-data --version 1.5.6 65 | 66 | 67 | 68 | ## crt xray 69 | systemctl stop nginx 70 | rm -rf /etc/nginx/conf.d/alone.conf 71 | 72 | # nginx 73 | /etc/init.d/nginx stop 74 | 75 | mkdir -p /home/vps/public_html 76 | 77 | # set uuid 78 | uuid9=$(cat /proc/sys/kernel/random/uuid) 79 | 80 | uuid=b8458948-a630-4e6d-809a-230b2223ff3d 81 | 82 | # xray config 83 | cat > /etc/xray/config.json << END 84 | { 85 | "log" : { 86 | "access": "/var/log/xray/access.log", 87 | "error": "/var/log/xray/error.log", 88 | "loglevel": "warning" 89 | }, 90 | "inbounds": [ 91 | { 92 | "listen": "127.0.0.1", 93 | "port": 10085, 94 | "protocol": "dokodemo-door", 95 | "settings": { 96 | "address": "127.0.0.1" 97 | }, 98 | "tag": "api" 99 | }, 100 | { 101 | "listen": "/run/xray/vless_ws.sock", 102 | "protocol": "vless", 103 | "settings": { 104 | "decryption":"none", 105 | "clients": [ 106 | { 107 | "id": "${uuid}" 108 | #vless 109 | } 110 | ] 111 | }, 112 | "streamSettings":{ 113 | "network": "ws", 114 | "wsSettings": { 115 | "path": "/xrayws" 116 | } 117 | } 118 | }, 119 | { 120 | "listen": "/run/xray/vmess_ws.sock", 121 | "protocol": "vmess", 122 | "settings": { 123 | "clients": [ 124 | { 125 | "id": "${uuid}", 126 | "alterId": 0 127 | #vmess 128 | } 129 | ] 130 | }, 131 | "streamSettings":{ 132 | "network": "ws", 133 | "wsSettings": { 134 | "path": "/xrayvws" 135 | } 136 | } 137 | }, 138 | { 139 | "listen": "/run/xray/trojan_ws.sock", 140 | "protocol": "trojan", 141 | "settings": { 142 | "decryption":"none", 143 | "clients": [ 144 | { 145 | "password": "${uuid}" 146 | #trojanws 147 | } 148 | ], 149 | "udp": true 150 | }, 151 | "streamSettings":{ 152 | "network": "ws", 153 | "wsSettings": { 154 | "path": "/xraytrojanws" 155 | } 156 | } 157 | }, 158 | { 159 | "listen": "127.0.0.1", 160 | "port": "30300", 161 | "protocol": "shadowsocks", 162 | "settings": { 163 | "clients": [ 164 | { 165 | "method": "aes-128-gcm", 166 | "password": "${uuid}" 167 | #ssws 168 | } 169 | ], 170 | "network": "tcp,udp" 171 | }, 172 | "streamSettings":{ 173 | "network": "ws", 174 | "wsSettings": { 175 | "path": "/xrayssws" 176 | } 177 | } 178 | }, 179 | { 180 | "listen": "/run/xray/vless_grpc.sock", 181 | "protocol": "vless", 182 | "settings": { 183 | "decryption":"none", 184 | "clients": [ 185 | { 186 | "id": "${uuid}" 187 | #vlessgrpc 188 | } 189 | ] 190 | }, 191 | "streamSettings":{ 192 | "network": "grpc", 193 | "grpcSettings": { 194 | "serviceName": "vless-grpc" 195 | } 196 | } 197 | }, 198 | { 199 | "listen": "/run/xray/vmess_grpc.sock", 200 | "protocol": "vmess", 201 | "settings": { 202 | "clients": [ 203 | { 204 | "id": "${uuid}", 205 | "alterId": 0 206 | #vmessgrpc 207 | } 208 | ] 209 | }, 210 | "streamSettings":{ 211 | "network": "grpc", 212 | "grpcSettings": { 213 | "serviceName": "vmess-grpc" 214 | } 215 | } 216 | }, 217 | { 218 | "listen": "/run/xray/trojan_grpc.sock", 219 | "protocol": "trojan", 220 | "settings": { 221 | "decryption":"none", 222 | "clients": [ 223 | { 224 | "password": "${uuid}" 225 | #trojangrpc 226 | } 227 | ] 228 | }, 229 | "streamSettings":{ 230 | "network": "grpc", 231 | "grpcSettings": { 232 | "serviceName": "trojan-grpc" 233 | } 234 | } 235 | }, 236 | { 237 | "listen": "127.0.0.1", 238 | "port": "30310", 239 | "protocol": "shadowsocks", 240 | "settings": { 241 | "clients": [ 242 | { 243 | "method": "aes-128-gcm", 244 | "password": "${uuid}" 245 | #ssgrpc 246 | } 247 | ], 248 | "network": "tcp,udp" 249 | }, 250 | "streamSettings":{ 251 | "network": "grpc", 252 | "grpcSettings": { 253 | "serviceName": "ss-grpc" 254 | } 255 | } 256 | } 257 | ], 258 | "outbounds": [ 259 | { 260 | "protocol": "freedom", 261 | "settings": {} 262 | }, 263 | { 264 | "protocol": "blackhole", 265 | "settings": {}, 266 | "tag": "blocked" 267 | } 268 | ], 269 | "routing": { 270 | "rules": [ 271 | { 272 | "type": "field", 273 | "ip": [ 274 | "0.0.0.0/8", 275 | "10.0.0.0/8", 276 | "100.64.0.0/10", 277 | "169.254.0.0/16", 278 | "172.16.0.0/12", 279 | "192.0.0.0/24", 280 | "192.0.2.0/24", 281 | "192.168.0.0/16", 282 | "198.18.0.0/15", 283 | "198.51.100.0/24", 284 | "203.0.113.0/24", 285 | "::1/128", 286 | "fc00::/7", 287 | "fe80::/10" 288 | ], 289 | "outboundTag": "blocked" 290 | }, 291 | { 292 | "inboundTag": [ 293 | "api" 294 | ], 295 | "outboundTag": "api", 296 | "type": "field" 297 | }, 298 | { 299 | "type": "field", 300 | "outboundTag": "blocked", 301 | "protocol": [ 302 | "bittorrent" 303 | ] 304 | } 305 | ] 306 | }, 307 | "stats": {}, 308 | "api": { 309 | "services": [ 310 | "StatsService" 311 | ], 312 | "tag": "api" 313 | }, 314 | "policy": { 315 | "levels": { 316 | "0": { 317 | "statsUserDownlink": true, 318 | "statsUserUplink": true 319 | } 320 | }, 321 | "system": { 322 | "statsInboundUplink": true, 323 | "statsInboundDownlink": true, 324 | "statsOutboundUplink" : true, 325 | "statsOutboundDownlink" : true 326 | } 327 | } 328 | } 329 | END 330 | rm -rf /etc/systemd/system/xray.service.d 331 | cat < /etc/systemd/system/xray.service 332 | Description=Xray Service 333 | Documentation=https://github.com/xtls 334 | After=network.target nss-lookup.target 335 | 336 | [Service] 337 | User=www-data 338 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE 339 | AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE 340 | NoNewPrivileges=true 341 | ExecStart=/usr/local/bin/xray run -config /etc/xray/config.json 342 | Restart=on-failure 343 | RestartPreventExitStatus=23 344 | LimitNPROC=10000 345 | LimitNOFILE=1000000 346 | 347 | [Install] 348 | WantedBy=multi-user.target 349 | 350 | EOF 351 | cat > /etc/systemd/system/runn.service </etc/nginx/conf.d/xray.conf </dev/null 2>&1 483 | #rm /usr/bin/bbr >/dev/null 2>&1 484 | echo -e "$yell[SERVICE]$NC Restart All service" 485 | systemctl daemon-reload 486 | sleep 1 487 | echo -e "[ ${green}ok${NC} ] Enable & restart xray " 488 | systemctl enable xray 489 | systemctl restart xray 490 | systemctl restart nginx 491 | systemctl enable runn 492 | systemctl restart runn 493 | 494 | sleep 1 495 | yellow() { echo -e "\\033[33;1m${*}\\033[0m"; } 496 | yellow "xray/Vmess" 497 | yellow "xray/Vless" 498 | yellow "xray/Trojan" 499 | yellow "xray/Shadowsocks" 500 | 501 | 502 | #done 503 | clear 504 | #rm -f ins-xray.sh 505 | rm -f install-xray.sh 506 | -------------------------------------------------------------------------------- /menu/add-akun.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # SL 3 | # ========================================== 4 | # Color 5 | RED='\033[0;31m' 6 | NC='\033[0m' 7 | GREEN='\033[0;32m' 8 | ORANGE='\033[0;33m' 9 | BLUE='\033[0;34m' 10 | PURPLE='\033[0;35m' 11 | CYAN='\033[0;36m' 12 | LIGHT='\033[0;37m' 13 | # ========================================== 14 | # Getting 15 | MYIP=$(wget -qO- ipinfo.io/ip); 16 | echo "Checking VPS" 17 | IZIN=$( curl ipinfo.io/ip | grep $MYIP ) 18 | if [ $MYIP = $MYIP ]; then 19 | echo -e "${NC}${GREEN}Permission Accepted...${NC}" 20 | else 21 | echo -e "${NC}${RED}Permission Denied!${NC}"; 22 | echo -e "${NC}${LIGHT}Fuck You!!" 23 | exit 0 24 | fi 25 | clear 26 | source /var/lib/crot/ipvps.conf 27 | if [[ "$IP" = "" ]]; then 28 | domain=$(cat /etc/xray/domain) 29 | else 30 | domain=$IP 31 | fi 32 | tr="$(cat ~/log-install.txt | grep -w "Trojan WS " | cut -d: -f2|sed 's/ //g')" 33 | until [[ $user =~ ^[a-zA-Z0-9_]+$ && ${user_EXISTS} == '0' ]]; do 34 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 35 | echo -e "\E[0;41;36m XRAY ALL ACCOUNT \E[0m" 36 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 37 | 38 | read -rp "User: " -e user 39 | user_EXISTS=$(grep -w $user /etc/xray/config.json | wc -l) 40 | 41 | if [[ ${user_EXISTS} == '1' ]]; then 42 | clear 43 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 44 | echo -e "\E[0;41;36m XRAY ALL ACCOUNT \E[0m" 45 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 46 | echo "" 47 | echo "A client with the specified name was already created, please choose another name." 48 | echo "" 49 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 50 | read -n 1 -s -r -p "Press any key to back on menu" 51 | menu 52 | fi 53 | done 54 | # 55 | # 56 | uuid=$(cat /proc/sys/kernel/random/uuid) 57 | read -p "Expired (days): " masaaktif 58 | exp=`date -d "$masaaktif days" +"%Y-%m-%d"` 59 | sed -i '/#trojanws$/a\#! '"$user $exp"'\ 60 | },{"password": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json 61 | sed -i '/#trojangrpc$/a\#! '"$user $exp"'\ 62 | },{"password": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json 63 | 64 | sed -i '/#vless$/a\#& '"$user $exp"'\ 65 | },{"id": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json 66 | sed -i '/#vlessgrpc$/a\#& '"$user $exp"'\ 67 | },{"id": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json 68 | 69 | sed -i '/#vmess$/a\#& '"$user $exp"'\ 70 | },{"id": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json 71 | sed -i '/#vmessgrpc$/a\#& '"$user $exp"'\ 72 | },{"id": "'""$uuid""'","email": "'""$user""'"' /etc/xray/config.json 73 | 74 | 75 | # 76 | systemctl restart xray 77 | #buatvless 78 | vlesslinkws="vless://${uuid}@${domain}:443?path=/xrayws&security=tls&encryption=none&type=ws#${user}" 79 | vlesslinknon="vless://${uuid}@${domain}:80?path=/xrayws&encryption=none&type=ws#${user}" 80 | vlesslinkgrpc="vless://${uuid}@${domain}:443?mode=gun&security=tls&encryption=none&type=grpc&serviceName=vless-grpc&sni=bug.com#${user}" 81 | 82 | #buattrojan 83 | trojanlinkgrpc="trojan://${uuid}@${domain}:443?mode=gun&security=tls&type=grpc&serviceName=trojan-grpc&sni=bug.com#${user}" 84 | trojanlinkws="trojan://${uuid}@${domain}:443?path=/xraytrojanws&security=tls&host=bug.com&type=ws&sni=bug.com#${user}" 85 | #buatshadowsocks 86 | # 87 | cipher="aes-128-gcm" 88 | sed -i '/#ssws$/a\### '"$user $exp"'\ 89 | },{"password": "'""$uuid""'","method": "'""$cipher""'","email": "'""$user""'"' /etc/xray/config.json 90 | sed -i '/#ssgrpc$/a\### '"$user $exp"'\ 91 | },{"password": "'""$uuid""'","method": "'""$cipher""'","email": "'""$user""'"' /etc/xray/config.json 92 | echo $cipher:$uuid > /tmp/log 93 | shadowsocks_base64=$(cat /tmp/log) 94 | echo -n "${shadowsocks_base64}" | base64 > /tmp/log1 95 | shadowsocks_base64e=$(cat /tmp/log1) 96 | shadowsockslink="ss://${shadowsocks_base64e}@$domain:$tls?plugin=xray-plugin;mux=0;path=/xrayssws;host=$domain;tls#${user}" 97 | shadowsockslink1="ss://${shadowsocks_base64e}@$domain:$tls?plugin=xray-plugin;mux=0;serviceName=ss-grpc;host=$domain;tls#${user}" 98 | systemctl restart xray 99 | rm -rf /tmp/log 100 | rm -rf /tmp/log1 101 | cat > /home/vps/public_html/ss-ws-$user.txt <<-END 102 | { 103 | "dns": { 104 | "servers": [ 105 | "8.8.8.8", 106 | "8.8.4.4" 107 | ] 108 | }, 109 | "inbounds": [ 110 | { 111 | "port": 10808, 112 | "protocol": "socks", 113 | "settings": { 114 | "auth": "noauth", 115 | "udp": true, 116 | "userLevel": 8 117 | }, 118 | "sniffing": { 119 | "destOverride": [ 120 | "http", 121 | "tls" 122 | ], 123 | "enabled": true 124 | }, 125 | "tag": "socks" 126 | }, 127 | { 128 | "port": 10809, 129 | "protocol": "http", 130 | "settings": { 131 | "userLevel": 8 132 | }, 133 | "tag": "http" 134 | } 135 | ], 136 | "log": { 137 | "loglevel": "none" 138 | }, 139 | "outbounds": [ 140 | { 141 | "mux": { 142 | "enabled": true 143 | }, 144 | "protocol": "shadowsocks", 145 | "settings": { 146 | "servers": [ 147 | { 148 | "address": "$domain", 149 | "level": 8, 150 | "method": "$cipher", 151 | "password": "$uuid", 152 | "port": 443 153 | } 154 | ] 155 | }, 156 | "streamSettings": { 157 | "network": "ws", 158 | "security": "tls", 159 | "tlsSettings": { 160 | "allowInsecure": true, 161 | "serverName": "isi_bug_disini" 162 | }, 163 | "wsSettings": { 164 | "headers": { 165 | "Host": "$domain" 166 | }, 167 | "path": "/xrayssws" 168 | } 169 | }, 170 | "tag": "proxy" 171 | }, 172 | { 173 | "protocol": "freedom", 174 | "settings": {}, 175 | "tag": "direct" 176 | }, 177 | { 178 | "protocol": "blackhole", 179 | "settings": { 180 | "response": { 181 | "type": "http" 182 | } 183 | }, 184 | "tag": "block" 185 | } 186 | ], 187 | "policy": { 188 | "levels": { 189 | "8": { 190 | "connIdle": 300, 191 | "downlinkOnly": 1, 192 | "handshake": 4, 193 | "uplinkOnly": 1 194 | } 195 | }, 196 | "system": { 197 | "statsOutboundUplink": true, 198 | "statsOutboundDownlink": true 199 | } 200 | }, 201 | "routing": { 202 | "domainStrategy": "Asls", 203 | "rules": [] 204 | }, 205 | "stats": {} 206 | } 207 | END 208 | cat > /home/vps/public_html/ss-grpc-$user.txt <<-END 209 | { 210 | "dns": { 211 | "servers": [ 212 | "8.8.8.8", 213 | "8.8.4.4" 214 | ] 215 | }, 216 | "inbounds": [ 217 | { 218 | "port": 10808, 219 | "protocol": "socks", 220 | "settings": { 221 | "auth": "noauth", 222 | "udp": true, 223 | "userLevel": 8 224 | }, 225 | "sniffing": { 226 | "destOverride": [ 227 | "http", 228 | "tls" 229 | ], 230 | "enabled": true 231 | }, 232 | "tag": "socks" 233 | }, 234 | { 235 | "port": 10809, 236 | "protocol": "http", 237 | "settings": { 238 | "userLevel": 8 239 | }, 240 | "tag": "http" 241 | } 242 | ], 243 | "log": { 244 | "loglevel": "none" 245 | }, 246 | "outbounds": [ 247 | { 248 | "mux": { 249 | "enabled": true 250 | }, 251 | "protocol": "shadowsocks", 252 | "settings": { 253 | "servers": [ 254 | { 255 | "address": "$domain", 256 | "level": 8, 257 | "method": "$cipher", 258 | "password": "$uuid", 259 | "port": 443 260 | } 261 | ] 262 | }, 263 | "streamSettings": { 264 | "grpcSettings": { 265 | "multiMode": true, 266 | "serviceName": "ss-grpc" 267 | }, 268 | "network": "grpc", 269 | "security": "tls", 270 | "tlsSettings": { 271 | "allowInsecure": true, 272 | "serverName": "isi_bug_disini" 273 | } 274 | }, 275 | "tag": "proxy" 276 | }, 277 | { 278 | "protocol": "freedom", 279 | "settings": {}, 280 | "tag": "direct" 281 | }, 282 | { 283 | "protocol": "blackhole", 284 | "settings": { 285 | "response": { 286 | "type": "http" 287 | } 288 | }, 289 | "tag": "block" 290 | } 291 | ], 292 | "policy": { 293 | "levels": { 294 | "8": { 295 | "connIdle": 300, 296 | "downlinkOnly": 1, 297 | "handshake": 4, 298 | "uplinkOnly": 1 299 | } 300 | }, 301 | "system": { 302 | "statsOutboundUplink": true, 303 | "statsOutboundDownlink": true 304 | } 305 | }, 306 | "routing": { 307 | "domainStrategy": "Asls", 308 | "rules": [] 309 | }, 310 | "stats": {} 311 | } 312 | END 313 | 314 | # 315 | #buatvmess 316 | clear 317 | echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a /etc/log-create-user.log 318 | echo -e "====== XRAY MANTAP Multi Port=======" | tee -a /etc/log-create-user.log 319 | echo -e "INFORMASI AKUN VPN XRAY" | tee -a /etc/log-create-user.log 320 | echo -e "IP: $MYIP" | tee -a /etc/log-create-user.log 321 | echo -e "Host/Domain: $domain" | tee -a /etc/log-create-user.log 322 | echo -e "Password/ID: $uuid" | tee -a /etc/log-create-user.log 323 | echo -e "====== Service Port =======" | tee -a /etc/log-create-user.log 324 | echo -e "Websocket TLS : 443" | tee -a /etc/log-create-user.log 325 | echo -e "Websocket HTTP : 80" | tee -a /etc/log-create-user.log 326 | echo -e "GRPC TLS : 443" | tee -a /etc/log-create-user.log 327 | echo -e "*Note OPOK: opok only supports coremeta" 328 | echo -e "*Note SHADOWSOCKS: gunakan custom config atau plugin xray" 329 | echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a /etc/log-create-user.log 330 | 331 | echo -e "Protokol VPN: TROJAN" | tee -a /etc/log-create-user.log 332 | echo -e "Network: WS/GRPC" | tee -a /etc/log-create-user.log 333 | echo -e "====== Path =======" | tee -a /etc/log-create-user.log 334 | echo -e "=> WS TLS : /xraytrojanws" | tee -a /etc/log-create-user.log 335 | echo -e "=> GRPC : trojan-grpc" | tee -a /etc/log-create-user.log 336 | echo -e "=> OPOK : ws://bugcom/xraytrojanws" | tee -a /etc/log-create-user.log 337 | echo -e "====== Import Config From Clipboard =======" | tee -a /etc/log-create-user.log 338 | echo -e "Link Config WS TLS : $trojanlinkws" | tee -a /etc/log-create-user.log 339 | echo -e "Link Config GRPC TLS : $trojanlinkgrpc" | tee -a /etc/log-create-user.log 340 | echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a /etc/log-create-user.log 341 | 342 | echo -e "Protokol VPN: SHADOWSOCKS" | tee -a /etc/log-create-user.log 343 | echo -e "Network: WS/GRPC" | tee -a /etc/log-create-user.log 344 | echo -e "Method Cipers : aes-128-gcm" | tee -a /etc/log-create-user.log 345 | echo -e "====== Path =======" | tee -a /etc/log-create-user.log 346 | echo -e "=> WS TLS : /xrayssws" | tee -a /etc/log-create-user.log 347 | echo -e "=> GRPC : ss-grpc" | tee -a /etc/log-create-user.log 348 | echo -e "=> OPOK : ws://bugcom/xrayssws" | tee -a /etc/log-create-user.log 349 | echo -e "======Custom Import Config From URL =======" | tee -a /etc/log-create-user.log 350 | echo -e "URL Custom Config WS TLS : http://${domain}:89/ss-ws-$user.txt" | tee -a /etc/log-create-user.log 351 | echo -e "URL Custom Config GRPC TLS : http://${domain}:89/ss-grpc-$user.txt" | tee -a /etc/log-create-user.log 352 | echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a /etc/log-create-user.log 353 | 354 | echo -e "Protokol VPN: VLESS" | tee -a /etc/log-create-user.log 355 | echo -e "Network: WS/GRPC" | tee -a /etc/log-create-user.log 356 | echo -e "====== Path =======" | tee -a /etc/log-create-user.log 357 | echo -e "=> WS TLS : /xrayws" | tee -a /etc/log-create-user.log 358 | echo -e "=> GRPC : vless-grpc" | tee -a /etc/log-create-user.log 359 | echo -e "=> OPOK : ws://bugcom/xrayws" | tee -a /etc/log-create-user.log 360 | echo -e "====== Import Config From Clipboard =======" | tee -a /etc/log-create-user.log 361 | echo -e "Link Config WS TLS : $vlesslinkws" | tee -a /etc/log-create-user.log 362 | echo -e "Link Config GRPC TLS : $vlesslinkgrpc" | tee -a /etc/log-create-user.log 363 | echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a /etc/log-create-user.log 364 | echo -e "Protokol VPN: VMESS" | tee -a /etc/log-create-user.log 365 | echo -e "Alter ID: 0" | tee -a /etc/log-create-user.log 366 | echo -e "Network: WS/GRPC" | tee -a /etc/log-create-user.log 367 | echo -e "====== Path =======" | tee -a /etc/log-create-user.log 368 | echo -e "=> WS TLS : /xrayvws" | tee -a /etc/log-create-user.log 369 | echo -e "=> GRPC : vmess-grpc" | tee -a /etc/log-create-user.log 370 | echo -e "=> OPOK : ws://bugcom/xrayvws" | tee -a /etc/log-create-user.log 371 | echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a /etc/log-create-user.log 372 | echo -e "SCRIPT MANTAP XRAY" | tee -a /etc/log-create-user.log 373 | echo "" | tee -a /etc/log-create-user.log 374 | cd 375 | -------------------------------------------------------------------------------- /menu/auto-pointing.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | red='\e[1;31m' 3 | green='\e[0;32m' 4 | NC='\e[0m' 5 | MYIP=$(wget -qO- icanhazip.com); 6 | apt install jq curl -y 7 | rm -f /root/domain 8 | rm -f /etc/v2ray/domain 9 | rm -f /etc/xray/domain 10 | rm -rf /etc/xray/domain 11 | rm -rf /root/nsdomain 12 | rm -rf /var/lib/crot/ipvps.conf 13 | rm nsdomain 14 | rm domain 15 | mkdir -p /usr/bin/xray 16 | mkdir -p /usr/bin/v2ray 17 | mkdir -p /etc/xray 18 | mkdir -p /etc/v2ray 19 | echo "$SUB_DOMAIN" >> /etc/v2ray/domain 20 | # 21 | sub=$(> /var/lib/crot/ipvps.conf 81 | echo "Host : $SUB_DOMAIN" 82 | echo $SUB_DOMAIN > /root/domain 83 | echo "Host SlowDNS : $NS_DOMAIN" 84 | echo "$NS_DOMAIN" >> /root/nsdomain 85 | echo "$SUB_DOMAIN" >> /etc/xray/domain 86 | cd 87 | -------------------------------------------------------------------------------- /menu/cek-port.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Script by SL 3 | 4 | xrayport="$(netstat -ntlp | grep -i xray | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 5 | nginxport="$(netstat -ntlp | grep -i nginx | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 6 | sslhport="$(netstat -ntlp | grep -i sslh | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 7 | sldnsport="$(netstat -ntlp | grep -i sldns-client | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 8 | wsport="$(netstat -ntlp | grep -i python | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 9 | opensshport="$(netstat -ntlp | grep -i ssh | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 10 | dropbearport="$(netstat -nlpt | grep -i dropbear | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 11 | stunnelport="$(netstat -nlpt | grep -i stunnel | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 12 | openvpnport="$(netstat -nlpt | grep -i openvpn | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 13 | #squidport="$(netstat -nlpt | grep -i squid | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 14 | squidport=OFF 15 | nodeproxyport=OFF 16 | udpgwport="$(netstat -nlpt | grep -i badvpn-udpgw | grep -i 0.0.0.0 | awk '{print $4}' | cut -d: -f2)" 17 | clear 18 | echo -e "\e[0m " 19 | echo -e "\e[1;31m [*][*][*]======================================[*][*][*]" 20 | echo -e "\e[0m " 21 | echo -e "\e[0;37m Auto Script MANTAP by SL " 22 | echo -e "\e[0;37m Port Yang Sedang Aktif " 23 | echo -e "\e[0;37m Service Port " 24 | echo -e "\e[0m " 25 | echo -e "\e[0;37m Port Nginx : "$nginxport 26 | echo -e "\e[0;37m Port Xray : "$xrayport 27 | echo -e "\e[0;37m Port SlowDNS : "$sldnsport 28 | echo -e "\e[0;37m Port OpenSSH : "$opensshport 29 | echo -e "\e[0;37m Port Dropbear : "$dropbearport 30 | echo -e "\e[0;37m Port Stunnel : "$stunnelport 31 | echo -e "\e[0;37m Port SSLH : "$sslhport 32 | echo -e "\e[0;37m Port Websocket : "$wsport 33 | echo -e "\e[0;37m Port OpenVPN : "$openvpnport 34 | echo -e "\e[0;37m Port UDPGW : "$udpgwport 35 | echo -e "\e[0;37m Port Squid : "$squidport 36 | echo -e "\e[0;37m Port CloudFront : "$nodeproxyport 37 | echo -e "\e[0m " 38 | echo -e "\e[0;37m * Info " 39 | echo -e "\e[0;37m * Jika port nya tidak muncul" 40 | echo -e "\e[0;37m * berarti port nya mati/OFF " 41 | echo -e "\e[0m " 42 | echo -e "\e[1;31m [*][*][*]======================================[*][*][*]" 43 | echo "" 44 | read -sp " Press ENTER to go back" 45 | echo "" 46 | -------------------------------------------------------------------------------- /menu/delete-akun.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ========================================== 3 | 4 | MYIP=$(curl -sS ipv4.icanhazip.com) 5 | 6 | 7 | 8 | clear 9 | NUMBER_OF_CLIENTS=$(grep -c -E "^### " "/etc/xray/config.json") 10 | if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then 11 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 12 | echo -e "\\E[0;41;36m Delete xray Account \E[0m" 13 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 14 | echo "" 15 | echo "You have no existing clients!" 16 | echo "" 17 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 18 | read -n 1 -s -r -p "Press any key to back on menu" 19 | xmenu 20 | fi 21 | 22 | clear 23 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 24 | echo -e "\\E[0;41;36m Delete xray Account \E[0m" 25 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 26 | echo " User Expired " 27 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 28 | grep -E "^### " "/etc/xray/config.json" | cut -d ' ' -f 2-3 | column -t | sort | uniq 29 | echo "" 30 | red "tap enter to go back" 31 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 32 | read -rp "Input Username : " user 33 | if [ -z $user ]; then 34 | xmenu 35 | else 36 | exp=$(grep -wE "^### $user" "/etc/xray/config.json" | cut -d ' ' -f 3 | sort | uniq) 37 | sed -i "/^### $user $exp/,/^},{/d" /etc/xray/config.json 38 | systemctl restart xray > /dev/null 2>&1 39 | clear 40 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 41 | echo " V2RAY Account Deleted Successfully" 42 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 43 | echo " Client Name : $user" 44 | echo " Expired On : $exp" 45 | echo -e "\033[0;34m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m" 46 | echo "" 47 | read -n 1 -s -r -p "Press any key to back on menu" 48 | 49 | xmenu 50 | fi 51 | -------------------------------------------------------------------------------- /menu/restart-xray.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | systemctl daemon-reload 4 | systemctl enable xray 5 | systemctl restart xray 6 | systemctl restart nginx 7 | systemctl enable runn 8 | systemctl restart runn 9 | -------------------------------------------------------------------------------- /menu/updatedll.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ========================================== 3 | cd 4 | rm -r updatedll 5 | wget -O updatedll "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/updatedll.sh" 6 | rm -rf updatedll 7 | 8 | # hapus 9 | cd /usr/bin 10 | rm -rf xmenu 11 | rm -rf updatedll 12 | rm -r updatedll 13 | # download 14 | # 15 | cd /usr/bin 16 | wget -O xmenu "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/xmenu.sh" 17 | wget -O add-akun "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/add-akun.sh" 18 | wget -O updatedll "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/updatedll.sh" 19 | wget -O add-akun "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/add-akun.sh" 20 | wget -O delete-akun "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/delete-akun.sh" 21 | wget -O certv2ray "https://raw.githubusercontent.com/fisabiliyusri/Mantap/main/xray/certv2ray.sh" 22 | wget -O restart-xray "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/restart-xray.sh" 23 | wget -O xmenu "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/xmenu.sh" 24 | wget -O auto-pointing "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/auto-pointing.sh" 25 | wget -O cek-port "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/cek-port.sh" 26 | wget -O xmenu "https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/xmenu.sh" 27 | 28 | # 29 | chmod +x /usr/bin/updatedll 30 | chmod +x /usr/bin/xmenu 31 | chmod +x xmenu 32 | chmod +x add-akun 33 | chmod +x delete-akun 34 | chmod +x updatedll 35 | chmod +x add-akun 36 | chmod +x certv2ray 37 | chmod +x restart-xray 38 | chmod +x auto-pointing 39 | chmod +x cek-port 40 | 41 | cd 42 | -------------------------------------------------------------------------------- /menu/xmenu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | clear 3 | echo -e "\e[36m╒════════════════════════════════════════════╕\033[0m" 4 | echo -e " \E[0;41;36m INFO SERVER \E[0m" 5 | echo -e "\e[36m╘════════════════════════════════════════════╛\033[0m" 6 | uphours=`uptime -p | awk '{print $2,$3}' | cut -d , -f1` 7 | upminutes=`uptime -p | awk '{print $4,$5}' | cut -d , -f1` 8 | uptimecek=`uptime -p | awk '{print $6,$7}' | cut -d , -f1` 9 | cekup=`uptime -p | grep -ow "day"` 10 | IPVPS=$(curl -s ipinfo.io/ip ) 11 | ISPVPS=$( curl -s ipinfo.io/org ) 12 | #clear 13 | if [ "$cekup" = "day" ]; then 14 | echo -e "System Uptime : $uphours $upminutes $uptimecek" 15 | else 16 | echo -e "System Uptime : $uphours $upminutes" 17 | fi 18 | echo -e "IP-VPS : $IPVPS" 19 | echo -e "ISP-VPS : $ISPVPS" 20 | echo "╔═════════════════════════════════════════════════════════════════╗" 21 | echo "║ ┃ Script By SL ┃ ║" 22 | echo "╚═════════════════════════════════════════════════════════════════╝" 23 | echo "╔═════════════════════════════════════════════════════════════════╗" 24 | echo "║ ┃ Link Script ┃ ┃ https://github.com/fisabiliyusri/MANTAP-XRAY ┃ ║" 25 | echo "╚═════════════════════════════════════════════════════════════════╝" 26 | echo "╔═════════════════════════════════════════════════════════════════╗" 27 | echo "║ ┃ XRAY XMENU ┃ ║" 28 | echo "╚═════════════════════════════════════════════════════════════════╝" 29 | echo "║ 1. Buat Semua Akun XRAY ┃ Create Account ║" 30 | echo "║ 2. Hapus Akun XRAY ┃ Delete Account ║" 31 | echo "║ 3. Cek Nama Domain ┃ Domain Name Checker ║" 32 | echo "║ 4. Cek IP Publik ┃ Check Public IP ║" 33 | echo "║ 5. Update DLL ┃ Update ETC ║" 34 | echo "║ 6. XRAY UPDATE Core ┃ Update Core ║" 35 | echo "║ 7. XRAY UPDATE SCRIPT ┃ Update Script ║" 36 | echo "║ 8. Hidupkan Ulang Xray ┃ Restart Service XRAY ║" 37 | echo "║ 9. Perbarui Sertifikat ┃ Update Certificate ║" 38 | echo "║ 10.Tambahkan Domain ┃ ADD DOMAIN ║" 39 | echo "║ 11.CARA POINTING DOMAIN ┃ ║" 40 | echo "║ 12.Test Kecepatan Server ┃ Speedtest Server ║" 41 | echo "║ 13.Hidupkan Ulang VPS ┃ Reboot ║" 42 | echo "║ 14.Keluar Dari Menu ┃ Exit Menu ║" 43 | echo "║ 15.Info Script ┃ ║" 44 | echo "║ 16.Auto Pointing Subdomain┃ ║" 45 | echo "║ 17.Cek Semua Layanan Port ┃ Check All Port Service ║" 46 | echo "╚═════════════════════════════════════════════════════════════════╝" 47 | read -p " Select From Options [1-69 or x] : " xmenu 48 | case $xmenu in 49 | 1) 50 | add-akun 51 | ;; 52 | 2) 53 | delete-akun 54 | ;; 55 | 3) 56 | cat /etc/xray/domain 57 | ;; 58 | 4) 59 | curl -s ipinfo.io/ip 60 | ;; 61 | 5) 62 | updatedll 63 | ;; 64 | 6) 65 | updatecore 66 | ;; 67 | 7) 68 | updatesc 69 | ;; 70 | 8) 71 | restart-xray 72 | ;; 73 | 9) 74 | certv2ray 75 | ;; 76 | 10) 77 | add-domain 78 | ;; 79 | 11) 80 | how-pointing 81 | ;; 82 | 12) 83 | speedtest 84 | ;; 85 | 13) 86 | reboot 87 | ;; 88 | 14) 89 | exit 90 | ;; 91 | 15) 92 | cat /root/log-install.txt 93 | ;; 94 | 16) 95 | auto-pointing 96 | ;; 97 | 17) 98 | cek-port 99 | ;; 100 | *) 101 | echo "Input The Correct Number !" 102 | ;; 103 | esac 104 | -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [ "${EUID}" -ne 0 ]; then 3 | echo "You need to run this script as root" 4 | exit 1 5 | fi 6 | if [ "$(systemd-detect-virt)" == "openvz" ]; then 7 | echo "OpenVZ is not supported" 8 | exit 1 9 | fi 10 | # ========================================== 11 | # Color 12 | RED='\033[0;31m' 13 | NC='\033[0m' 14 | GREEN='\033[0;32m' 15 | ORANGE='\033[0;33m' 16 | BLUE='\033[0;34m' 17 | PURPLE='\033[0;35m' 18 | CYAN='\033[0;36m' 19 | LIGHT='\033[0;37m' 20 | # ========================================= 21 | # Getting 22 | MYIP=$(wget -qO- ipinfo.io/ip); 23 | echo "Checking VPS" 24 | IZIN=$(wget -qO- ipinfo.io/ip); 25 | clear 26 | mkdir /var/lib/crot; 27 | echo "IP=" >> /var/lib/crot/ipvps.conf 28 | cd 29 | #install tools/alat 30 | wget https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/install-tools.sh && chmod +x install-tools.sh && ./install-tools.sh 31 | # 32 | #Instal Xray 33 | wget https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/install-xray.sh && chmod +x install-xray.sh && ./install-xray.sh 34 | #install xmenu 35 | wget https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/updatedll.sh && chmod +x updatedll.sh && ./updatedll.sh 36 | # 37 | #SELESAI 38 | echo " " 39 | echo "Installation has been completed!!"echo " " 40 | echo "============================================================================" | tee -a log-install.txt 41 | echo "" | tee -a log-install.txt 42 | echo "----------------------------------------------------------------------------" | tee -a log-install.txt 43 | echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a log-install.txt 44 | echo -e " SCRIPT MANTAP-XRAY Multi Port" | tee -a log-install.txt 45 | echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a log-install.txt 46 | echo "" | tee -a log-install.txt 47 | echo " >>> Service & Port" | tee -a log-install.txt 48 | echo " - Nginx : 89" | tee -a log-install.txt 49 | echo " - XRAYS TROJAN WS TLS : 443" | tee -a log-install.txt 50 | echo " - XRAYS SHADOWSOCKS WS TLS : 443" | tee -a log-install.txt 51 | echo " - XRAYS VLESS WS TLS : 443" | tee -a log-install.txt 52 | echo " - XRAYS VMESS WS TLS : 443" | tee -a log-install.txt 53 | echo " - XRAYS TROJAN WS HTTP : 80" | tee -a log-install.txt 54 | echo " - XRAYS SHADOWSOCKS WS HTTP : 80" | tee -a log-install.txt 55 | echo " - XRAYS VLESS WS HTTP : 80" | tee -a log-install.txt 56 | echo " - XRAYS VMESS WS HTTP : 80" | tee -a log-install.txt 57 | echo " - XRAYS TROJAN GRPC : 443" | tee -a log-install.txt 58 | echo " - XRAYS SHADOWSOCKS GRPC : 443" | tee -a log-install.txt 59 | echo " - XRAYS VMESS GRPC : 443" | tee -a log-install.txt 60 | echo " - XRAYS VLESS GRPC : 443" | tee -a log-install.txt 61 | echo "" | tee -a log-install.txt 62 | echo " >>> Server Information & Other Features" | tee -a log-install.txt 63 | echo " - Timezone : Asia/Jakarta (GMT +7)" | tee -a log-install.txt 64 | echo " - Fail2Ban : [ON]" | tee -a log-install.txt 65 | echo " - Dflate : [ON]" | tee -a log-install.txt 66 | echo " - IPtables : [ON]" | tee -a log-install.txt 67 | echo " - Auto-Reboot : [ON]" | tee -a log-install.txt 68 | echo " - IPv6 : [OFF]" | tee -a log-install.txt 69 | echo " - Autoreboot On 05.00 GMT +7" | tee -a log-install.txt 70 | echo " - Autobackup Data" | tee -a log-install.txt 71 | echo " - Restore Data" | tee -a log-install.txt 72 | echo " - Auto Delete Expired Account" | tee -a log-install.txt 73 | echo " - Full Orders For Various Services" | tee -a log-install.txt 74 | echo " - White Label" | tee -a log-install.txt 75 | echo " - Installation Log --> /root/log-install.txt" | tee -a log-install.txt 76 | echo " Reboot 15 Sec" 77 | sleep 15 78 | cd 79 | rm -rf updatedll 80 | rm -rf updatedll.sh 81 | rm -rf setup.sh 82 | rm -rf install-xray.sh 83 | rm -rf install-tools.sh 84 | 85 | --------------------------------------------------------------------------------