badvpn.sh 1016 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. clear
  3. if [[ "$EUID" -ne 0 ]]; then
  4. echo -e "\033[1;31mScript need to be run as root!\033[0m"; exit 1
  5. fi
  6. wget -q "https://github.com/ambrop72/badvpn/archive/refs/tags/1.999.130.tar.gz"
  7. tar xzf 1.999.130.tar.gz
  8. cd badvpn-1.999.130
  9. cmake -DBUILD_NOTHING_BY_DEFAULT=1 -DBUILD_UDPGW=1
  10. make install
  11. echo "[Unit]
  12. Description=Badvpn-udpgw Service
  13. Documentation=https://github.com/ambrop72/
  14. Wants=network.target
  15. After=network.target
  16. [Service]
  17. Type=simple
  18. ExecStart=/usr/local/bin/badvpn-udpgw --listen-addr 127.0.0.1:7300
  19. Restart=on-failure
  20. RestartSec=5
  21. [Install]
  22. WantedBy=multi-user.target" > /etc/systemd/system/badvpn-udpgw.service
  23. systemctl daemon-reload
  24. systemctl enable badvpn-udpgw
  25. systemctl start badvpn-udpgw
  26. echo
  27. echo -e "\033[1;32mTahniah, Kami telah selesai dengan pemasangan badvpn-udpgw.\033[0m"
  28. echo
  29. echo 'Use my referral link https://m.do.co/c/a28a40414d6a'
  30. echo 'to gets $100 credit into your DigitalOcean account.'
  31. echo
  32. echo 'Hak Cipta 2021 Doctype, Dikuasakan oleh Cybertize.'
  33. sleep 5