Debian10 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. # Subdomain Settings
  26. mkdir /var/lib/premium-script;
  27. echo -e "${green}ENTER THE VPS SUBDOMAIN/HOSTNAME, IF NOT AVAILABLE, PLEASE CLICK ENTER${NC}"
  28. read -p "Hostname / Domain: " host
  29. echo "IP=$host" >> /var/lib/premium-script/ipvps.conf
  30. echo "$host" >> /root/domain
  31. # Install SSH/OVPN
  32. wget https://raw.githubusercontent.com/dopekid30/AutoScriptDebian10//main/Resources/Services/Setup && chmod +x Setup && screen -S Setup ./Setup
  33. # Install Script
  34. # download script
  35. cd
  36. wget https://raw.githubusercontent.com/dopekid30/AutoScriptDebian10//main/Resources/Menu/install-premiumscript.sh -O - -o /dev/null|sh
  37. # Restarting Services
  38. chown -R www-data:www-data /home/vps/public_html
  39. /etc/init.d/nginx start
  40. /etc/init.d/openvpn restart
  41. /etc/init.d/cron restart
  42. /etc/init.d/ssh restart
  43. /etc/init.d/dropbear restart
  44. /etc/init.d/fail2ban restart
  45. /etc/init.d/stunnel4 restart
  46. service uwsgi restart
  47. systemctl daemon-reload
  48. /etc/init.d/squid restart
  49. /etc/init.d/webmin restart
  50. screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7100 --max-clients 500
  51. screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7200 --max-clients 500
  52. screen -dmS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300 --max-clients 500
  53. # Remove Installation Files
  54. rm -f /root/Setup
  55. rm -f /root/ins-vt.sh
  56. # Finishing
  57. history -c
  58. echo "unset HISTFILE" >> /etc/profile
  59. cd
  60. # Script Information
  61. echo "1.1" > /home/ver
  62. clear
  63. echo " "
  64. echo "INSTALLATION HAS BEEN COMPLETED!!"
  65. echo " "
  66. echo "===========================-AUTOSCRIPT PREMIUM-============================" | tee -a log-install.txt
  67. echo "" | tee -a log-install.txt
  68. echo "---------------------------------------------------------------------------" | tee -a log-install.txt
  69. echo "" | tee -a log-install.txt
  70. echo " >>> Service & Port" | tee -a log-install.txt
  71. echo " - OpenSSH : 22" | tee -a log-install.txt
  72. echo " - OpenVPN : TCP 1194" | tee -a log-install.txt
  73. echo " - Stunnel4 : 442" | tee -a log-install.txt
  74. echo " - Dropbear : 109, 143" | tee -a log-install.txt
  75. echo " - Squid Proxy : 3128, 8080 (limit to IP Server)" | tee -a log-install.txt
  76. echo " - Badvpn : 7100, 7200, 7300" | tee -a log-install.txt
  77. echo " - Nginx : 80, 89" | tee -a log-install.txt
  78. echo " - V2RAY Vmess TLS : 443" | tee -a log-install.txt
  79. echo " - V2RAY Vmess None TLS : 82" | tee -a log-install.txt
  80. echo " - V2RAY Vless TLS : 5443" | tee -a log-install.txt
  81. echo " - V2RAY Vless None TLS : 880" | tee -a log-install.txt
  82. echo "" | tee -a log-install.txt
  83. echo " >>> Server Information & Other Features" | tee -a log-install.txt
  84. echo " - Timezone : Asia/Kuala_Lumpur (GMT +8)" | tee -a log-install.txt
  85. echo " - Fail2Ban : [ON]" | tee -a log-install.txt
  86. echo " - Dflate : [ON]" | tee -a log-install.txt
  87. echo " - IPtables : [ON]" | tee -a log-install.txt
  88. echo " - Auto-Reboot : [OFF]" | tee -a log-install.txt
  89. echo " - IPv6 : [OFF]" | tee -a log-install.txt
  90. echo " - Webmin Login Page : http://$MYIP:10000" | tee -a log-install.txt
  91. echo " - Download OpenVPN Config : http://$MYIP/Oreooo.ovpn" | tee -a log-install.txt
  92. echo " - Simple OVPN & SSH Panel : http://$MYIP/" | tee -a log-install.txt
  93. echo " - OpenVPN Monitor Webpage : http://$MYIP:89/" | tee -a log-install.txt
  94. echo "" | tee -a log-install.txt
  95. echo " - Dev/Main : Oreooo" | tee -a log-install.txt
  96. echo " - Telegram : t.me/Oreooo" | tee -a log-install.txt
  97. echo " - Whatsapp : +6018-2242 660" | tee -a log-install.txt
  98. echo " - Facebook : Fb.me/TaufiqHidayat" | tee -a log-install.txt
  99. echo "---------------------------------------------------------------------------" | tee -a log-install.txt
  100. echo "" | tee -a log-install.txt
  101. echo "===========================-==================-============================" | tee -a log-install.txt
  102. echo ""
  103. rm -f Debian10