Skip to content
thatsnasty edited this page Jan 14, 2021 · 13 revisions

DelugeVPN

DelugeVPN is a Torrent Client with OpenVPN to ensure a secure and private connection to the Internet, including use of iptables to prevent IP leakage when the tunnel is down.

See Deluge Wiki for how to use. Default password for the webui is "deluge", please change this before doing anything else.

Installation

###1. Edit Settings cd ~/community/

nano settings.yml

Add this block to the end of settings.yaml if not already present and edit values.

delugevpn:
  vpn_user: your_vpn_username
  vpn_pass: your_vpn_password
  vpn_prov: pia
  vpn_endpoint: netherlands.ovpn

For Private Internet Access

  • Add your user name and password
  • Change the vpn_endpoint to your chosen server. Note that PIA occasionally changes which servers have port forwarding. The Netherlands server no longer offers port forwarding. See configuration section for more details.

For other VPN providers

  • Add your user name and password
  • Change vpn_prov to custom
  • Leave vpn_endpoint as netherlands.ovpn
  • Follow step 2 below then immediately follow step 3

###2. Run the DelugeVPN Role

cd ~/community
sudo ansible-playbook community.yml --tags delugevpn

###3. Configuring Server for Custom VPN providers (only for non-pia)

Why you need to do this

For custom VPN providers, delugevpn needs an ovpn file to complete the install properly. It can check for a custom file in the /opt/delugevpn/openvpn folder, but this folder does not yet exist. Therefore, we will first use PIA's netherlands.ovpn file, which we will modify later to have our own VPN provider details.

The steps above (step 2) have created some files in /opt/delugevpn/openvpn.

  • ca.rsa.2048.crt - Leave this
  • crl.rsa.2048.pem - Leave this
  • credentials.conf - Leave this. Your VPN username and password are stored here.
  • Netherlands.ovpn - Your server details are stored here. We will change this.
docker stop delugevpn
cd /opt/delugevpn/openvpn
rm Netherlands.ovpn

Now you can upload your own .ovpn file from your VPN provider, renamed as netherlands.ovpn. If your VPN provider has also included a ca.crt file, upload that file as well. Upload one or both files into /opt/delugevpn/openvpn.

Note

Do not rename the original netherlands.ovpn file if you're using Filezilla. delugevpn will automatically use the renamed file instead of Netherlands.ovpn and your newly uploaded .ovpn file will still be ignored.

Now you can restart the docker

docker start delugevpn

Configuration

FOR PIA

vpn_user: Your PIA user name

vpn_pass: Your PIA password

vpn_prov: pia

vpn_endpoint: netherlands.ovpn

Included PIA OpenVPN end point options are.

  • albania.ovpn algeria.ovpn andorra.ovp argentina.ovpn armenia.ovpn au_melbourne.ovpn au_perth.ovpn au_sydney.ovp austria.ovpn
  • bahamas.ovpn bangladesh.ovpn belgium.ovpn brazil.ovpn bulgaria.ovpn ca_montreal.ovpn ca_ontario.ovpn ca_toronto.ovpn ca_vancouver.ovpn
  • cambodia.ovpn china.ovpn cyprus.ovpn czech_republic.ovpn de_berlin.ovpn de_frankfurt.ovpn denmark.ovpn egypt.ovpn finland.ovpn
  • france.ovpn georgia.ovpn greece.ovpn greenland.ovpn hong_kong.ovpn hungary.ovpn iceland.ovpn india.ovpn ireland.ovpn
  • isle_of_man.ovpn israel.ovpn italy.ovpn japan.ovpn kazakhstan.ovpn latvia.ovpn liechtenstein.ovpn lithuania.ovp luxembourg.ovpn
  • macao.ovpn macedonia.ovpn malta.ovpn mexico.ovpn moldova.ovpn monaco.ovpn mongolia.ovpn montenegro.ovpn morocco.ovpn
  • netherlands.ovpn new_zealand.ovpn nigeria.ovpn norway.ovpn panama.ovpn philippines.ovpn poland.ovpn portugal.ovpn qatar.ovpn
  • romania.ovpn saudi_arabia.ovpn serbia.ovpn singapore.ovpn slovakia.ovpn south_africa.ovpn spain.ovpn sri_lanka.ovpn sweden.ovpn
  • switzerland.ovpn taiwan.ovpn turkey.ovpn uk_london.ovp uk_manchester.ovpn uk_southampton.ovpn ukraine.ovpn united_arab_emirates.ovpn us_atlanta.ovpn
  • us_california.ovpn us_chicago.ovpn us_denver.ovpn us_east.ovpn us_florida.ovpn us_houston.ovpn us_las_vegas.ovpn us_new_york.ovpn us_seattle.ovpn
  • `us_silicon_valley.ovpn us_texas.ovpn us_washington_dc.ovpn us_west.ovpn venezuela.ovpn vietnam.ovpn

As of July 4, 2020, the PIA servers that allow port forwarding, and DelugeVPN to work properly, are: CA Toronto, CA Montreal, CA Vancouver, Czech Republic, DE Berlin, DE Frankfurt, France, Israel, Romania, Spain, Switzerland, Sweden. Check the PIA website for changes if these servers do not work.

Tips

  • If you run into issues check settings.yml created/modified during installation step #1 above.
    • If your endpoint has spaces you can use single quotes in the settings.yml ex.) vpn_endpoint: 'CA Toronto.ovpn'
  • After checking/fixing settings.yml execute sudo rm -rf /opt/delugevpn
    • WARNING: this will delete all files and folder in /opt/delugevpn, backup first if you need anything)
  • Follow installation step #2 from above again

Install Guides

Repository

Apps

Misc Guides

General Stuff

Linux Stuff

Plex

Organizr

Downloading

STRM

Clone this wiki locally