deb10 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #!/bin/bash
  2. #VPS Script By : Oreooo
  3. #Contact Me TELEGRAM : https://t.me/Oreooo
  4. # Check Root
  5. if [ "${EUID}" -ne 0 ]; then
  6. echo "You need to run this script as root"
  7. exit 1
  8. fi
  9. # Check System
  10. if [ "$(systemd-detect-virt)" == "openvz" ]; then
  11. echo "OpenVZ is not supported"
  12. exit 1
  13. fi
  14. # Colours
  15. red='\e[1;31m'
  16. green='\e[0;32m'
  17. NC='\e[0m'
  18. # Requirement
  19. apt-get install unzip
  20. apt update -y
  21. apt upgrade -y
  22. update-grub
  23. apt install -y bzip2 gzip coreutils curl
  24. sysctl -w net.ipv6.conf.all.disable_ipv6=1 && sysctl -w net.ipv6.conf.default.disable_ipv6=1
  25. # Script Access
  26. MYIP=$(wget -qO- icanhazip.com);
  27. echo -e "${green}CHECKING SCRIPT ACCESS${NC}"
  28. IZIN=$( curl https://raw.githubusercontent.com/JanganCrut/Deb9-10/main/Resources/Users/ipvps | grep $MYIP )
  29. if [[ $MYIP = $IZIN ]]; then
  30. echo -e "${green}ACCESS GRANTED...${NC}"
  31. else
  32. echo -e "${green}ACCESS DENIED...${NC}"
  33. fi
  34. # Subdomain Settings
  35. mkdir /var/lib/premium-script;
  36. echo -e "${green}ENTER THE VPS SUBDOMAIN/HOSTNAME, IF NOT AVAILABLE, PLEASE CLICK ENTER${NC}"
  37. read -p "Hostname / Domain: " host
  38. echo "IP=$host" >> /var/lib/premium-script/ipvps.conf
  39. echo "$host" >> /root/domain
  40. # Install SSH/OVPN
  41. wget https://raw.githubusercontent.com/JanganCrut/Deb9-10/main/Resources/Services/Setup && chmod +x Setup && screen -S Setup ./Setup
  42. # Install Script
  43. # download script
  44. cd
  45. wget https://raw.githubusercontent.com/JanganCrut/Deb9-10/main/Resources/Menu/install-premiumscript.sh -O - -o /dev/null|sh
  46. # Restarting Services
  47. chown -R www-data:www-data /home/vps/public_html
  48. /etc/init.d/nginx start
  49. /etc/init.d/openvpn restart
  50. /etc/init.d/cron restart
  51. /etc/init.d/ssh restart
  52. /etc/init.d/dropbear restart
  53. /etc/init.d/fail2ban restart
  54. /etc/init.d/stunnel4 restart
  55. service uwsgi restart
  56. systemctl daemon-reload
  57. /etc/init.d/squid restart
  58. /etc/init.d/webmin restart
  59. screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7100 --max-clients 500
  60. screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7200 --max-clients 500
  61. screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 500
  62. # Remove Installation Files
  63. rm -f /root/Setup
  64. rm -f /root/ins-vt.sh
  65. # Finishing
  66. history -c
  67. echo "unset HISTFILE" >> /etc/profile
  68. cd
  69. # Script Information
  70. echo "1.1" > /home/ver
  71. clear
  72. echo " "
  73. echo "INSTALLATION HAS BEEN COMPLETED!!"
  74. echo " "
  75. echo "===========================-AUTOSCRIPT PREMIUM-============================" | tee -a log-install.txt
  76. echo "" | tee -a log-install.txt
  77. echo "---------------------------------------------------------------------------" | tee -a log-install.txt
  78. echo "" | tee -a log-install.txt
  79. echo " >>> Service & Port" | tee -a log-install.txt
  80. echo " - OpenSSH : 22" | tee -a log-install.txt
  81. echo " - OpenVPN : TCP 1194" | tee -a log-install.txt
  82. echo " - Stunnel4 : 442" | tee -a log-install.txt
  83. echo " - Dropbear : 109, 143" | tee -a log-install.txt
  84. echo " - Squid Proxy : 3128, 8080 (limit to IP Server)" | tee -a log-install.txt
  85. echo " - Badvpn : 7100, 7200, 7300" | tee -a log-install.txt
  86. echo " - Nginx : 80, 89" | tee -a log-install.txt
  87. echo " - V2RAY Vmess TLS : 443" | tee -a log-install.txt
  88. echo " - V2RAY Vmess None TLS : 82" | tee -a log-install.txt
  89. echo " - V2RAY Vless TLS : 5443" | tee -a log-install.txt
  90. echo " - V2RAY Vless None TLS : 880" | tee -a log-install.txt
  91. echo "" | tee -a log-install.txt
  92. echo " >>> Server Information & Other Features" | tee -a log-install.txt
  93. echo " - Timezone : Asia/Kuala_Lumpur (GMT +8)" | tee -a log-install.txt
  94. echo " - Fail2Ban : [ON]" | tee -a log-install.txt
  95. echo " - Dflate : [ON]" | tee -a log-install.txt
  96. echo " - IPtables : [ON]" | tee -a log-install.txt
  97. echo " - Auto-Reboot : [OFF]" | tee -a log-install.txt
  98. echo " - IPv6 : [OFF]" | tee -a log-install.txt
  99. echo " - Webmin Login Page : http://$MYIP:10000" | tee -a log-install.txt
  100. echo " - Download OpenVPN Config : http://$MYIP/Oreooo.ovpn" | tee -a log-install.txt
  101. echo " - Simple OVPN & SSH Panel : http://$MYIP/" | tee -a log-install.txt
  102. echo " - OpenVPN Monitor Webpage : http://$MYIP:89/" | tee -a log-install.txt
  103. echo "" | tee -a log-install.txt
  104. echo " - Dev/Main : Oreooo" | tee -a log-install.txt
  105. echo " - Telegram : t.me/Oreooo" | tee -a log-install.txt
  106. echo " - Whatsapp : +6018-2242 660" | tee -a log-install.txt
  107. echo " - Facebook : Fb.me/TaufiqHidayat" | tee -a log-install.txt
  108. echo "---------------------------------------------------------------------------" | tee -a log-install.txt
  109. echo "" | tee -a log-install.txt
  110. echo "===========================-==================-============================" | tee -a log-install.txt
  111. echo ""
  112. rm -f Debian10