Skip to content

AriBerisha/Mining-OpenVPN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mining-OpenVPN

Easily install VPN on Ubuntu 18.04 Mining Based OS's

Clone the Repository!

git clone https://github.com/AriBerisha/SimpleMining-OpenVPN.git

Add this to your ovpn file under verb

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/

Instructions

Tested on Ubuntu 18.04 Based Mining OS's Should work on Debian 11 and Ubuntu 20.04

  1. To be safe from any errors run the file as sudo
  2. Run the following commands on the directory where the bash script is
    cd SimpleMining-OpenVPN
    sudo chmod u+x simpleminingvpn.sh
    sudo ./simpleminingvpn.sh
  1. Insert link to ovpn file, script uses wget and you can use something like Dropbox,Drive,Transfer.sh
  2. Reboot if any problems and you're set!
  3. If you run into issues with network, to undo just do systemctl disable simpleminingvpn.service

P.S If you have issues installing the repositories

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