setup-kadal.sh 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. IZIN=$( curl https://www.ipang.me/ip | grep $MYIP )
  15. if [ $MYIP = $IZIN ]; then
  16. echo -e "${green}Permission Accepted...${NC}"
  17. else
  18. echo -e "${red}Permission Denied!${NC}";
  19. echo "Please Contact Admin"
  20. echo "Telegram t.me/jessy009"
  21. rm -f setup.sh
  22. exit 0
  23. fi
  24. if [ -f "/etc/v2ray/domain" ]; then
  25. echo "Script Already Installed"
  26. exit 0
  27. fi
  28. mkdir /var/lib/premium-script;
  29. echo "IP=" >> /var/lib/premium-script/ipvps.conf
  30. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/kadal-cf.sh && chmod +x kadal-cf.sh && ./kadal-cf.sh
  31. #install ssh ovpn
  32. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/ssh-vpn/ssh-vpn-kadal.sh && chmod +x ssh-vpn-kadal.sh && screen -S ssh-vpn-kadal ./ssh-vpn-kadal.sh
  33. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/sstp/sstp.sh && chmod +x sstp.sh && screen -S sstp ./sstp.sh
  34. #install ssr
  35. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/ssr/ssr.sh && chmod +x ssr.sh && screen -S ssr ./ssr.sh
  36. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/ss/sodosok.sh && chmod +x sodosok.sh && screen -S ss ./sodosok.sh
  37. #installwg
  38. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/wg/wg.sh && chmod +x wg.sh && screen -S wg ./wg.sh
  39. #install v2ray
  40. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/ws/ins-vt.sh && chmod +x ins-vt.sh && screen -S v2ray ./ins-vt.sh
  41. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/trojan/ins-trojan.sh && chmod +x ins-trojan.sh && screen -S trojan-go ./ins-trojan.sh
  42. #install L2TP
  43. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/l2tp-pptp/ipsec.sh && chmod +x ipsec.sh && screen -S ipsec ./ipsec.sh
  44. wget https://raw.githubusercontent.com/janda-baper/janda-baper/main/repo/set-br/set-br.sh && chmod +x set-br.sh && ./set-br.sh
  45. rm -f /root/ssh-vpn.sh
  46. rm -f /root/sstp.sh
  47. rm -f /root/wg.sh
  48. rm -f /root/ss.sh
  49. rm -f /root/ssr.sh
  50. rm -f /root/ins-vt.sh
  51. rm -f /root/ipsec.sh
  52. rm -f /root/set-br.sh
  53. rm -f /root/cf.sh
  54. rm -f /root/ins-trojang.sh
  55. cat <<EOF> /etc/systemd/system/autosett.service
  56. [Unit]
  57. Description=autosetting
  58. Documentation=https://kadal-squad.xyz
  59. [Service]
  60. Type=oneshot
  61. ExecStart=/bin/bash /etc/set.sh
  62. RemainAfterExit=yes
  63. [Install]
  64. WantedBy=multi-user.target
  65. EOF
  66. systemctl daemon-reload
  67. systemctl enable autosett
  68. wget -O /etc/set.sh "https://raw.githubusercontent.com/lesta-1/sc/main/set.sh"
  69. chmod +x /etc/set.sh
  70. history -c
  71. echo "1.2" > /home/ver
  72. clear
  73. echo " "
  74. echo "Installation has been completed!!"
  75. echo " "
  76. echo "=================================-KADAL's SQUAD-===========================" | tee -a log-install.txt
  77. echo "" | tee -a log-install.txt
  78. echo "--------------------------------------------------------------------------------" | tee -a log-install.txt
  79. echo "" | tee -a log-install.txt
  80. echo " >>> Service & Port" | tee -a log-install.txt
  81. echo " - OpenSSH : 22" | tee -a log-install.txt
  82. echo " - OpenVPN : TCP 1194, UDP 2200, SSL 442" | tee -a log-install.txt
  83. echo " - Stunnel4 : 222, 4435" | tee -a log-install.txt
  84. echo " - Dropbear : 109, 143" | tee -a log-install.txt
  85. echo " - Squid Proxy : 3128, 8080 (limit to IP Server)" | tee -a log-install.txt
  86. echo " - Badvpn : 7100, 7200, 7300" | tee -a log-install.txt
  87. echo " - Nginx : 81" | tee -a log-install.txt
  88. echo " - Wireguard : 7070" | tee -a log-install.txt
  89. echo " - L2TP/IPSEC VPN : 1701" | tee -a log-install.txt
  90. echo " - PPTP VPN : 1732" | tee -a log-install.txt
  91. echo " - SSTP VPN : 444" | tee -a log-install.txt
  92. echo " - Shadowsocks-R : 1443-1543" | tee -a log-install.txt
  93. echo " - SS-OBFS TLS : 2443-2543" | tee -a log-install.txt
  94. echo " - SS-OBFS HTTP : 3443-3543" | tee -a log-install.txt
  95. echo " - V2RAY Vmess TLS : 8443" | tee -a log-install.txt
  96. echo " - V2RAY Vmess None TLS : 80" | tee -a log-install.txt
  97. echo " - V2RAY Vless TLS : 2083" | tee -a log-install.txt
  98. echo " - V2RAY Vless None TLS : 8880" | tee -a log-install.txt
  99. echo " - Trojan : 2087" | tee -a log-install.txt
  100. echo " - Trojango : 443" | tee -a log-install.txt
  101. echo "" | tee -a log-install.txt
  102. echo " >>> Server Information & Other Features" | tee -a log-install.txt
  103. echo " - Timezone : Asia/Jakarta (GMT +7)" | tee -a log-install.txt
  104. echo " - Fail2Ban : [ON]" | tee -a log-install.txt
  105. echo " - Dflate : [ON]" | tee -a log-install.txt
  106. echo " - IPtables : [ON]" | tee -a log-install.txt
  107. echo " - Auto-Reboot : [ON]" | tee -a log-install.txt
  108. echo " - IPv6 : [OFF]" | tee -a log-install.txt
  109. echo " - Autoreboot On 05.00 GMT +7" | tee -a log-install.txt
  110. echo " - Autobackup Data" | tee -a log-install.txt
  111. echo " - Restore Data" | tee -a log-install.txt
  112. echo " - Auto Delete Expired Account" | tee -a log-install.txt
  113. echo " - Full Orders For Various Services" | tee -a log-install.txt
  114. echo " - White Label" | tee -a log-install.txt
  115. echo " - Installation Log --> /root/log-install.txt" | tee -a log-install.txt
  116. echo "" | tee -a log-install.txt
  117. echo " - Dev/Main : RPJ WONOSOBO" | tee -a log-install.txt
  118. echo " - Telegram : T.me/RPJ258" | tee -a log-install.txt
  119. echo " - Instagram : @Daponedan" | tee -a log-install.txt
  120. echo " - Whatsapp : 6285601438924" | tee -a log-install.txt
  121. echo " - Facebook : https://www.facebook.com/" | tee -a log-install.txt
  122. echo "------------------Script Created By Chock Fighter Academy-----------------" | tee -a log-install.txt
  123. echo ""
  124. echo " Reboot 15 Sec"
  125. sleep 15
  126. rm -f setup-kadal.sh