forked from fisabiliyusri/XRAY-MANTAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
84 lines (83 loc) · 3.75 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
if [ "${EUID}" -ne 0 ]; then
echo "You need to run this script as root"
exit 1
fi
if [ "$(systemd-detect-virt)" == "openvz" ]; then
echo "OpenVZ is not supported"
exit 1
fi
# ==========================================
# Color
RED='\033[0;31m'
NC='\033[0m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
LIGHT='\033[0;37m'
# =========================================
# Getting
MYIP=$(wget -qO- ipinfo.io/ip);
echo "Checking VPS"
IZIN=$(wget -qO- ipinfo.io/ip);
clear
mkdir /var/lib/crot;
echo "IP=" >> /var/lib/crot/ipvps.conf
cd
#install tools/alat
wget https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/install-tools.sh && chmod +x install-tools.sh && ./install-tools.sh
#
#Instal Xray
wget https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/install-xray.sh && chmod +x install-xray.sh && ./install-xray.sh
#install xmenu
wget https://raw.githubusercontent.com/fisabiliyusri/XRAY-MANTAP/main/menu/updatedll.sh && chmod +x updatedll.sh && ./updatedll.sh
#
#SELESAI
echo " "
echo "Installation has been completed!!"echo " "
echo "============================================================================" | tee -a log-install.txt
echo "" | tee -a log-install.txt
echo "----------------------------------------------------------------------------" | tee -a log-install.txt
echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a log-install.txt
echo -e " SCRIPT MANTAP-XRAY Multi Port" | tee -a log-install.txt
echo -e "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | tee -a log-install.txt
echo "" | tee -a log-install.txt
echo " >>> Service & Port" | tee -a log-install.txt
echo " - Nginx : 89" | tee -a log-install.txt
echo " - XRAYS TROJAN WS TLS : 443" | tee -a log-install.txt
echo " - XRAYS SHADOWSOCKS WS TLS : 443" | tee -a log-install.txt
echo " - XRAYS VLESS WS TLS : 443" | tee -a log-install.txt
echo " - XRAYS VMESS WS TLS : 443" | tee -a log-install.txt
echo " - XRAYS TROJAN WS HTTP : 80" | tee -a log-install.txt
echo " - XRAYS SHADOWSOCKS WS HTTP : 80" | tee -a log-install.txt
echo " - XRAYS VLESS WS HTTP : 80" | tee -a log-install.txt
echo " - XRAYS VMESS WS HTTP : 80" | tee -a log-install.txt
echo " - XRAYS TROJAN GRPC : 443" | tee -a log-install.txt
echo " - XRAYS SHADOWSOCKS GRPC : 443" | tee -a log-install.txt
echo " - XRAYS VMESS GRPC : 443" | tee -a log-install.txt
echo " - XRAYS VLESS GRPC : 443" | tee -a log-install.txt
echo "" | tee -a log-install.txt
echo " >>> Server Information & Other Features" | tee -a log-install.txt
echo " - Timezone : Asia/Jakarta (GMT +7)" | tee -a log-install.txt
echo " - Fail2Ban : [ON]" | tee -a log-install.txt
echo " - Dflate : [ON]" | tee -a log-install.txt
echo " - IPtables : [ON]" | tee -a log-install.txt
echo " - Auto-Reboot : [ON]" | tee -a log-install.txt
echo " - IPv6 : [OFF]" | tee -a log-install.txt
echo " - Autoreboot On 05.00 GMT +7" | tee -a log-install.txt
echo " - Autobackup Data" | tee -a log-install.txt
echo " - Restore Data" | tee -a log-install.txt
echo " - Auto Delete Expired Account" | tee -a log-install.txt
echo " - Full Orders For Various Services" | tee -a log-install.txt
echo " - White Label" | tee -a log-install.txt
echo " - Installation Log --> /root/log-install.txt" | tee -a log-install.txt
echo " Reboot 15 Sec"
sleep 15
cd
rm -rf updatedll
rm -rf updatedll.sh
rm -rf setup.sh
rm -rf install-xray.sh
rm -rf install-tools.sh