install.sh 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. RED='\e[1;31m'
  11. GREEN='\e[0;32m'
  12. BLUE='\e[0;34m'
  13. NC='\e[0m'
  14. # Variable Warna
  15. based="\e[39m"
  16. danger="\e[91m"
  17. warning="\e[93m"
  18. success="\e[92m"
  19. echo -e "\n[${warning}Permission$based] > Masukan Password :"
  20. read -r -s Password
  21. case "$Password" in
  22. evoteammalaysia )
  23. echo -e "\n[${success}SUCCESS$based] > Password benar"
  24. echo -e "[${warning}Output$based] > Kamu diizinkan :)"
  25. ;;
  26. * )
  27. echo -e "\n[${danger}ERROR$based] > Password salah"
  28. echo -e "[${warning}Output$based] > Kamu tidak diizinkan :'("
  29. ;;
  30. esac
  31. if [ -f "/etc/v2ray/domain" ]; then
  32. echo "Script Already Installed"
  33. exit 0
  34. fi
  35. mkdir /var/lib/premium-script;
  36. echo "IP=" >> /var/lib/premium-script/ipvps.conf
  37. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/cf.sh && chmod +x cf.sh && ./cf.sh
  38. #install ssh ovpn
  39. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/ssh-vpn.sh && chmod +x ssh-vpn.sh && ./ssh-vpn.sh
  40. #sstp
  41. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/sstp.sh && chmod +x sstp.sh && ./sstp.sh
  42. #install ssr
  43. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/ssr.sh && chmod +x ssr.sh && ./ssr.sh
  44. #sodosok
  45. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/sodosok.sh && chmod +x sodosok.sh && ./sodosok.sh
  46. #installwg
  47. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/wg.sh && chmod +x wg.sh && ./wg.sh
  48. #install v2ray
  49. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/ins-vt.sh && chmod +x ins-vt.sh && ./ins-vt.sh
  50. #install L2TP
  51. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/ipsec.sh && chmod +x ipsec.sh && ./ipsec.sh
  52. #br-set
  53. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/set-br.sh && chmod +x set-br.sh && ./set-br.sh
  54. # Set Index
  55. cd /home/vps/public_html
  56. wget https://raw.githubusercontent.com/EvoTeamMalaysia/MyOwnIndex/main/index.html
  57. #install ohp-server
  58. wget https://raw.githubusercontent.com/EvoTeamMalaysia/AutoScript/main/ohp.sh && chmod +x ohp.sh && ./ohp.sh
  59. cd
  60. #install figlet & lolcat
  61. sudo apt-get install figlet
  62. sudo apt-get install ruby
  63. sudo gem install lolcat
  64. rm -f /root/ssh-vpn.sh
  65. rm -f /root/sstp.sh
  66. rm -f /root/wg.sh
  67. rm -f /root/ss.sh
  68. rm -f /root/ssr.sh
  69. rm -f /root/ins-vt.sh
  70. rm -f /root/ipsec.sh
  71. rm -f /root/set-br.sh
  72. rm -f /root/ohp.sh
  73. cat <<EOF> /etc/systemd/system/autosett.service
  74. [Unit]
  75. Description=autosetting
  76. Documentation=https://www.abidz.ga
  77. [Service]
  78. Type=oneshot
  79. ExecStart=/bin/bash /etc/set.sh
  80. RemainAfterExit=yes
  81. [Install]
  82. WantedBy=multi-user.target
  83. EOF
  84. systemctl daemon-reload
  85. systemctl enable autosett
  86. history -c
  87. echo "1.2" > /home/ver
  88. clear
  89. echo " "
  90. sudo hostnamectl set-hostname SETUP-BY-OKKAYKAYYO
  91. figlet -c Instalation Success | lolcat
  92. echo " "
  93. echo "--------------------------------------------------------------------------------" | tee -a log-install.txt
  94. echo "================================= Premium Autoscript ===========================" | tee -a log-install.txt
  95. echo "--------------------------------------------------------------------------------" | tee -a log-install.txt
  96. echo "" | tee -a log-install.txt
  97. echo " >>> Service & Port" | tee -a log-install.txt
  98. echo " - OpenSSH : 22" | tee -a log-install.txt
  99. echo " - OpenVPN : TCP 1194, UDP 2200, SSL 442, OHP 8087" | tee -a log-install.txt
  100. echo " - Stunnel4 : 443, 777" | tee -a log-install.txt
  101. echo " - Dropbear : 109, 143" | tee -a log-install.txt
  102. echo " - Squid Proxy : 3128, 8080 (limit to IP Server)" | tee -a log-install.txt
  103. echo " - Badvpn : 7100, 7200, 7300" | tee -a log-install.txt
  104. echo " - Nginx : 81" | tee -a log-install.txt
  105. echo " - Wireguard : 7070" | tee -a log-install.txt
  106. echo " - L2TP/IPSEC VPN : 1701" | tee -a log-install.txt
  107. echo " - PPTP VPN : 1732" | tee -a log-install.txt
  108. echo " - SSTP VPN : 444" | tee -a log-install.txt
  109. echo " - Shadowsocks-R : 1443-1543" | tee -a log-install.txt
  110. echo " - SS-OBFS TLS : 2443-2543" | tee -a log-install.txt
  111. echo " - SS-OBFS HTTP : 3443-3543" | tee -a log-install.txt
  112. echo " - V2RAY Vmess TLS : 8443" | tee -a log-install.txt
  113. echo " - V2RAY Vmess None TLS : 80" | tee -a log-install.txt
  114. echo " - V2RAY Vless TLS : 2083" | tee -a log-install.txt
  115. echo " - V2RAY Vless None TLS : 8880" | tee -a log-install.txt
  116. echo " - Trojan : 2087" | tee -a log-install.txt
  117. echo "" | tee -a log-install.txt
  118. echo "--------------------------------------------------------------------------------" | tee -a log-install.txt
  119. echo "" | tee -a log-install.txt
  120. echo " >>> Server Information & Other Features" | tee -a log-install.txt
  121. echo " - Timezone : Asia/Malaysia (GMT +8)" | tee -a log-install.txt
  122. echo " - Fail2Ban : [ON]" | tee -a log-install.txt
  123. echo " - Dflate : [ON]" | tee -a log-install.txt
  124. echo " - IPtables : [ON]" | tee -a log-install.txt
  125. echo " - Auto-Reboot : [OFF]" | tee -a log-install.txt
  126. echo " - IPv6 : [OFF]" | tee -a log-install.txt
  127. echo " - Autobackup Data" | tee -a log-install.txt
  128. echo " - Restore Data" | tee -a log-install.txt
  129. echo " - Auto Delete Expired Account" | tee -a log-install.txt
  130. echo " - Full Orders For Various Services" | tee -a log-install.txt
  131. echo " - White Label" | tee -a log-install.txt
  132. echo " - Installation Log --> /root/log-install.txt" | tee -a log-install.txt
  133. echo "" | tee -a log-install.txt
  134. echo "--------------------------------------------------------------------------------" | tee -a log-install.txt
  135. echo "" | tee -a log-install.txt
  136. echo " - Script By : EvoTeamMalaysia " | tee -a log-install.txt
  137. echo " - Telegram : T.me/EvoTeamMalaysia" | tee -a log-install.txt
  138. echo "" | tee -a log-install.txt
  139. echo "================================================================================" | tee -a log-install.txt
  140. echo "-------------------------- Created By EvoTeamMalaysia ---------------------------" | tee -a log-install.txt
  141. echo "================================================================================" | tee -a log-install.txt
  142. echo ""
  143. echo " Your VPS Will Be Automatical Reboot In 6 s"
  144. rm -f install.sh
  145. sleep 6
  146. reboot