setup.sh 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. NC='\e[0m'
  13. MYIP=$(wget -qO- ifconfig.me/ip);
  14. if [ -f "/etc/v2ray/domain" ]; then
  15. echo "Script Already Installed"
  16. exit 0
  17. fi
  18. mkdir /var/lib/premium-script;
  19. echo "IP=" >> /var/lib/premium-script/ipvps.conf
  20. wget https://raw.githubusercontent.com/Alamyazid/rev/main/cf.sh && chmod +x cf.sh && ./cf.sh
  21. #install ssh ovpn
  22. wget https://raw.githubusercontent.com/Alamyazid/rev/main/ssh.sh && chmod +x ssh.sh && screen -S ssh ./ssh.sh
  23. wget https://raw.githubusercontent.com/Alamyazid/rev/main/sstp.sh && chmod +x sstp.sh && screen -S sstp ./sstp.sh
  24. #install ssr
  25. wget https://raw.githubusercontent.com/Alamyazid/rev/main/ssr.sh && chmod +x ssr.sh && screen -S ssr ./ssr.sh
  26. wget https://raw.githubusercontent.com/Alamyazid/rev/main/sodosok.sh && chmod +x sodosok.sh && screen -S ss ./sodosok.sh
  27. #installwg
  28. wget https://raw.githubusercontent.com/Alamyazid/rev/main/wg.sh && chmod +x wg.sh && screen -S wg ./wg.sh
  29. #install v2ray
  30. wget https://raw.githubusercontent.com/Alamyazid/rev/main/ins-vt.sh && chmod +x ins-vt.sh && screen -S v2ray ./ins-vt.sh
  31. #install L2TP
  32. wget https://raw.githubusercontent.com/Alamyazid/rev/main/ipsec.sh && chmod +x ipsec.sh && screen -S ipsec ./ipsec.sh
  33. wget https://raw.githubusercontent.com/Alamyazid/rev/main/set-br.sh && chmod +x set-br.sh && ./set-br.sh
  34. wget https://raw.githubusercontent.com/Alamyazid/Autoscript/main/websocket-python/websocket.sh && chmod +x websocket.sh && screen -S websocket.sh ./websocket.sh
  35. rm -f /root/ssh.sh
  36. rm -f /root/weleh.sh
  37. rm -f /root/sstp.sh
  38. rm -f /root/wg.sh
  39. rm -f /root/ss.sh
  40. rm -f /root/ssr.sh
  41. rm -f /root/ins-vt.sh
  42. rm -f /root/ipsec.sh
  43. rm -f /root/set-br.sh
  44. rm -f /root/cf.sh
  45. rm -f /root/websocket.sh
  46. cat <<EOF> /etc/systemd/system/autosett.service
  47. [Unit]
  48. Description=autosetting
  49. Documentation=https://lestakun.tech
  50. [Service]
  51. Type=oneshot
  52. ExecStart=/bin/bash /etc/set.sh
  53. RemainAfterExit=yes
  54. [Install]
  55. WantedBy=multi-user.target
  56. EOF
  57. systemctl daemon-reload
  58. systemctl enable autosett
  59. wget -O /etc/set.sh "https://raw.githubusercontent.com/Alamyazid/rev/main/set.sh"
  60. chmod +x /etc/set.sh
  61. history -c
  62. echo "1.2" > /home/ver
  63. clear
  64. echo " "
  65. echo "Installation has been completed!!"
  66. echo " "
  67. echo "=================================-RPJ WONOSOBO-===========================" | tee -a log-install.txt
  68. echo "" | tee -a log-install.txt
  69. echo "--------------------------------------------------------------------------------" | tee -a log-install.txt
  70. echo "" | tee -a log-install.txt
  71. echo " >>> Service & Port" | tee -a log-install.txt
  72. echo " - OpenSSH : 22" | tee -a log-install.txt
  73. echo " - OpenVPN : TCP 1194, UDP 2200, SSL 442" | tee -a log-install.txt
  74. echo " - Stunnel4 : 222, 777" | tee -a log-install.txt
  75. echo " - Dropbear : 109, 143" | tee -a log-install.txt
  76. echo " - Squid Proxy : 3128, 8080(limit to IP Server)" | tee -a log-install.txt
  77. echo " - Badvpn : 7100, 7200, 7300" | tee -a log-install.txt
  78. echo " - Nginx : 81" | tee -a log-install.txt
  79. echo " - Wireguard : 7070" | tee -a log-install.txt
  80. echo " - L2TP/IPSEC VPN : 1701" | tee -a log-install.txt
  81. echo " - PPTP VPN : 1732" | tee -a log-install.txt
  82. echo " - SSTP VPN : 444" | tee -a log-install.txt
  83. echo " - Shadowsocks-R : 1443-1543" | tee -a log-install.txt
  84. echo " - SS-OBFS TLS : 2443-2543" | tee -a log-install.txt
  85. echo " - SS-OBFS HTTP : 3443-3543" | tee -a log-install.txt
  86. echo " - V2RAY Vmess TLS : 8443" | tee -a log-install.txt
  87. echo " - V2RAY Vmess None TLS : 80" | tee -a log-install.txt
  88. echo " - V2RAY Vless TLS : 2083" | tee -a log-install.txt
  89. echo " - V2RAY Vless None TLS : 8880" | tee -a log-install.txt
  90. echo " - Trojan : 2087" | 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/Jakarta (GMT +7)" | 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 : [ON]" | tee -a log-install.txt
  98. echo " - IPv6 : [OFF]" | tee -a log-install.txt
  99. echo " - Autoreboot On 05.00 GMT +7" | tee -a log-install.txt
  100. echo " - Autobackup Data" | tee -a log-install.txt
  101. echo " - Restore Data" | tee -a log-install.txt
  102. echo " - Auto Delete Expired Account" | tee -a log-install.txt
  103. echo " - Full Orders For Various Services" | tee -a log-install.txt
  104. echo " - White Label" | tee -a log-install.txt
  105. echo " - Installation Log --> /root/log-install.txt" | tee -a log-install.txt
  106. echo "" | tee -a log-install.txt
  107. echo " - Dev/Main : RPJ WONOSOBO" | tee -a log-install.txt
  108. echo " - Telegram : T.me/RPJ258" | tee -a log-install.txt
  109. echo " - Instagram : @Daponedan" | tee -a log-install.txt
  110. echo " - Whatsapp : 6285601438924" | tee -a log-install.txt
  111. echo " - Facebook : https://www.facebook.com/dapon" | tee -a log-install.txt
  112. echo "------------------Script Created By Chock Fighter Academy-----------------" | tee -a log-install.txt
  113. echo ""
  114. echo " Reboot 15 Sec"
  115. sleep 15
  116. rm -f setup.sh
  117. reboot