edu.sh 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #!/bin/bash
  2. # Proxy For Edukasi Ssh & Ovpn Websocket
  3. # ====================================
  4. # Getting Proxy Template
  5. wget -q -O /usr/local/bin/edu-ssh https://linkkalian
  6. chmod +x /usr/local/bin/edu-ssh
  7. # Installing Service
  8. cat > /etc/systemd/system/edussh-nontls.service << END
  9. [Unit]
  10. Description=Ssh Websocket By GEO GABUT
  11. Documentation=https://t.me/sampiiiiu
  12. After=network.target nss-lookup.target
  13. [Service]
  14. Type=simple
  15. User=root
  16. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  17. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  18. NoNewPrivileges=true
  19. ExecStart=/usr/bin/python -O /usr/local/bin/edu-ssh 2095
  20. Restart=on-failure
  21. [Install]
  22. WantedBy=multi-user.target
  23. END
  24. systemctl daemon-reload
  25. systemctl enable edussh-nontls
  26. systemctl restart edussh-nontls
  27. # Installing Service
  28. cat > /etc/systemd/system/edussh-tls.service << END
  29. [Unit]
  30. Description=Ssh Websocket By Geo Gabut
  31. Documentation=https://t.me/sampiiiiu
  32. After=network.target nss-lookup.target
  33. [Service]
  34. Type=simple
  35. User=root
  36. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  37. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  38. NoNewPrivileges=true
  39. ExecStart=/usr/bin/python -O /usr/local/bin/edu-ssh 2096
  40. Restart=on-failure
  41. [Install]
  42. WantedBy=multi-user.target
  43. END
  44. systemctl daemon-reload
  45. systemctl enable edussh-tls
  46. systemctl restart edussh-tls
  47. # Ovpn Websocket !!!
  48. # =================================
  49. # Getting Ovpn Ws Template
  50. wget -q -O /usr/local/bin/edu-ovpn https://linkkalian
  51. chmod +x /usr/local/bin/edu-ovpn
  52. # Installing Service Ovpn Websocket
  53. cat > /etc/systemd/system/edu-ovpn.service << END
  54. [Unit]
  55. Description=Ovpn Websocket By GEO GABUT
  56. Documentation=https://t.me/sampiiiiu
  57. After=network.target nss-lookup.target
  58. [Service]
  59. Type=simple
  60. User=root
  61. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  62. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  63. NoNewPrivileges=true
  64. ExecStart=/usr/bin/python -O /usr/local/bin/edu-ovpn 2082
  65. Restart=on-failure
  66. [Install]
  67. WantedBy=multi-user.target
  68. END
  69. systemctl daemon-reload
  70. systemctl enable edu-ovpn
  71. systemctl restart edu-ovpn
  72. clear
  73. echo -e "==============================="
  74. echo -e "Done Install Ssh & Ovpn Websocket"
  75. echo -e "==============================="
  76. echo -e "PORT SSH NONTLS : 2095"
  77. echo -e "PORT SSH TLS : 2096"
  78. echo -e "PORT OVPN WS B : 2082"
  79. echo -e "==============================="
  80. echo -e "Script By GEO GABUT"