edu.sh 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #!/bin/bash
  2. # Proxy For Edukasi & Imclass
  3. # SL
  4. # ==========================================
  5. # Link Hosting Kalian
  6. akbarvpn="raw.githubusercontent.com/fisabiliyusri/Mantap/main/websocket"
  7. # Getting Proxy Template
  8. wget -q -O /usr/local/bin/ws-nontls https://${akbarvpn}/websocket.py
  9. chmod +x /usr/local/bin/ws-nontls
  10. # Installing Service
  11. cat > /etc/systemd/system/ws-nontls.service << END
  12. [Unit]
  13. Description=Python Proxy Mod By Akbar Maulana
  14. Documentation=https://nekopi.care
  15. After=network.target nss-lookup.target
  16. [Service]
  17. Type=simple
  18. User=root
  19. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  20. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  21. NoNewPrivileges=true
  22. ExecStart=/usr/bin/python -O /usr/local/bin/ws-nontls 8880
  23. Restart=on-failure
  24. [Install]
  25. WantedBy=multi-user.target
  26. END
  27. systemctl daemon-reload
  28. systemctl enable ws-nontls
  29. systemctl restart ws-nontls
  30. # Getting Proxy Template
  31. wget -q -O /usr/local/bin/ws-ovpn https://${akbarvpn}/ws-ovpn.py
  32. chmod +x /usr/local/bin/ws-ovpn
  33. # Installing Service
  34. cat > /etc/systemd/system/ws-ovpn.service << END
  35. [Unit]
  36. Description=Python Proxy Mod By LamVpn
  37. Documentation=https://nekopoi.care
  38. After=network.target nss-lookup.target
  39. [Service]
  40. Type=simple
  41. User=root
  42. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  43. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  44. NoNewPrivileges=true
  45. ExecStart=/usr/bin/python -O /usr/local/bin/ws-ovpn 2086
  46. Restart=on-failure
  47. [Install]
  48. WantedBy=multi-user.target
  49. END
  50. systemctl daemon-reload
  51. systemctl enable ws-ovpn
  52. systemctl restart ws-ovpn
  53. # Getting Proxy Template
  54. wget -q -O /usr/local/bin/ws-tls https://${akbarvpn}/ws-tls
  55. chmod +x /usr/local/bin/ws-tls
  56. # Installing Service
  57. cat > /etc/systemd/system/ws-tls.service << END
  58. [Unit]
  59. Description=Python Proxy Mod By geovpn
  60. Documentation=https://nekopoi.care
  61. After=network.target nss-lookup.target
  62. [Service]
  63. Type=simple
  64. User=root
  65. CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  66. AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
  67. NoNewPrivileges=true
  68. ExecStart=/usr/bin/python -O /usr/local/bin/ws-tls 443
  69. Restart=on-failure
  70. [Install]
  71. WantedBy=multi-user.target
  72. END
  73. systemctl daemon-reload
  74. systemctl enable ws-tls
  75. systemctl restart ws-tls