Sign inSign up

firilith/iqbit-vpn

By firilith

Updated almost 6 years ago

Docker container which runs a headless qBittorrent client with iQbit WebUI and optional OpenVPN

Image
1

10K+

firilith/iqbit-vpn repository overview

VueTorrent with OpenVPN

Docker container which runs the latest headless qBittorrent client with WebUI VueTorrent while connecting to OpenVPN with iptables killswitch to prevent IP leakage when the tunnel goes down. This is an automated build linked with Ubuntu.

Docker Features

  • Base: Ubuntu
  • Latest qBittorrent
  • Size: 403MB
  • Selectively enable or disable OpenVPN support
  • IP tables kill switch to prevent IP leaking when VPN connection fails
  • Specify name servers to add to container
  • Configure UID, GID, and UMASK for config files and downloads by qBittorrent

Variables, Volumes, and Ports

Environment Variables

VariableRequiredFunctionExample
VPN_ENABLEDYesEnable VPN? (yes/no) Default:yesVPN_ENABLED=yes
VPN_USERNAMENoIf username and password provided, configures ovpn file automaticallyVPN_USERNAME=ad8f64c02a2de
VPN_PASSWORDNoIf username and password provided, configures ovpn file automaticallyVPN_PASSWORD=ac98df79ed7fb
LAN_NETWORKYesLocal Network with CIDR notationLAN_NETWORK=192.168.1.0/24
NAME_SERVERSNoComma delimited name serversNAME_SERVERS=8.8.8.8,8.8.4.4
PUIDNoUID applied to config files and downloadsPUID=99
PGIDNoGID applied to config files and downloadsPGID=100
UMASKNoGID applied to config files and downloadsUMASK=002
WEBUI_PORT_ENVNoApplies WebUI port to qBittorrents config at boot (Must change exposed ports to match)WEBUI_PORT_ENV=8080
INCOMING_PORT_ENVNoApplies Incoming port to qBittorrents config at boot (Must change exposed ports to match)INCOMING_PORT_ENV=8999

Volumes

VolumeRequiredFunctionExample
configYesqBittorrent and OpenVPN config files/your/config/path/:/config
downloadsNoDefault download path for torrents/your/downloads/path/:/downloads

Ports

PortProtoRequiredFunctionExample
8080TCPYesqBittorrent WebUI8080:8080
8999TCPYesqBittorrent listening port8999:8999
8999UDPYesqBittorrent listening port8999:8999/udp

Access the WebUI

Access http://IPADDRESS:PORT from a browser on the same network.

Default Credentials

CredentialDefault Value
WebUI Usernameadmin
WebUI Passwordadminadmin

How to use OpenVPN

The container will fail to boot if VPN_ENABLED is set to yes or empty and a .ovpn is not present in the /config/openvpn directory. Drop a .ovpn file from your VPN provider into /config/openvpn and start the container again. You may need to edit the ovpn configuration file to load your VPN credentials from a file by setting auth-user-pass.

Note: The script will use the first ovpn file it finds in the /config/openvpn directory. Adding multiple ovpn files will not start multiple VPN connections.

Example auth-user-pass option

auth-user-pass credentials.conf

Example credentials.conf

username
password

PUID/PGID

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>

Issues

If you are having issues with this container please submit an issue on GitHub. Please provide logs, docker version and other information that can simplify reproducing the issue. Using the latest stable verison of Docker is always recommended. Support for older version is on a best-effort basis.

Tag summary

Content type

Image

Digest

Size

167.4 MB

Last updated

almost 6 years ago

docker pull firilith/iqbit-vpn