Easily install VPN on Ubuntu 18.04 Mining Based OS's
git clone https://github.com/AriBerisha/SimpleMining-OpenVPN.git
script-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
down-pre
If using NordVPN
auth-user-pass /etc/openvpnservers/login.conf
script-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
down-pre
Edit the login.conf with credentials provided from nordvpn in /etc/openvpnservers/
Tested on Ubuntu 18.04 Based Mining OS's Should work on Debian 11 and Ubuntu 20.04
- To be safe from any errors run the file as sudo
- Run the following commands on the directory where the bash script is
cd SimpleMining-OpenVPN
sudo chmod u+x simpleminingvpn.sh
sudo ./simpleminingvpn.sh
- Insert link to ovpn file, script uses wget and you can use something like Dropbox,Drive,Transfer.sh
- Reboot if any problems and you're set!
- If you run into issues with network, to undo just do systemctl disable simpleminingvpn.service
Your mining machine could have bad ntp config and bad timezonedate , use the command below to fix
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
And lastly do systemctl enable simpleminingvpn.service