• This repository has been archived on 28/Jun/2023
  • Stars
    star
    239
  • Rank 168,763 (Top 4 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created over 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Docker build script for Arch Linux base with ruTorrent, rTorrent, autodl-irssi, Privoxy and OpenVPN

NOTICE

This image is now deprecated and will no longer be maintained - 14/02/2023

Application

rTorrent-ps
ruTorrent
autodl-irssi
Privoxy
OpenVPN
WireGuard

Description

rTorrent is a quick and efficient BitTorrent client that uses, and is in development alongside, the libTorrent (not to be confused with libtorrent-rasterbar) library. It is written in C++ and uses the ncurses programming library, which means it uses a text user interface. When combined with a terminal multiplexer (e.g. GNU Screen or Tmux) and Secure Shell, it becomes a convenient remote BitTorrent client, this Docker image includes the popular ruTorrent web frontend to rTorrent for ease of use.

This Docker includes OpenVPN and WireGuard to ensure a secure and private connection to the Internet, including use of iptables to prevent IP leakage when the tunnel is down. It also includes Privoxy to allow unfiltered access to index sites, to use Privoxy please point your application at http://<host ip>:8118.

Build notes

Latest stable rTorrent-ps release from Arch Linux AUR.
Latest stable ruTorrent release from Arch Linux AUR.
Latest stable Privoxy release from Arch Linux repo.
Latest stable OpenVPN release from Arch Linux repo.
Latest stable WireGuard release from Arch Linux repo.

!!! IMPORTANT !!!

As from 15th of January 2020, if the web ui and/or rpc2 password have not been defined (defined via environment variables) then the password(s) will be randomised and no longer set to 'rutorrent'.

Please see link below to the rtorrentvpn FAQ, Q3. and Q4. for more details:- https://github.com/binhex/documentation/blob/master/docker/faq/rtorrentvpn.md

Usage

docker run -d \
    --cap-add=NET_ADMIN \
    -p 9080:9080 \
    -p 9443:9443 \
    -p 8118:8118 \
    --name=<container name> \
    -v <path for data files>:/data \
    -v <path for config files>:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e VPN_ENABLED=<yes|no> \
    -e VPN_USER=<vpn username> \
    -e VPN_PASS=<vpn password> \
    -e VPN_PROV=<pia|airvpn|custom> \
    -e VPN_CLIENT=<openvpn|wireguard> \
    -e VPN_OPTIONS=<additional openvpn cli options> \
    -e STRICT_PORT_FORWARD=<yes|no> \
    -e ENABLE_PRIVOXY=<yes|no> \
    -e ENABLE_AUTODL_IRSSI=<yes|no> \
    -e ENABLE_RPC2=<yes|no> \
    -e ENABLE_RPC2_AUTH=<yes|no> \
    -e ENABLE_WEBUI_AUTH=<yes|no> \
    -e RPC2_USER=<rpc2 username> \
    -e RPC2_PASS=<rpc2 password> \
    -e WEBUI_USER=<webui username> \
    -e WEBUI_PASS=<webui password> \
    -e LAN_NETWORK=<lan ipv4 network>/<cidr notation> \
    -e NAME_SERVERS=<name server ip(s)> \
    -e VPN_INPUT_PORTS=<port number(s)> \
    -e VPN_OUTPUT_PORTS=<port number(s)> \
    -e DEBUG=<true|false> \
    -e PHP_TZ=<php timezone> \
    -e UMASK=<umask for created files> \
    -e PUID=<uid for user> \
    -e PGID=<gid for user> \
    binhex/arch-rtorrentvpn

  Please replace all user variables in the above command defined by <> with the correct values.

Access ruTorrent (web ui)

http://<host ip>:9080/

or

https://<host ip>:9443/

Username:- Value of 'WEBUI_USER'
Password:- Value of 'WEBUI_PASS'

Access Privoxy

http://<host ip>:8118

PIA example

docker run -d \
    --cap-add=NET_ADMIN \
    -p 9080:9080 \
    -p 9443:9443 \
    -p 8118:8118 \
    --name=rtorrentvpn \
    -v /root/docker/data:/data \
    -v /root/docker/config:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e VPN_ENABLED=yes \
    -e VPN_USER=myusername \
    -e VPN_PASS=mypassword \
    -e VPN_PROV=pia \
    -e VPN_CLIENT=openvpn \
    -e STRICT_PORT_FORWARD=yes \
    -e ENABLE_PRIVOXY=yes \
    -e ENABLE_AUTODL_IRSSI=yes \
    -e ENABLE_RPC2=yes \
    -e ENABLE_RPC2_AUTH=yes \
    -e ENABLE_WEBUI_AUTH=yes \
    -e RPC2_USER=admin \
    -e RPC2_PASS=NzRhMjE4NjUzZDYw \
    -e WEBUI_USER=admin \
    -e WEBUI_PASS=NzRhMjE4NjUzZDYw \
    -e LAN_NETWORK=192.168.1.0/24 \
    -e NAME_SERVERS=84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1 \
    -e VPN_INPUT_PORTS=1234 \
    -e VPN_OUTPUT_PORTS=5678 \
    -e DEBUG=false \
    -e PHP_TZ=UTC \
    -e UMASK=000 \
    -e PUID=0 \
    -e PGID=0 \
    binhex/arch-rtorrentvpn

  AirVPN provider

AirVPN users will need to generate a unique OpenVPN configuration file by using the following link https://airvpn.org/generator/

  1. Please select Linux and then choose the country you want to connect to
  2. Save the ovpn file to somewhere safe
  3. Start the rtorrentvpn docker to create the folder structure
  4. Stop rtorrentvpn docker and copy the saved ovpn file to the /config/openvpn/ folder on the host
  5. Start rtorrentvpn docker
  6. Check supervisor.log to make sure you are connected to the tunnel

AirVPN users will also need to create a port forward by using the following link https://airvpn.org/ports/ and clicking Add. This port will need to be specified in the rTorrent-ps configuration file located at /config/rtorrent/config/rtorrent.rc with the option port_range = <start incoming port>-<end incoming port> and port_random = no.

rTorrent-ps example config

port_range = 49400-49400
port_random = no

  AirVPN example

docker run -d \
    --cap-add=NET_ADMIN \
    -p 9080:9080 \
    -p 9443:9443 \
    -p 8118:8118 \
    --name=rtorrentvpn \
    -v /root/docker/data:/data \
    -v /root/docker/config:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e VPN_ENABLED=yes \
    -e VPN_PROV=airvpn \
    -e VPN_CLIENT=openvpn \
    -e ENABLE_PRIVOXY=yes \
    -e ENABLE_AUTODL_IRSSI=yes \
    -e ENABLE_RPC2=yes \
    -e ENABLE_RPC2_AUTH=yes \
    -e ENABLE_WEBUI_AUTH=yes \
    -e RPC2_USER=admin \
    -e RPC2_PASS=NzRhMjE4NjUzZDYw \
    -e WEBUI_USER=admin \
    -e WEBUI_PASS=NzRhMjE4NjUzZDYw \
    -e LAN_NETWORK=192.168.1.0/24 \
    -e NAME_SERVERS=84.200.69.80,37.235.1.174,1.1.1.1,37.235.1.177,84.200.70.40,1.0.0.1 \
    -e VPN_INPUT_PORTS=1234 \
    -e VPN_OUTPUT_PORTS=5678 \
    -e DEBUG=false \
    -e PHP_TZ=UTC \
    -e UMASK=000 \
    -e PUID=0 \
    -e PGID=0 \
    binhex/arch-rtorrentvpn

 

IMPORTANT
Please note 'VPN_INPUT_PORTS' is NOT to define the incoming port for the VPN, this environment variable is used to define port(s) you want to allow in to the VPN network when network binding multiple containers together, configuring this incorrectly with the VPN provider assigned incoming port COULD result in IP leakage, you have been warned!.

OpenVPN
Please note this Docker image does not include the required OpenVPN configuration file and certificates. These will typically be downloaded from your VPN providers website (look for OpenVPN configuration files), and generally are zipped.

PIA users - The URL to download the OpenVPN configuration files and certs is:-

https://www.privateinternetaccess.com/openvpn/openvpn.zip

Once you have downloaded the zip (normally a zip as they contain multiple ovpn files) then extract it to /config/openvpn/ folder (if that folder doesn't exist then start and stop the docker container to force the creation of the folder).

If there are multiple ovpn files then please delete the ones you don't want to use (normally filename follows location of the endpoint) leaving just a single ovpn file and the certificates referenced in the ovpn file (certificates will normally have a crt and/or pem extension).

WireGuard
If you wish to use WireGuard (defined via 'VPN_CLIENT' env var value ) then due to the enhanced security and kernel integration WireGuard will require the container to be defined with privileged permissions and sysctl support, so please ensure you change the following docker options:-

from

    --cap-add=NET_ADMIN \

to

    --sysctl="net.ipv4.conf.all.src_valid_mark=1" \
    --privileged=true \

PIA users - The WireGuard configuration file will be auto generated and will be stored in /config/wireguard/wg0.conf AFTER the first run, if you wish to change the endpoint you are connecting to then change the Endpoint line in the config file (default is Netherlands).

Other users - Please download your WireGuard configuration file from your VPN provider, start and stop the container to generate the folder /config/wireguard/ and then place your WireGuard configuration file in there.

Notes
Due to Google and OpenDNS supporting EDNS Client Subnet it is recommended NOT to use either of these NS providers. The list of default NS providers in the above example(s) is as follows:-

84.200.x.x = DNS Watch 37.235.x.x = FreeDNS 1.x.x.x = Cloudflare

User ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-

id <username>

If you want to create an additional user account for ruTorrent webui then please execute the following on the host:-

docker exec -it <container name> /home/nobody/createuser.sh <username to create> <password for the user>

If you want to delete a user account (or change the password for an account) then please execute the following on the host:-

docker exec -it <container name> /home/nobody/deluser.sh <username to delete>

If you do not define the PHP timezone you may see issues with the ruTorrent Scheduler plugin, please make sure you set the PHP timezone by specifying this using the environment variable PHP_TZ. Valid timezone values can be found here, http://php.net/manual/en/timezones.php


If you appreciate my work, then please consider buying me a beer :D

PayPal donation

Documentation | Support forum

More Repositories

1

arch-delugevpn

Docker build script for Arch Linux base with Deluge, Privoxy and OpenVPN
Shell
696
star
2

arch-qbittorrentvpn

Docker build script for Arch Linux base with qBittorrent, Privoxy and OpenVPN
Shell
462
star
3

documentation

Documentation for software located in the binhex repositories.
123
star
4

arch-privoxyvpn

Docker build script for Arch Linux base with Privoxy and OpenVPN
Shell
102
star
5

docker-templates

Docker template repository for unRAID
65
star
6

arch-sabnzbdvpn

Docker build script for Arch Linux base with SABnzbd, Privoxy and OpenVPN
Shell
52
star
7

moviegrabber

Python based fully automated Usenet and Torrent movie downloader
Python
51
star
8

arch-int-vpn

Docker build script for Arch Linux base with OpenVPN, WireGuard, Privoxy (http(s) proxy) and microsocks (Socks5 proxy)
Shell
45
star
9

iptv

English filtered free to air IPTV m3u from https://github.com/iptv-org/iptv
37
star
10

arch-plexpass

Docker build script for Arch Linux base with Plex Pass Media Server installed
Shell
31
star
11

arch-base

Docker build script for Arch Linux base
Shell
27
star
12

videoslimmer

Utility to remove unwanted audio and subtitles from mkv files.
Python
26
star
13

arch-krusader

Docker build script for Arch Linux base with Krusader
Shell
19
star
14

arch-plex

Docker build script for Arch Linux base with Plex Media Server
Shell
18
star
15

arch-minecraftserver

Docker build script for Arch Linux base with Minecraft Java server
Shell
18
star
16

scripts

Various scripts consumed by other repositories
Shell
18
star
17

arch-code-server

Shell
16
star
18

arch-sonarr

Docker build script for Arch Linux base with Sonarr
Shell
16
star
19

arch-minecraftbedrockserver

Docker build script for Arch Linux base with Minecraft Bedrock server
Shell
16
star
20

arch-deluge

Docker build script for Arch Linux base with Deluge
Shell
16
star
21

arch-minidlna

Docker build script for Arch Linux base with MiniDLNA
Shell
16
star
22

arch-jackett

Docker build script for Arch Linux base with Jackett
Shell
15
star
23

arch-pycharm

Docker build script for Arch Linux base with PyCharm
Shell
15
star
24

arch-radarr

Docker build script for Arch Linux base with Radarr
Shell
14
star
25

arch-int-gui

Docker build script for Arch Linux base with TigerVNC, noVNC, and OpenBox
Shell
11
star
26

arch-intellij

Docker build script for Arch Linux base with IntelliJ IDEA
Shell
10
star
27

arch-sabnzbd

Docker build script for Arch Linux base with SABnzbd
Shell
10
star
28

arch-rclone

Docker build script for Arch Linux base with rclone
Shell
9
star
29

arch-jellyfin

Docker build script for Arch Linux base with Jellyfin
Shell
9
star
30

arch-prowlarr

Docker build script for Arch Linux base with Prowlarr
Shell
8
star
31

arch-get-iplayer

Docker build script for Arch Linux base with get_iplayer
Shell
8
star
32

arch-urbackup

Docker build script for Arch Linux base with UrBackup
Shell
7
star
33

arch-tvheadend

Docker build script for Arch Linux base with Tvheadend
Shell
7
star
34

arch-preclear

Docker build script for Arch Linux base with Preclear script
Shell
7
star
35

arch-makemkv

Docker build script for Arch Linux base with MakeMKV installed
Shell
7
star
36

arch-jenkins

Docker build script for Arch Linux base with Jenkins
Shell
6
star
37

arch-airsonic

Docker build script for Arch Linux base with Airsonic
Shell
6
star
38

arch-syncthing

Docker build script for Arch Linux base with Syncthing
Shell
6
star
39

arch-libreoffice

Docker build script for Arch Linux base with LibreOffice Fresh
Shell
6
star
40

arch-medusa

Docker build script for Arch Linux base with Medusa
Shell
6
star
41

arch-nzbhydra2

Docker build script for Arch Linux base with NZBHydra2
Shell
6
star
42

trigger-docker-build

Python script to monitor remote sites for version changes and trigger Docker image builds
Python
6
star
43

arch-lidarr

Docker build script for Arch Linux base with Lidarr
Shell
5
star
44

arch-phantom

Docker build script for Arch Linux base with Phantom
Shell
5
star
45

arch-emby

Docker build script for Arch Linux base with Emby installed
Shell
5
star
46

arch-overseerr

Docker build script for Arch Linux base with Overseerr
Shell
4
star
47

arch-rider

Docker build script for Arch Linux base with JetBrains Rider
Shell
4
star
48

arch-devel

Docker build script for Arch Linux base used for development
Shell
4
star
49

arch-readarr

Docker build script for Arch Linux base with Readarr
Shell
4
star
50

arch-resilio-sync

Docker build script for Arch Linux base with Resilio Sync
Shell
4
star
51

arch-moviegrabber

Docker build script for Arch Linux base with MovieGrabber
Shell
3
star
52

arch-teamspeak

Docker build script for Arch Linux base with Teamspeak
Shell
3
star
53

arch-nzbget

Docker build script for Arch Linux base with NZBGet
Shell
3
star
54

arch-sickchill

Docker build script for Arch Linux base with SickChill
Shell
3
star
55

certs

Self-signed certificates for use with OpenSSL 1.1.x
2
star
56

packages

Various Arch Lnux compiled packages consumed by Docker Images
2
star
57

arch-crafty-4

Docker build script for Arch Linux base with Crafty 4 installed
Shell
2
star
58

arch-base-aarch64

Shell
2
star
59

arch-crafty

Docker build script for Arch Linux base with Crafty
Shell
2
star
60

arch-mineos-node

Docker build script for Arch Linux base with MineOS-node
Shell
2
star
61

arch-couchpotato-git

Docker build script for Arch Linux base with CouchPotato (git master)
Shell
2
star
62

get-bing

Python script to pull down the latest wallpaper from Bing
Python
2
star
63

arch-bitmagnet

Shell
1
star
64

arch-flaresolverr

Docker build script for Arch Linux base with Flaresolverr
Shell
1
star
65

arch-webstorm

Docker build script for Arch Linux base with JetBrains WebStorm
Shell
1
star
66

arch-nicotineplus

Shell
1
star
67

arch-nzbhydra

Docker build script for Arch Linux base with NZBHydra
Shell
1
star
68

arch-goland

Docker build script for Arch Linux base with GoLand
Shell
1
star
69

crafty

This is a mirror of Crafty, please create Issues/PR's on https://gitlab.com/crafty-controller/crafty-web
CSS
1
star
70

arch-archlinux

Shell
1
star
71

arch-airsonic-advanced

Shell
1
star
72

arch-nginx

Docker build script for Arch Linux base with NGINX
Shell
1
star
73

arch-hexchat

Docker build script for Arch Linux base with Teamspeak
Shell
1
star