sshonly.sh 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #!/bin/bash
  2. #created :
  3. # initialisasi var
  4. export DEBIAN_FRONTEND=noninteractive
  5. OS=`uname -m`;
  6. MYIP=$(wget -qO- ipv4.icanhazip.com);
  7. MYIP2="s/xxxxxxxxx/$MYIP/g";
  8. #wget https://github.com/${GitUser}/
  9. GitUser="Alamyazid"
  10. #wget https://raw.githubusercontent.com/${GitUser}/test1/main/install/ssh-vpn.sh && chmod +x ssh-vpn.sh && screen -S ssh-vpn ./ssh-vpn.sh
  11. wget https://raw.githubusercontent.com/Alamyazid/Autoscript/main/install/ssh-only.sh && chmod +x ssh-only.sh && screen -S ssh-only.sh ./ssh-only.sh
  12. wget https://raw.githubusercontent.com/Alamyazid/Autoscript/main/websocket-python/websocket.sh && chmod +x websocket.sh && screen -S websocket.sh ./websocket.sh
  13. #wget https://raw.githubusercontent.com/${GitUser}/test1/main/install/sstp.sh && chmod +x sstp.sh && screen -S sstp ./sstp.sh
  14. #wget https://raw.githubusercontent.com/${GitUser}/test1/main/install/wg.sh && chmod +x wg.sh && screen -S wg ./wg.sh
  15. #wget https://raw.githubusercontent.com/${GitUser}/test1/main/install/ssr.sh && chmod +x ssr.sh && screen -S ssr ./ssr.sh
  16. #wget https://raw.githubusercontent.com/${GitUser}/test1/main/install/shadowsocksobfs.sh && chmod +x shadowsocksobfs.sh && screen -S ss ./shadowsocksobfs.sh
  17. #wget https://raw.githubusercontent.com/${GitUser}/test1/main/install/ins-vt.sh && chmod +x ins-vt.sh && sed -i -e 's/\r$//' ins-vt.sh && screen -S v2ray ./ins-vt.sh
  18. #wget https://raw.githubusercontent.com/${GitUser}/test1/main/install/ipsec.sh && chmod +x ipsec.sh && screen -S ipsec ./ipsec.sh
  19. rm -f /root/ssh-vpn.sh
  20. rm -f /root/hanyassh.sh
  21. rm -f /root/websocket.sh
  22. rm -f /root/sstp.sh
  23. rm -f /root/wg.sh
  24. rm -f /root/ssr.sh
  25. rm -f /root/shadowsocksobfs.sh
  26. rm -f /root/ins-vt.sh
  27. rm -f /root/go.sh
  28. rm -f /root/ipsec.sh
  29. history -c
  30. echo "1.1" > /home/ver
  31. clear
  32. echo " "
  33. echo "Installation has been completed!!"
  34. echo " "
  35. echo "=================================-Script Mod SL YNTKTS-===========================" | tee -a log-install.txt
  36. echo "" | tee -a log-install.txt
  37. echo "----------------------------------------------------------------------------------" | tee -a log-install.txt
  38. echo "" | tee -a log-install.txt
  39. echo " >>> Service & Port" | tee -a log-install.txt
  40. echo " - OpenSSH : 22, 500" | tee -a log-install.txt
  41. echo " - SSH-WS Python OpenSSH : 80" | tee -a log-install.txt
  42. echo " - SSH-WS Python Dropbear : 8880" | tee -a log-install.txt
  43. echo " - SSH-WS Python SSL/TLS : 443" | tee -a log-install.txt
  44. echo " - Stunnel4 SSL/TLS : 444, 777" | tee -a log-install.txt
  45. echo " - Dropbear : 143, 109" | tee -a log-install.txt
  46. echo " - Badvpn : 7100, 7200, 7300" | tee -a log-install.txt
  47. echo " - Nginx : 81" | tee -a log-install.txt
  48. echo "" | tee -a log-install.txt
  49. echo " >>> Server Information & Other Features" | tee -a log-install.txt
  50. echo " - Timezone : Asia/Jakarta (GMT +7)" | tee -a log-install.txt
  51. echo " - Fail2Ban : [ON]" | tee -a log-install.txt
  52. echo " - Dflate : [ON]" | tee -a log-install.txt
  53. echo " - IPtables : [ON]" | tee -a log-install.txt
  54. echo " - Auto-Reboot : [ON]" | tee -a log-install.txt
  55. echo " - IPv6 : [OFF]" | tee -a log-install.txt
  56. echo " - Autoreboot On 00.00 GMT +7" | tee -a log-install.txt
  57. echo " - Installation Log --> /root/log-install.txt" | tee -a log-install.txt
  58. echo "" | tee -a log-install.txt
  59. echo "------------------------------------------Mod by SL------------------------------------------" | tee -a log-install.txt
  60. echo ""
  61. echo " Reboot 10 Sec"
  62. sleep 10
  63. reboot