[Support] binhex - qBittorrentVPN


Recommended Posts

On 11/25/2020 at 10:36 PM, eetsumrobins said:

I recently updated the container and I can no longer access the WebUI when VPN is active. Disabling VPN restores access. Any ideas on what might have changed? I've tried resetting WebUI ports but that hasn't helped any.

this happened to me... looks like the place i was using doesnt work anymore so i picked a different location... the gui doesnt load if your vpn cant make a connection is what i am assuming

 

Link to comment

I just recently upgraded from cable to fiber and noticed that the fiber modem issues out ipv6 addresses alongside ipv4. I read about how ipv6 can leak out your actual IP, and while PIA blocks it at the app level on windows, I'm curious on if this container with either openvpn or wireguard would do the same. Is there a way to test?

 

Love the app, thank you!!

Link to comment
4 hours ago, internetfriend said:

I just recently upgraded from cable to fiber and noticed that the fiber modem issues out ipv6 addresses alongside ipv4. I read about how ipv6 can leak out your actual IP, and while PIA blocks it at the app level on windows, I'm curious on if this container with either openvpn or wireguard would do the same. Is there a way to test?

 

Love the app, thank you!!

there are two ways i block ipv6, firstly i block ALL ipv6 traffic in, fwd and out of the container, and secondly as a belts and braces, i strip out all ipv6 configuration from openvpn and wireguard configuration files too, so there should be no concern around ipv6.

Link to comment
13 hours ago, binhex said:

There should be no concern around ipv6.

Sweet, awesome to hear. I ended up just blocking ipv6 at the router modem level too just in case but lovely to hear that there's a 2 layer protection scheme in place in case my ISP supplied modem decides to "change its mind" with my settings during some firmware update or whatever.


thanks again!

Edited by internetfriend
Link to comment

So I followed the instructions on this post since 8080 was already in use.  I've tried 8081/8082 etc..etc... Everytime I try to launch the WebGUI, Binhex-SabNZB opens instead of Binhex-Qbittorent.  It's kind of amusing and frustrating all at the same time.

 

Anyone have any ideas?

 

Edit: Figured it out myself.  Even though I changed the WebUI port along with the container port, the 'right click on the icon to launch the WebGUI was still launching unraid IP:8080

 

I had to enter into advanced view and change the icon url port in there to the new port as well.  Now it's working.

Edited by CoZ
Fixed it myself - hopefully
Link to comment
5 minutes ago, cofree918 said:

All seems well but after adding a few torrents they all seem to stall. Occasionally one would connect briefly and then slow to a stall. Using the torrrent ip test from torguard shows that my VPN is connected. I'm using PIA/Wireguard and all other setting on the container are default.  

I had a similar issue when I first installed this docker. Google showed that my settings needed to be adjusted for number of upload connections and upload speeds. Your settings will depend on your Speedtest results. Try searching google for best settings or post on the qbittorrent forums. The default settings aren’t very realistic in many situations apparently.

Link to comment

Ok, I'm back with one question I can't figure out:   /container path data is mapped to where I want my downloads stored on my array?  Be default it's just mapped to "data".  So I created a folder on my SSD and changed it from "data" to the folder I created.

 

However, all my downloads are being saved in /mnt/user/appdata/binhex-qbittorrentvpn/qBittorent/downloads

Link to comment
12 minutes ago, CoZ said:

Ok, I'm back with one question I can't figure out:   /container path data is mapped to where I want my downloads stored on my array?  Be default it's just mapped to "data".  So I created a folder on my SSD and changed it from "data" to the folder I created.

 

However, all my downloads are being saved in /mnt/user/appdata/binhex-qbittorrentvpn/qBittorent/downloads

see Q2:- https://github.com/binhex/documentation/blob/master/docker/faq/general.md

Link to comment
On 7/24/2019 at 7:39 AM, emod said:

In WebGUI->Settings-Downloads, I cannot save changes for "Automatically add torrents from"

 

I wanted to add the folder to watch , click "plus" icon, the folder is added. When I click SAVE button at the button, then return to settings, none of the changes were saved.

 

How do I solve this issue?

I am having the exact same problem and it does not appear that it was answered?  Can anyone help?

 

EDIT - found the answer - 

 

Edited by FrozenGamer
Link to comment
5 hours ago, binhex said:

Thanks for the reply but that doesn't help me at all.  Either I just don't understand it at all or it's not applicable because Q2 is talking about Volume Mappings

 

I've tried to go into settings of Qbittorent to change the default save path but it also won't let me move it out of /mnt/user/appdata/binhex-qbittorrentvpn/qBittorent/downloads

Link to comment
8 hours ago, wgstarks said:

I had a similar issue when I first installed this docker. Google showed that my settings needed to be adjusted for number of upload connections and upload speeds. Your settings will depend on your Speedtest results. Try searching google for best settings or post on the qbittorrent forums. The default settings aren’t very realistic in many situations apparently.

Not sure what setting I should be adjusting here. I've used qb for some time and never changed anything. 

image.png.201cf88d18b63a20469eea40dd9add67.png

Everything I add just sticks at Stalled. 

 

Here is my supervisord.log 

2020-12-03 17:40:03.169694 [info] System information Linux 0e61c3cb0528 4.19.107-Unraid #1 SMP Thu Mar 5 13:55:57 PST 2020 x86_64 GNU/Linux
2020-12-03 17:40:03.197426 [info] OS_ARCH defined as 'x86-64'
2020-12-03 17:40:03.221740 [info] PUID defined as '99'
2020-12-03 17:40:03.250656 [info] PGID defined as '100'
2020-12-03 17:40:03.798089 [info] UMASK defined as '000'
2020-12-03 17:40:03.824601 [info] Permissions already set for volume mappings
2020-12-03 17:40:03.848945 [info] Deleting files in /tmp (non recursive)...
2020-12-03 17:40:03.879123 [info] VPN_ENABLED defined as 'yes'
2020-12-03 17:40:03.907759 [info] VPN_CLIENT defined as 'wireguard'
2020-12-03 17:40:03.934415 [info] VPN_PROV defined as 'pia'
2020-12-03 17:40:04.758897 [info] WireGuard config file (conf extension) is located at /config/wireguard/wg0.conf
2020-12-03 17:40:04.804250 [info] VPN_REMOTE_SERVER defined as 'ca-ontario.privacy.network'
2020-12-03 17:40:04.852132 [info] VPN_REMOTE_PORT defined as '1337'
2020-12-03 17:40:04.873513 [info] VPN_DEVICE_TYPE defined as 'wg0'
2020-12-03 17:40:04.894937 [info] VPN_REMOTE_PROTOCOL defined as 'udp'
2020-12-03 17:40:04.920865 [info] LAN_NETWORK defined as '10.0.0.0/24'
2020-12-03 17:40:04.947686 [info] NAME_SERVERS defined as '209.222.18.222,84.200.69.80,37.235.1.174,1.1.1.1,209.222.18.218,37.235.1.177,84.200.70.40,1.0.0.1'
2020-12-03 17:40:04.975647 [info] VPN_USER defined as '00000'
2020-12-03 17:40:05.003203 [info] VPN_PASS defined as '00000'
2020-12-03 17:40:05.030391 [info] STRICT_PORT_FORWARD defined as 'yes'
2020-12-03 17:40:05.054992 [info] ENABLE_PRIVOXY defined as 'no'
2020-12-03 17:40:05.081813 [info] ADDITIONAL_PORTS not defined (via -e ADDITIONAL_PORTS), skipping allow for custom incoming ports
2020-12-03 17:40:05.106018 [info] WEBUI_PORT defined as '8080'
2020-12-03 17:40:05.131891 [info] Starting Supervisor...
2020-12-03 17:40:05,253 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing
2020-12-03 17:40:05,253 INFO Set uid to user 0 succeeded
2020-12-03 17:40:05,255 INFO supervisord started with pid 6
2020-12-03 17:40:06,258 INFO spawned: 'start-script' with pid 145
2020-12-03 17:40:06,259 INFO spawned: 'watchdog-script' with pid 146
2020-12-03 17:40:06,260 INFO reaped unknown pid 7 (exit status 0)
2020-12-03 17:40:06,266 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2020-12-03 17:40:06,267 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-12-03 17:40:06,267 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-12-03 17:40:06,268 DEBG 'watchdog-script' stdout output:
[info] qBittorrent config file already exists, skipping copy
[info] Removing session lock file (if it exists)...

2020-12-03 17:40:06,272 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.222 to /etc/resolv.conf

2020-12-03 17:40:06,276 DEBG 'start-script' stdout output:
[info] Adding 84.200.69.80 to /etc/resolv.conf

2020-12-03 17:40:06,280 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2020-12-03 17:40:06,285 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf

2020-12-03 17:40:06,288 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.218 to /etc/resolv.conf

2020-12-03 17:40:06,292 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2020-12-03 17:40:06,296 DEBG 'start-script' stdout output:
[info] Adding 84.200.70.40 to /etc/resolv.conf

2020-12-03 17:40:06,300 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf

2020-12-03 17:40:06,407 DEBG 'start-script' stderr output:
parse error: Invalid numeric literal at line 4, column 0

2020-12-03 17:40:06,745 DEBG 'start-script' stdout output:
[info] Trying to connect to the PIA WireGuard API on 'ca-ontario.privacy.network'...

2020-12-03 17:40:07,048 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1

2020-12-03 17:40:07,065 DEBG 'start-script' stdout output:
[info] Docker network defined as    172.17.0.0/16

2020-12-03 17:40:07,069 DEBG 'start-script' stdout output:
[info] Adding 10.0.0.0/24 as route via docker eth0

2020-12-03 17:40:07,071 DEBG 'start-script' stdout output:
[info] ip route defined as follows...

2020-12-03 17:40:07,071 DEBG 'start-script' stdout output:
--------------------

2020-12-03 17:40:07,073 DEBG 'start-script' stdout output:
default via 172.17.0.1 dev eth0 
10.0.0.0/24 via 172.17.0.1 dev eth0 
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.6 

2020-12-03 17:40:07,073 DEBG 'start-script' stdout output:
--------------------

2020-12-03 17:40:07,078 DEBG 'start-script' stdout output:
iptable_mangle         16384  2
ip_tables              24576  6 iptable_filter,iptable_raw,iptable_nat,iptable_mangle

2020-12-03 17:40:07,078 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2020-12-03 17:40:07,146 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2020-12-03 17:40:07,148 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 1337 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 1337 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A INPUT -s 10.0.0.0/24 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i wg0 -j ACCEPT
-A OUTPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 1337 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 1337 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -d 10.0.0.0/24 -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -o wg0 -j ACCEPT

2020-12-03 17:40:07,149 DEBG 'start-script' stdout output:
--------------------

2020-12-03 17:40:07,153 DEBG 'start-script' stdout output:
[info] Attempting to bring WireGuard interface 'up'...

2020-12-03 17:40:07,165 DEBG 'start-script' stderr output:
Warning: `/config/wireguard/wg0.conf' is world accessible

2020-12-03 17:40:07,172 DEBG 'start-script' stderr output:
[#] ip link add wg0 type wireguard

2020-12-03 17:40:07,174 DEBG 'start-script' stderr output:
[#] wg setconf wg0 /dev/fd/63

2020-12-03 17:40:07,181 DEBG 'start-script' stderr output:
[#] ip -4 address add 10.5.147.14 dev wg0

2020-12-03 17:40:07,188 DEBG 'start-script' stderr output:
[#] ip link set mtu 1420 up dev wg0

2020-12-03 17:40:07,205 DEBG 'start-script' stderr output:
[#] wg set wg0 fwmark 51820

2020-12-03 17:40:07,206 DEBG 'start-script' stderr output:
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820

2020-12-03 17:40:07,208 DEBG 'start-script' stderr output:
[#] ip -4 rule add not fwmark 51820 table 51820

2020-12-03 17:40:07,209 DEBG 'start-script' stderr output:
[#] ip -4 rule add table main suppress_prefixlength 0

2020-12-03 17:40:07,213 DEBG 'start-script' stderr output:
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1

2020-12-03 17:40:07,214 DEBG 'start-script' stderr output:
[#] iptables-restore -n

2020-12-03 17:40:07,216 DEBG 'start-script' stderr output:
[#] '/root/wireguardup.sh'

2020-12-03 17:40:08,371 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using 'http://checkip.amazonaws.com'...

2020-12-03 17:40:08,614 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 172.98.80.71

2020-12-03 17:40:08,615 DEBG 'start-script' stdout output:
[info] WireGuard interface 'up'

2020-12-03 17:40:08,616 DEBG 'start-script' stdout output:
[info] Script started to assign incoming port

2020-12-03 17:40:08,617 DEBG 'start-script' stdout output:
[info] Port forwarding is enabled
[info] Checking endpoint 'ca-ontario.privacy.network' is port forward enabled...

2020-12-03 17:40:09,342 DEBG 'start-script' stdout output:
[info] PIA endpoint 'ca-ontario.privacy.network' is in the list of endpoints that support port forwarding

2020-12-03 17:40:09,343 DEBG 'start-script' stdout output:
[info] List of PIA endpoints that support port forwarding:-

2020-12-03 17:40:09,343 DEBG 'start-script' stdout output:
[info] al.privacy.network
[info] ad.privacy.network

2020-12-03 17:40:09,343 DEBG 'start-script' stdout output:
[info] austria.privacy.network
[info] brussels.privacy.network
[info] ba.privacy.network
[info] sofia.privacy.network
[info] czech.privacy.network
[info] denmark.privacy.network
[info] ee.privacy.network
[info] fi.privacy.network
[info] france.privacy.network
[info] de-berlin.privacy.network
[info] de-frankfurt.privacy.network
[info] gr.privacy.network
[info] hungary.privacy.network
[info] is.privacy.network
[info] ireland.privacy.network
[info] man.privacy.network
[info] italy.privacy.network
[info] lv.privacy.network
[info] liechtenstein.privacy.network
[info] lt.privacy.network
[info] lu.privacy.network
[info] mk.privacy.network
[info] malta.privacy.network
[info] md.privacy.network
[info] monaco.privacy.network
[info] montenegro.privacy.network
[info] nl-amsterdam.privacy.network
[info] no.privacy.network
[info] poland.privacy.network

2020-12-03 17:40:09,344 DEBG 'start-script' stdout output:
[info] pt.privacy.network
[info] ro.privacy.network
[info] rs.privacy.network
[info] sk.privacy.network
[info] spain.privacy.network
[info] sweden.privacy.network
[info] swiss.privacy.network
[info] ua.privacy.network
[info] uk-london.privacy.network
[info] uk-southampton.privacy.network
[info] uk-manchester.privacy.network
[info] bahamas.privacy.network
[info] ca-vancouver.privacy.network
[info] ca-ontario.privacy.network
[info] ca-toronto.privacy.network
[info] ca-montreal.privacy.network
[info] greenland.privacy.network
[info] mexico.privacy.network
[info] panama.privacy.network
[info] ar.privacy.network
[info] br.privacy.network
[info] venezuela.privacy.network
[info] yerevan.privacy.network
[info] bangladesh.privacy.network
[info] cambodia.privacy.network
[info] china.privacy.network
[info] cyprus.privacy.network
[info] georgia.privacy.network
[info] hk.privacy.network
[info] in.privacy.network
[info] israel.privacy.network
[info] japan.privacy.network
[info] macau.privacy.network
[info] mongolia.privacy.network

2020-12-03 17:40:09,344 DEBG 'start-script' stdout output:
[info] philippines.privacy.network
[info] qatar.privacy.network
[info] saudiarabia.privacy.network
[info] sg.privacy.network
[info] srilanka.privacy.network
[info] taiwan.privacy.network
[info] tr.privacy.network
[info] ae.privacy.network
[info] vietnam.privacy.network
[info] au-sydney.privacy.network
[info] aus-melbourne.privacy.network
[info] aus-perth.privacy.network
[info] nz.privacy.network
[info] dz.privacy.network
[info] egypt.privacy.network
[info] morocco.privacy.network
[info] nigeria.privacy.network
[info] za.privacy.network

2020-12-03 17:40:11,361 DEBG 'start-script' stdout output:
[info] Successfully assigned and bound incoming port '51246'

2020-12-03 17:40:11,508 DEBG 'watchdog-script' stdout output:
[info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.5.147.14 different, marking for reconfigure

2020-12-03 17:40:11,511 DEBG 'watchdog-script' stdout output:
[info] qBittorrent not running

2020-12-03 17:40:11,511 DEBG 'watchdog-script' stdout output:
[info] qBittorrent incoming port 6881 and VPN incoming port 51246 different, marking for reconfigure

2020-12-03 17:40:11,512 DEBG 'watchdog-script' stdout output:
[info] Removing session lock file (if it exists)...

2020-12-03 17:40:11,513 DEBG 'watchdog-script' stdout output:
[info] Attempting to start qBittorrent...

2020-12-03 17:40:11,528 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process started
[info] Waiting for qBittorrent process to start listening on port 8080...

2020-12-03 17:40:11,642 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process listening on port 8080

Link to comment
6 hours ago, wgstarks said:

Your watch folder has to be within your volume mapping for /data or you need to create a new volume mapping for the container that points to your watch folder.

I've got /data pointed to the host path of /mnt/user/Downloads/Qbittorent/

 

That's the directory I created for QB downloads.  Or am I just missing this whole thing entirely and too stupid to figure this out?  Knowing myself, I'm going to go with option B. lol

Link to comment
12 hours ago, CoZ said:

Either I just don't understand it at all or it's not applicable because Q2 is talking about Volume Mappings

/data and the mapping to your array is a volume mapping, so let me give you some examples:-

 

say you have /data mapped to /mnt/user/appdata/binhex-qbittorrentvpn/qBittorent/downloads ok and you want to have a completed and incomplete and watched folder, then you simply create the folders on the host, like this:-

mkdir -p  /mnt/user/appdata/binhex-qbittorrentvpn/qBittorent/downloads/incomplete

mkdir -p  /mnt/user/appdata/binhex-qbittorrentvpn/qBittorent/downloads/completed

mkdir -p  /mnt/user/appdata/binhex-qbittorrentvpn/qBittorent/downloads/watched

 

and then you configure qbittorrent via the web ui to point at /data/incomplete for incomplete downloads,  /data/completed for completed downloads, and /data/watched for watched folder (otherwise known as blackhole).

 

do you get it?.

Edited by binhex
Link to comment

Hello! 

I have been trying to get wireguard to work on my container, Halianelf gave me some tips on how to get it working. But now my container hangs on starting the wireguard client.

 

`2020-12-06 21:06:26,512 DEBG 'start-script' stderr output:
[#] ip link add wg0 type wireguard

2020-12-06 21:06:26,513 DEBG 'start-script' stderr output:
[#] wg setconf wg0 /dev/fd/63

2020-12-06 21:06:26,520 DEBG 'start-script' stderr output:
[#] ip -4 address add 10.13.124.161/24 dev wg0

2020-12-06 21:06:26,523 DEBG 'start-script' stderr output:
[#] ip link set mtu 1420 up dev wg0

2020-12-06 21:06:26,531 DEBG 'start-script' stderr output:
[#] resolvconf -a wg0 -m 0 -x

2020-12-06 21:06:26,538 DEBG 'start-script' stderr output:
could not detect a useable init system

2020-12-06 21:06:26,561 DEBG 'start-script' stderr output:
[#] wg set wg0 fwmark 51820

2020-12-06 21:06:26,562 DEBG 'start-script' stderr output:
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820

2020-12-06 21:06:26,563 DEBG 'start-script' stderr output:
[#] ip -4 rule add not fwmark 51820 table 51820

2020-12-06 21:06:26,563 DEBG 'start-script' stderr output:
[#] ip -4 rule add table main suppress_prefixlength 0

2020-12-06 21:06:26,565 DEBG 'start-script' stderr output:
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1

2020-12-06 21:06:26,566 DEBG 'start-script' stderr output:
[#] iptables-restore -n

2020-12-06 21:06:26,568 DEBG 'start-script' stderr output:
[#] '/root/wireguardup.sh'`



Any ideas? 

Thanks!

edit: it seems to happen with all vpn containers, i recreated the docker img and that didnt help either.. i am a bit lost 

Edited by Glasti
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.