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