1. Should be logged in as root or run this command in your console:
2. Update and upgrade the VPS, run this command in your console:
3. Install this dependencies, run this command in your console:
4. Installation of BadVPN UDPgw, run one by one in your console:
* Done installing BadVPN UDPgw, now we need badvpn to listen to port 7300 and 53;
Insert this line before line
Next, we need our VPS to allow port 7300, run this one by one in your console:
FINALLY, reboot your VPS, run this command in your console:
Code:
sudo su
2. Update and upgrade the VPS, run this command in your console:
Code:
apt-get clean && apt-get update && apt-get upgrade -y && apt-get full-upgrade -y && apt-get --fix-missing install -y && apt-get autoremove -y && reboot
3. Install this dependencies, run this command in your console:
Code:
apt install net-tools cmake screen ufw -y
4. Installation of BadVPN UDPgw, run one by one in your console:
Code:
cd /usr/bin
Code:
mkdir build
Code:
cd build
Code:
wget https://github.com/ambrop72/badvpn/archive/1.999.130.tar.gz
Code:
tar xvzf 1.999.130.tar.gz
Code:
cd badvpn-1.999.130
Code:
cmake -DBUILD_NOTHING_BY_DEFAULT=1 -DBUILD_UDPGW=1
Code:
make install
* Done installing BadVPN UDPgw, now we need badvpn to listen to port 7300 and 53;
Insert this line before line
exit 0 in your /etc/rc.local
Code:
screen -AmdS badvpn badvpn-udpgw --listen-addr 127.0.0.1:7300
Next, we need our VPS to allow port 7300, run this one by one in your console:
Code:
ufw logging off
Code:
ufw allow 22/tcp
Code:
ufw allow 7300
Code:
ufw allow 53
Code:
ufw enable
FINALLY, reboot your VPS, run this command in your console:
Code:
reboot