This is to setup Deluge torrent client, OpenVPN using Private Internet Access for use on
This may be adapted to other providers as well if needed.
I Will be using binhex/arch-delugevpn
Deluge has the best compatibility with multiple private torrent providers /trackers i use, so
I went with deluge over transmission or qbittorrent (nether are allowed on most private
torrent trackers that require seeding ratios to be counted.
Docker is pre-installed in OpenFLIXR, no need to install it first.
Review and configure settings for your VPN info from the "VPN_Deluge_Setup_Script"
docker run -d \
-p 8112:8112 \
-p 8118:8118 \
-p 58846:58846 \
-p 58946:58946 \
--restart always \
-v /apps/docker/deluge/data:/data \
-v /apps/docker/deluge/config:/config \
-v /mnt:/mnt \
-v /etc/localtime:/etc/localtime:ro \
-e VPN_ENABLED=yes \
-e VPN_USER=PIAUsername \
-e VPN_PASS=PIAPassword \
-e VPN_PROV=pia \
-e VPN_REMOTE=nl.privateinternetaccess.com \
-e STRICT_PORT_FORWARD=yes \
-e ENABLE_PRIVOXY=yes \
-e LAN_NETWORK=192.168.1.0/24 \
-e NAME_SERVERS=126.96.36.199,188.8.131.52,184.108.40.206,220.127.116.11,18.104.22.168,22.214.171.124 \
-e DEBUG=false \
-e UMASK=000 \
-e PUID=1000 \
-e PGID=1000 \
Change Username, Password, Remote Server Location, LAN IP range as needed.
execute docker install script by copying the script text from "VPN_Deluge_Setup_Script"
after you edit the areas you need to change.
Run the whole script / text in an SSH session for openflixr.
Download PIA OpenVPN file from Private Internet Access.
The file is available from the client support area of their website, from
Advanced OpenVPN and SSL Usage Guides, at the bottom of the section,
OpenVPN Configuration Files (Recommended Default) is what I used.
Extract the .zip and select your file of choice. I went with netherlands, it was easy and works
just fine for torrenting in the USA. I tried US_West, but was unable to get that working.
Place in /apps/docker/deluge/config/openvpn/
Place filename.ovpn file in that directory. In my case, Netherlands.ovpn was used. I was unable
to get US-West.ovpn and configuration working.
Place crl.rsa.2048.pem and ca.rsa.2048.crt in that directory as well. Both are part of the .zip
you should have downloaded.
I then used portainer and ran the docker container that was downloaded and setup.
From any web browser, enter http(s)://IPAddressofOpenFLIXR/portainer
I went to containers, and checked the box for delugevpn and started the container. The container
should have already been running; i also took the time to check the log file for any errors.
In deluge webui, (default initial password is "deluge").
I configured basic settings for deluge directories.
in preferences, in the Downloads settings for torrent directory defaults
I changed "Download to" to /mnt/downloads/incomplete
I changed "Move completed to:" /mnt/downloads/torrentcomplete
I changed "Autoadd .torrent files from:" /mnt/downloads/torrentwatch
I also fully rebooted openflixr to test that the docker container starts, and everything comes up.
That concludes core configuration for Deluge with PIA VPN.
Install a desktop deluge client, YaRSS2 plugin, and connect to openflixr docker Deluge VPN server.
Download and install Deluge on your desktop platform.
I used webmin http(s)://IPAddressofOpenFLIXR/webmin and went to "Other" > "File Manager" >
/apps/docker/deluge/config/ and downloaded the "auth" file. With that, i got the username and
password that deluge was using (The docker version) for when we need to enter that into the
desktop deluge client.
On the desktop deluge client, i went to preferences > Interface > "Classic Mode" - uncheck the box.
I restarted the desktop deluge client. I went to "Connection Manager" > Add button to add new
I entered the IP address of my OpenFLIXR VM, and used the info from the auth file,
Username:Password but did not need the permission level 10 part. Saved the connection, and connected
to the remote client.
From the deluge desktop client, i installed YaRSS2 (Python 2.7 version) 1.4.3 (search google for it).
with the remote connection, i setup some RSS feeds for deluge, wich work by passing the settings to
the docker deluge server. Now you can close the deluge desktop client, and your RSS feeds will
I did not use Privoxy, so I did not get that working. Feel free to add something in this thread
if you do get that working, and what you did so that I, and others can do the same.