[Support] binhex - qBittorrentVPN


Recommended Posts

The default port in the settings is 6881, for both Host Port 1 and Host Port 2. My understanding is that this is a ubiquitous P2P port, and best avoided.

 

With the delugeVPN docker, I believe it changed the port automatically. It doesn't look like it does it in this one.

 

Where should I change the setting if I want to use a different port?

  1. in the Docker settings
  2. within qbittorrent, under Connection settings tab, change the incoming connections value (and/or check the box for use different port on startup)

Thanks

III_D

Edited by III_D
typo
Link to comment
8 hours ago, LakersFan said:

I’m hoping someone can help me with port forwarding utilizing PIA. PIA supports port forwarding on select servers as listed here: https://www.privateinternetaccess.com/helpdesk/kb/articles/can-i-use-port-forwarding-without-using-the-pia-client

 

How do I run this script from within unraid to get the port I can forward? Or better yet, if you have PIA and have port forwarding working, how’d you do it? I’ve tried opening a terminal in unraid and running the script that way. I’ve also tried running it using User Scripts. Both instances in runs, but it gives me the error “Port forwarding is already activated on this connection, has expired, or you are not connected to a PIA region that supports port forwarding”. I know someone out there has figured this out, hopefully you can help me! :) 

 

Thanks all!

It never fails ... I work on something for a week. Finally post for help, then figure it out about an hour later. lol

 

For anyone else wondering how to do this, it turns out the port to forward is in the logs. Just follow this to clear the logs, then open the log (location is in your /config location) after restarting and it’s there. 
 

Thanks binhex. I appreciate you adding this into all of your dockers. That’s why all my dockers start with binhex-.

Link to comment

Hi,

 

I am having a lot of issues with getting this to run stable. More often than not, which can be correlated with a home internet dropout, OpenVPN will dropout and will not continue working until I restart my QNAP. Not even deleting the container, data files or config will make it work.

 

Quote

2020-01-02 19:32:32,098 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process listening on port 8000

2020-01-02 19:32:32,293 DEBG 'watchdog-script' stdout output:
[info] Configuring Privoxy...

2020-01-02 19:32:32,637 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Privoxy...

2020-01-02 19:32:33,668 DEBG 'watchdog-script' stdout output:
[info] Privoxy process started
[info] Waiting for Privoxy process to start listening on port 8118...

2020-01-02 19:32:33,971 DEBG 'watchdog-script' stdout output:
[info] Privoxy process listening on port 8118

2020-01-02 19:32:53,955 DEBG 'start-script' stdout output:
[warn] OpenVPN process terminated, restarting OpenVPN...

2020-01-02 19:32:54,628 DEBG 'start-script' stdout output:
Thu Jan  2 19:32:54 2020 WARNING: file 'credentials.conf' is group or others accessible
Thu Jan  2 19:32:54 2020 OpenVPN 2.4.8 [git:makepkg/3976acda9bf10b5e+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Dec 30 2019
Thu Jan  2 19:32:54 2020 library versions: OpenSSL 1.1.1d  10 Sep 2019, LZO 2.10

2020-01-02 19:32:54,679 DEBG 'start-script' stdout output:
[info] OpenVPN restarted

2020-01-02 19:32:54,687 DEBG 'start-script' stdout output:
Thu Jan  2 19:32:54 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

Full Logs: https://gist.github.com/stuntguy3000/d14111b900d3ec7da54d967410ec34f2

 

This happens in a loop. I've even tried switching to the DelugeVPN container with exactly the same results. 

 

I'm stuck and would greatly appreciate any assistance.

 

Cheers

Link to comment
1 hour ago, stuntguy3000 said:

Hi,

 

I am having a lot of issues with getting this to run stable. More often than not, which can be correlated with a home internet dropout, OpenVPN will dropout and will not continue working until I restart my QNAP. Not even deleting the container, data files or config will make it work.

 

Full Logs: https://gist.github.com/stuntguy3000/d14111b900d3ec7da54d967410ec34f2

 

This happens in a loop. I've even tried switching to the DelugeVPN container with exactly the same results. 

 

I'm stuck and would greatly appreciate any assistance.

 

Cheers

i see you are a qnap user, this is most probably the issue see Q12:-

https://github.com/binhex/documentation/blob/master/docker/faq/vpn.md

 

 

Link to comment

I have a VPN (PrivateVPN) that has servers that forwards ports. I've noticed the docker container supports only two VPNs by default. I've set up my container for custom and have gotten it to work, but canyouseeme.org tells me my port isn't forwarded. Is there any way to configure this docker container for port forwarding if I'm using custom VPN type?

 

Thanks.

Link to comment

Is there an external way to verify it’s working? The qbittorrent logs claim it is, and I’m peaking at speeds of 320+ mbps. If I connect to one of the servers that doesn’t have port forwarding, the qbittorrent logs indicate it can’t use the port.

I’m inclined to trust the logs but am just trying to figure out whether I can externally verify it’s working.

Thanks!


Sent from my iPhone using Tapatalk

Link to comment
Is there an external way to verify it’s working? The qbittorrent logs claim it is, and I’m peaking at speeds of 320+ mbps. If I connect to one of the servers that doesn’t have port forwarding, the qbittorrent logs indicate it can’t use the port.

I’m inclined to trust the logs but am just trying to figure out whether I can externally verify it’s working.

Thanks!


Sent from my iPhone using Tapatalk
Just use csnyouseeme again, put in VPN external IP and the port assigned to you and see if it shows open

Sent from my CLT-L09 using Tapatalk

Link to comment
24 minutes ago, binhex said:

Just use csnyouseeme again, put in VPN external IP and the port assigned to you and see if it shows open
 

Canyouseeme is showing not open. (Btw, so cool you included Privoxy in this -- canyouseeme doesn't let me edit the IP address manually, just the port. But using Privoxy gets me there.) I did notice this in the logs:

[info] Application does not require port forwarding or VPN provider is != pia, skipping incoming port assignment

Do I have a setting wrong or is this normal for custom vpn types?

 

Thanks again.

Edited by DBJordan
Link to comment
Canyouseeme is showing not open. (Btw, so cool you included Privoxy in this -- canyouseeme doesn't let me edit the IP address manually, just the port. But using Privoxy gets me there.) I did notice this in the logs:
[info] Application does not require port forwarding or VPN provider is != pia, skipping incoming port assignment

Do I have a setting wrong or is this normal for custom vpn types?
 
Thanks again.

It's normal if you were using PIA then the incoming port is set for you automatically.

Sent from my CLT-L09 using Tapatalk

Link to comment

Can anyone point me towards documentation and/or examples of how to use the "Supported parameters" of the "Run external program on torrent completion" option in qBittorrent? The documentation on the qBittorrent GitHub wiki is pretty sparse regarding the subject.

 

What I’m trying to accomplish is this.

 

I would like to copy completed torrents from my "/mnt/user/downloads/complete" directory to either "/mnt/user/media/movies" or "/mnt/user/media/shows" using the category parameter specified when adding a torrent to the client.

 

Also, I plan on using a bash script, where in the file structure of the container should I keep the script that I’ll be referencing?

Link to comment

I understand there is alot of movement going on in this thread, but I wanted to add another issue that I found when using the latest version of this container. I am currently using this with PIA, and everything works fine when I use 4.1.9, however, when using the latest version, the port in the settings does not change to the port forwarded when running through its setup process. The container starts up just fine, and the logs look the same as if I were running 4.1.9, but the port does not change in the qbit settings. Sorry if this is hard to understand, but I will gladly answer any questions that anyone has.

Thank you very much for the awesome work you guys do, and just wanted to bring this to someone's attentions.

Edited by pr85
Link to comment
22 hours ago, chancedonmillion said:

I would like to copy completed torrents from my "/mnt/user/downloads/complete" directory to either "/mnt/user/media/movies" or "/mnt/user/media/shows" using the category parameter specified when adding a torrent to the client.

 

Also, I plan on using a bash script, where in the file structure of the container should I keep the script that I’ll be referencing?

You may need to rework your container parameters, because it looks like you're trying to transfer between two shares. (Although if your host path 2 is /mnt/user you can safely ignore the rest of this paragraph!)  This container has a single host path 2 available to configure, which means everything you want to copy from and to needs to be under that host path. So the first step I'd make is assign host path 2 to /mnt/user/media and mkdir /mnt/user/media/downloads/complete as your qbittorrent download directory. Once that's done, the container will have access to both locations it needs. From that point, your bash script can be placed in /mnt/user/media/downloads/myscript.bash or even /mnt/user/media/myscript.bash.

 

It doesn't need to be in the file structure of the container. You can keep it in your shares.

 

Also note that once you change host path 2 to /mnt/user/media, within the container that path becomes /data, so you'll need to tell qbittorrent to execute /data/downloads/myscript.bash or /data/myscript.bash depending on where you put it.

 

Be sure to chmod your script to be executable, then you want an external run-once-download-completes command in qbittorrent that looks like this:

/data/myscript.bash %L %F

 

And that script needs to collect the arguments from qbittorrent to run something that looks like this:

mkdir -p "/data/%L" && cp -R "%F" $_

 

Hopefully that gives you enough info to come up with something. 🙂 Good luck!

 

Edit: just one other thought. I provided a command that will create a subdir of that name if it doesn't already exist. If you already have that directory, you probably don't even need a script. Just run this program on completion:

cp -R "%F" "/data/%L"

This recursively copies the ${full path} of your download into /data/${category}.

Edited by DBJordan
Link to comment
1 hour ago, DBJordan said:

You may need to rework your container parameters, because it looks like you're trying to transfer between two shares. (Although if your host path 2 is /mnt/user you can safely ignore the rest of this paragraph!)  This container has a single host path 2 available to configure, which means everything you want to copy from and to needs to be under that host path. So the first step I'd make is assign host path 2 to /mnt/user/media and mkdir /mnt/user/media/downloads/complete as your qbittorrent download directory. Once that's done, the container will have access to both locations it needs. From that point, your bash script can be placed in /mnt/user/media/downloads/myscript.bash or even /mnt/user/media/myscript.bash.

 

It doesn't need to be in the file structure of the container. You can keep it in your shares.

 

Also note that once you change host path 2 to /mnt/user/media, within the container that path becomes /data, so you'll need to tell qbittorrent to execute /data/downloads/myscript.bash or /data/myscript.bash depending on where you put it.

 

Be sure to chmod your script to be executable, then you want an external run-once-download-completes command in qbittorrent that looks like this:


/data/myscript.bash %L %F

 

And that script needs to collect the arguments from qbittorrent to run something that looks like this:


mkdir -p "/data/%L" && cp -R "%F" $_

 

Hopefully that gives you enough info to come up with something. 🙂 Good luck!

 

Edit: just one other thought. I provided a command that will create a subdir of that name if it doesn't already exist. If you already have that directory, you probably don't even need a script. Just run this program on completion:


cp -R "%F" "/data/%L"

This recursively copies the ${full path} of your download into /data/${category}.

Thanks! 

Link to comment

I am attempting to create two containers from this image, (see the reason why on an rTorrentVPN thread), but this seems impossible. No matter what I set the ports to on a container, there are some hard-coded ports that cannot be changed, and it appears as though that's causing conflicts when I attempt to spin up a second container from the same image. Here's the first container's config in docker-compose.yml (note the custom port numbers):

 

  qbittorrentvpn:
    image: binhex/arch-qbittorrentvpn:4.1.9-1-01
    container_name: qbittorrent-vpn
    network_mode: "containernet"
    privileged: true
    environment:
      - VPN_ENABLED=yes
      - VPN_USER=<NOT SHOWING>
      - VPN_PASS=<NOT SHOWING>
      - VPN_PROV=custom
      - LAN_NETWORK=192.168.100.0/24, 172.18.0.0/16
      - DEBUG=false
      - WEBUI_PORT=8090
      - UMASK=002
      - PUID=1048
      - PGID=65540
    volumes:
      - /volume2/media/dockervolumes/qbittorrent/config:/config
      - /volume2/media:/data
    ports:
      - "6882:6882"
      - "6882:6882/udp"
      - "8090:8090"
      - "8118:8118"

Yet when I create the container, check out the ports that it uses in the attached image. (I highlighted them.) You can also see in that image that the second container did not spin up; it exited with a code of "1".

 

  1. Are these "hard-coded" ports the culprit of causing the second container to fail to load?
  2. Whether or not #1 is true, what can I do about this?

mintty_A6IAM8RQiq.png

Link to comment
10 hours ago, Sturm said:

Are these "hard-coded" ports the culprit of causing the second container to fail to load?

no, those highlighted ports are the default ports as specified in the dockerfile, this is not the issue. 

can you please post the docker-compose file for the second container you are trying to setup so that i can compare the two.

Link to comment
7 hours ago, binhex said:

no, those highlighted ports are the default ports as specified in the dockerfile, this is not the issue. 

can you please post the docker-compose file for the second container you are trying to setup so that i can compare the two.

Certainly. Here's the `qbmusic` container:

  qbmusic:
    image: binhex/arch-qbittorrentvpn:4.1.9-1-01
    container_name: qbmusic
    network_mode: "containernet"
    privileged: true
    environment:
      - VPN_ENABLED=yes
      - VPN_USER=<SAME AS ABOVE>
      - VPN_PASS=<SAME AS ABOVE>
      - VPN_PROV=custom
      - LAN_NETWORK=192.168.100.0/24, 172.18.0.0/16
      - DEBUG=false
      - WEBUI_PORT=8091
      - UMASK=002
      - PUID=1048
      - PGID=65540
    volumes:
      - /volume2/media/dockervolumes/qbmusic/config:/config
      - /volume2/media/downloads/music:/data
    ports:
      - "6883:6883"
      - "6883:6883/udp"
      - "8091:8091"
      - "8121:8121"

 

Link to comment
On 1/9/2020 at 5:22 AM, Sturm said:

You can also see in that image that the second container did not spin up; it exited with a code of "1".

so the docker-compose file looks ok, i need to get some more logs on that exit code 1 really, try issuing:-

 

docker logs <name of container>

is there a file /config/supervisord.log file generated?, if so please attach.

Link to comment
12 hours ago, binhex said:

is there a file /config/supervisord.log file generated?, if so please attach.

Egg on my face. I forgot to copy over all of the necessary OpenVPN files to the config/openvpn/ folder. Thank you for teaching me the `docker logs` command so I could finally see what was causing that exit code.

 

That was entirely my fault and I apologize for taking up your time with my incompetence.

  • Like 1
Link to comment

Hi could I get some fresh eyes on this, I have been unable to access the container since upgrading cache drive. I moved all appdata from cache back to cache.

 

Container starts and log shows:

ErrorWarningSystemArrayLogin


Created by...
___. .__ .__
\_ |__ |__| ____ | |__ ____ ___ ___
| __ \| |/ \| | \_/ __ \\ \/ /
| \_\ \ | | \ Y \ ___/ > <
|___ /__|___| /___| /\___ >__/\_ \
\/ \/ \/ \/ \/
https://hub.docker.com/u/binhex/

2020-01-18 10:38:25.827252 [info] System information Linux ed2a560652cb 4.19.94-Unraid #1 SMP Thu Jan 9 08:20:36 PST 2020 x86_64 GNU/Linux
2020-01-18 10:38:26.060532 [info] PUID defined as '99'
2020-01-18 10:38:26.320064 [info] PGID defined as '100'
2020-01-18 10:38:26.535793 [info] UMASK defined as '000'
2020-01-18 10:38:26.652919 [info] Permissions already set for volume mappings
2020-01-18 10:38:26.784143 [info] VPN_ENABLED defined as 'yes'
2020-01-18 10:38:26.914572 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/France.ovpn
2020-01-18 10:38:27.125198 [info] VPN remote line defined as 'remote france.privateinternetaccess.com 1198'
2020-01-18 10:38:27.293232 [info] VPN_REMOTE defined as 'france.privateinternetaccess.com'
2020-01-18 10:38:27.485757 [info] VPN_PORT defined as '1198'
2020-01-18 10:38:27.685965 [info] VPN_PROTOCOL defined as 'udp'
2020-01-18 10:38:27.782987 [info] VPN_DEVICE_TYPE defined as 'tun0'
2020-01-18 10:38:27.862066 [info] VPN_PROV defined as 'pia'
2020-01-18 10:38:28.015148 [info] LAN_NETWORK defined as '192.168.1.0/24'
2020-01-18 10:38:28.140962 [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-01-18 10:38:28.247178 [info] VPN_USER defined as 'REMOVED'
2020-01-18 10:38:28.343682 [info] VPN_PASS defined as 'REMOVED'
2020-01-18 10:38:28.426859 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2020-01-18 10:38:28.520395 [info] STRICT_PORT_FORWARD defined as 'yes'
2020-01-18 10:38:28.608559 [info] ENABLE_PRIVOXY defined as 'yes'
2020-01-18 10:38:28.707584 [info] WEBUI_PORT defined as '8080'
2020-01-18 10:38:29.038008 [info] Deleting files in /tmp (non recursive)...
2020-01-18 10:38:29.238038 [info] Starting Supervisor...
2020-01-18 10:38:32,519 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing
2020-01-18 10:38:32,524 INFO Set uid to user 0 succeeded
2020-01-18 10:38:32,607 INFO supervisord started with pid 6
2020-01-18 10:38:33,640 INFO spawned: 'start-script' with pid 163
2020-01-18 10:38:33,668 INFO spawned: 'watchdog-script' with pid 164
2020-01-18 10:38:33,673 INFO reaped unknown pid 7
2020-01-18 10:38:33,721 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2020-01-18 10:38:33,724 DEBG 'watchdog-script' stdout output:
[info] qBittorrent config file already exists, skipping copy
[info] Removing session lock file (if it exists)...

2020-01-18 10:38:33,725 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-01-18 10:38:33,726 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-01-18 10:38:34,268 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1

2020-01-18 10:38:34,292 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.222 to /etc/resolv.conf

2020-01-18 10:38:34,303 DEBG 'start-script' stdout output:
[info] Adding 84.200.69.80 to /etc/resolv.conf

2020-01-18 10:38:34,314 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2020-01-18 10:38:34,345 DEBG 'start-script' stdout output:
[info] Adding 1.1.1.1 to /etc/resolv.conf

2020-01-18 10:38:34,365 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.218 to /etc/resolv.conf

2020-01-18 10:38:34,381 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2020-01-18 10:38:34,400 DEBG 'start-script' stdout output:
[info] Adding 84.200.70.40 to /etc/resolv.conf

2020-01-18 10:38:34,416 DEBG 'start-script' stdout output:
[info] Adding 1.0.0.1 to /etc/resolv.conf

2020-01-18 10:38:34,879 DEBG 'start-script' stdout output:
[info] Docker network defined as 172.17.0.0/16

2020-01-18 10:38:34,894 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.0/24 as route via docker eth0

2020-01-18 10:38:34,902 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2020-01-18 10:38:34,905 DEBG 'start-script' stdout output:
default via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.3
192.168.1.0/24 via 172.17.0.1 dev eth0

2020-01-18 10:38:34,906 DEBG 'start-script' stdout output:
--------------------

2020-01-18 10:38:34,934 DEBG 'start-script' stdout output:
iptable_mangle 16384 2
ip_tables 24576 5 iptable_filter,iptable_nat,iptable_mangle

2020-01-18 10:38:34,935 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2020-01-18 10:38:35,176 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2020-01-18 10:38:35,186 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 udp -m udp --sport 1198 -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 192.168.1.0/24 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -d 172.17.0.0/16 -i eth0 -p tcp -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i tun0 -j ACCEPT
-A OUTPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 1198 -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 192.168.1.0/24 -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
-A OUTPUT -s 172.17.0.0/16 -d 192.168.1.0/24 -o eth0 -p tcp -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -o tun0 -j ACCEPT
--------------------

2020-01-18 10:38:35,191 DEBG 'start-script' stdout output:
[info] Starting OpenVPN...

2020-01-18 10:38:35,605 DEBG 'start-script' stdout output:
Sat Jan 18 10:38:35 2020 WARNING: file 'credentials.conf' is group or others accessible

Sat Jan 18 10:38:35 2020 OpenVPN 2.4.8 [git:makepkg/3976acda9bf10b5e+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jan 3 2020
Sat Jan 18 10:38:35 2020 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10

2020-01-18 10:38:35,638 DEBG 'start-script' stdout output:
Sat Jan 18 10:38:35 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2020-01-18 10:38:35,659 DEBG 'start-script' stdout output:
[info] OpenVPN started

2020-01-18 10:38:35,693 DEBG 'start-script' stdout output:
Sat Jan 18 10:38:35 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]194.187.249.179:1198
Sat Jan 18 10:38:35 2020 UDP link local: (not bound)
Sat Jan 18 10:38:35 2020 UDP link remote: [AF_INET]194.187.249.179:1198

2020-01-18 10:38:35,910 DEBG 'start-script' stdout output:
Sat Jan 18 10:38:35 2020 [9ca054a0b76deeb31203586eb3930595] Peer Connection Initiated with [AF_INET]194.187.249.179:1198

2020-01-18 10:38:37,004 DEBG 'start-script' stdout output:
Sat Jan 18 10:38:37 2020 TUN/TAP device tun0 opened
Sat Jan 18 10:38:37 2020 /usr/bin/ip link set dev tun0 up mtu 1500

2020-01-18 10:38:37,019 DEBG 'start-script' stdout output:
Sat Jan 18 10:38:37 2020 /usr/bin/ip addr add dev tun0 local 10.27.10.6 peer 10.27.10.5

2020-01-18 10:38:37,024 DEBG 'start-script' stdout output:
Sat Jan 18 10:38:37 2020 /root/openvpnup.sh tun0 1500 1558 10.27.10.6 10.27.10.5 init

2020-01-18 10:38:37,053 DEBG 'start-script' stdout output:
Sat Jan 18 10:38:37 2020 Initialization Sequence Completed

2020-01-18 10:38:37,214 DEBG 'start-script' stdout output:
[info] Port forwarding is enabled
[info] Checking endpoint 'france.privateinternetaccess.com' is port forward enabled...

2020-01-18 10:38:37,227 DEBG 'start-script' stdout output:
[info] Attempting to curl https://www.privateinternetaccess.com/vpninfo/servers?version=82...


2020-01-18 10:38:37,829 DEBG 'start-script' stdout output:
[info] Curl successful for https://www.privateinternetaccess.com/vpninfo/servers?version=82, response code 200


2020-01-18 10:38:38,027 DEBG 'start-script' stdout output:
[info] PIA endpoint 'france.privateinternetaccess.com' is in the list of endpoints that support port forwarding

2020-01-18 10:38:38,030 DEBG 'start-script' stdout output:
[info] List of PIA endpoints that support port forwarding:-
[info] ca-toronto.privateinternetaccess.com
[info] ca-montreal.privateinternetaccess.com
[info] ca-vancouver.privateinternetaccess.com
[info] de-berlin.privateinternetaccess.com
[info] de-frankfurt.privateinternetaccess.com
[info] sweden.privateinternetaccess.com
[info] swiss.privateinternetaccess.com
[info] france.privateinternetaccess.com
[info] czech.privateinternetaccess.com
[info] spain.privateinternetaccess.com
[info] ro.privateinternetaccess.com
[info] israel.privateinternetaccess.com
[info] Attempting to get dynamically assigned port...

2020-01-18 10:38:38,056 DEBG 'start-script' stdout output:
[info] Attempting to curl http://209.222.18.222:2000/?client_id=443498638210d5b73c330bdb47e6e09fd08528bc14bb9935d93b7915ffbf4333...

2020-01-18 10:38:38,840 DEBG 'start-script' stdout output:
[info] Curl successful for http://209.222.18.222:2000/?client_id=443498638210d5b73c330bdb47e6e09fd08528bc14bb9935d93b7915ffbf4333, response code 200

2020-01-18 10:38:38,944 DEBG 'start-script' stdout output:
[info] Successfully assigned incoming port 47470

2020-01-18 10:38:38,949 DEBG 'start-script' stdout output:
[info] Checking we can resolve name 'www.google.com' to address...

2020-01-18 10:38:39,006 DEBG 'start-script' stdout output:
[info] DNS operational, we can resolve name 'www.google.com' to address '216.58.213.4'

2020-01-18 10:38:39,012 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using Name Server 'ns1.google.com'...

2020-01-18 10:38:39,192 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 194.187.249.179

2020-01-18 10:38:39,371 DEBG 'watchdog-script' stdout output:
[info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.27.10.6 different, marking for reconfigure

2020-01-18 10:38:39,385 DEBG 'watchdog-script' stdout output:
[info] qBittorrent not running

2020-01-18 10:38:39,395 DEBG 'watchdog-script' stdout output:
[info] Privoxy not running

2020-01-18 10:38:39,396 DEBG 'watchdog-script' stdout output:
[info] qBittorrent incoming port 6881 and VPN incoming port 47470 different, marking for reconfigure

2020-01-18 10:38:39,397 DEBG 'watchdog-script' stdout output:
[info] Removing session lock file (if it exists)...

2020-01-18 10:38:39,401 DEBG 'watchdog-script' stdout output:
[info] Attempting to start qBittorrent...

2020-01-18 10:38:40,294 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process started
[info] Waiting for qBittorrent process to start listening on port 8080...

2020-01-18 10:38:40,634 DEBG 'watchdog-script' stdout output:
[info] qBittorrent process listening on port 8080

2020-01-18 10:38:40,874 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Privoxy...

2020-01-18 10:38:41,924 DEBG 'watchdog-script' stdout output:
[info] Privoxy process started
[info] Waiting for Privoxy process to start listening on port 8118...

2020-01-18 10:38:42,012 DEBG 'watchdog-script' stdout output:
[info] Privoxy process listening on port 8118

I tried removing the container and adding it fresh but still no access to webgui also checked port allocation and nothing appears to be clashing...

 

Docker command

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='binhex-qbittorrentvpn' --net='bridge' --privileged=true -e TZ="Europe/London" -e HOST_OS="Unraid" -e 'VPN_ENABLED'='yes' -e 'VPN_USER'='REMOVED' -e 'VPN_PASS'='REMOVED' -e 'VPN_PROV'='pia' -e 'VPN_OPTIONS'='' -e 'STRICT_PORT_FORWARD'='yes' -e 'ENABLE_PRIVOXY'='yes' -e 'WEBUI_PORT'='8080' -e 'LAN_NETWORK'='192.168.1.0/24' -e 'NAME_SERVERS'='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' -e 'DEBUG'='false' -e 'UMASK'='000' -e 'PUID'='99' -e 'PGID'='100' -p '6881:6881/tcp' -p '8080:8080/tcp' -p '8118:8118/tcp' -v '/mnt/user/Downloads/data/':'/data':'rw' -v '/mnt/user/appdata/binhex-qbittorrentvpn':'/config':'rw' 'binhex/arch-qbittorrentvpn' 
735626c32186a1a76155f608d423e15e7be0c52ec15833dbb871edc41e3db64a

The command finished successfully!

supervisord.zip

 

Have also download latest opvn files from PIA and added not use ipv6

Link to comment
Hi could I get some fresh eyes on this, I have been unable to access the container since upgrading cache drive. I moved all appdata from cache back to cache.

 

Container starts and log shows:

ErrorWarningSystemArrayLoginCreated by...___. .__ .__\_ |__ |__| ____ | |__ ____ ___ ___| __ \| |/ \| | \_/ __ \\ \/ /| \_\ \ | | \ Y \ ___/ > |___ /__|___| /___| /\___ >__/\_ \\/ \/ \/ \/ \/https://hub.docker.com/u/binhex/2020-01-18 10:38:25.827252 [info] System information Linux ed2a560652cb 4.19.94-Unraid #1 SMP Thu Jan 9 08:20:36 PST 2020 x86_64 GNU/Linux2020-01-18 10:38:26.060532 [info] PUID defined as '99'2020-01-18 10:38:26.320064 [info] PGID defined as '100'2020-01-18 10:38:26.535793 [info] UMASK defined as '000'2020-01-18 10:38:26.652919 [info] Permissions already set for volume mappings2020-01-18 10:38:26.784143 [info] VPN_ENABLED defined as 'yes'2020-01-18 10:38:26.914572 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/France.ovpn2020-01-18 10:38:27.125198 [info] VPN remote line defined as 'remote france.privateinternetaccess.com 1198'2020-01-18 10:38:27.293232 [info] VPN_REMOTE defined as 'france.privateinternetaccess.com'2020-01-18 10:38:27.485757 [info] VPN_PORT defined as '1198'2020-01-18 10:38:27.685965 [info] VPN_PROTOCOL defined as 'udp'2020-01-18 10:38:27.782987 [info] VPN_DEVICE_TYPE defined as 'tun0'2020-01-18 10:38:27.862066 [info] VPN_PROV defined as 'pia'2020-01-18 10:38:28.015148 [info] LAN_NETWORK defined as '192.168.1.0/24'2020-01-18 10:38:28.140962 [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-01-18 10:38:28.247178 [info] VPN_USER defined as 'REMOVED'2020-01-18 10:38:28.343682 [info] VPN_PASS defined as 'REMOVED'2020-01-18 10:38:28.426859 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)2020-01-18 10:38:28.520395 [info] STRICT_PORT_FORWARD defined as 'yes'2020-01-18 10:38:28.608559 [info] ENABLE_PRIVOXY defined as 'yes'2020-01-18 10:38:28.707584 [info] WEBUI_PORT defined as '8080'2020-01-18 10:38:29.038008 [info] Deleting files in /tmp (non recursive)...2020-01-18 10:38:29.238038 [info] Starting Supervisor...2020-01-18 10:38:32,519 INFO Included extra file "/etc/supervisor/conf.d/qbittorrent.conf" during parsing2020-01-18 10:38:32,524 INFO Set uid to user 0 succeeded2020-01-18 10:38:32,607 INFO supervisord started with pid 62020-01-18 10:38:33,640 INFO spawned: 'start-script' with pid 1632020-01-18 10:38:33,668 INFO spawned: 'watchdog-script' with pid 1642020-01-18 10:38:33,673 INFO reaped unknown pid 72020-01-18 10:38:33,721 DEBG 'start-script' stdout output:[info] VPN is enabled, beginning configuration of VPN2020-01-18 10:38:33,724 DEBG 'watchdog-script' stdout output:[info] qBittorrent config file already exists, skipping copy[info] Removing session lock file (if it exists)...2020-01-18 10:38:33,725 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)2020-01-18 10:38:33,726 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)2020-01-18 10:38:34,268 DEBG 'start-script' stdout output:[info] Default route for container is 172.17.0.12020-01-18 10:38:34,292 DEBG 'start-script' stdout output:[info] Adding 209.222.18.222 to /etc/resolv.conf2020-01-18 10:38:34,303 DEBG 'start-script' stdout output:[info] Adding 84.200.69.80 to /etc/resolv.conf2020-01-18 10:38:34,314 DEBG 'start-script' stdout output:[info] Adding 37.235.1.174 to /etc/resolv.conf2020-01-18 10:38:34,345 DEBG 'start-script' stdout output:[info] Adding 1.1.1.1 to /etc/resolv.conf2020-01-18 10:38:34,365 DEBG 'start-script' stdout output:[info] Adding 209.222.18.218 to /etc/resolv.conf2020-01-18 10:38:34,381 DEBG 'start-script' stdout output:[info] Adding 37.235.1.177 to /etc/resolv.conf2020-01-18 10:38:34,400 DEBG 'start-script' stdout output:[info] Adding 84.200.70.40 to /etc/resolv.conf2020-01-18 10:38:34,416 DEBG 'start-script' stdout output:[info] Adding 1.0.0.1 to /etc/resolv.conf2020-01-18 10:38:34,879 DEBG 'start-script' stdout output:[info] Docker network defined as 172.17.0.0/162020-01-18 10:38:34,894 DEBG 'start-script' stdout output:[info] Adding 192.168.1.0/24 as route via docker eth02020-01-18 10:38:34,902 DEBG 'start-script' stdout output:[info] ip route defined as follows...--------------------2020-01-18 10:38:34,905 DEBG 'start-script' stdout output:default via 172.17.0.1 dev eth0172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.3192.168.1.0/24 via 172.17.0.1 dev eth02020-01-18 10:38:34,906 DEBG 'start-script' stdout output:--------------------2020-01-18 10:38:34,934 DEBG 'start-script' stdout output:iptable_mangle 16384 2ip_tables 24576 5 iptable_filter,iptable_nat,iptable_mangle2020-01-18 10:38:34,935 DEBG 'start-script' stdout output:[info] iptable_mangle support detected, adding fwmark for tables2020-01-18 10:38:35,176 DEBG 'start-script' stdout output:[info] iptables defined as follows...--------------------2020-01-18 10:38:35,186 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 udp -m udp --sport 1198 -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 192.168.1.0/24 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT-A INPUT -s 192.168.1.0/24 -d 172.17.0.0/16 -i eth0 -p tcp -j ACCEPT-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT-A INPUT -i lo -j ACCEPT-A INPUT -i tun0 -j ACCEPT-A OUTPUT -s 172.17.0.0/16 -d 172.17.0.0/16 -j ACCEPT-A OUTPUT -o eth0 -p udp -m udp --dport 1198 -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 192.168.1.0/24 -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT-A OUTPUT -s 172.17.0.0/16 -d 192.168.1.0/24 -o eth0 -p tcp -j ACCEPT-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT-A OUTPUT -o lo -j ACCEPT-A OUTPUT -o tun0 -j ACCEPT--------------------2020-01-18 10:38:35,191 DEBG 'start-script' stdout output:[info] Starting OpenVPN...2020-01-18 10:38:35,605 DEBG 'start-script' stdout output:Sat Jan 18 10:38:35 2020 WARNING: file 'credentials.conf' is group or others accessibleSat Jan 18 10:38:35 2020 OpenVPN 2.4.8 [git:makepkg/3976acda9bf10b5e+] x86_64-pc-linux-gnu [sSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jan 3 2020Sat Jan 18 10:38:35 2020 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.102020-01-18 10:38:35,638 DEBG 'start-script' stdout output:Sat Jan 18 10:38:35 2020 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts2020-01-18 10:38:35,659 DEBG 'start-script' stdout output:[info] OpenVPN started2020-01-18 10:38:35,693 DEBG 'start-script' stdout output:Sat Jan 18 10:38:35 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]194.187.249.179:1198Sat Jan 18 10:38:35 2020 UDP link local: (not bound)Sat Jan 18 10:38:35 2020 UDP link remote: [AF_INET]194.187.249.179:11982020-01-18 10:38:35,910 DEBG 'start-script' stdout output:Sat Jan 18 10:38:35 2020 [9ca054a0b76deeb31203586eb3930595] Peer Connection Initiated with [AF_INET]194.187.249.179:11982020-01-18 10:38:37,004 DEBG 'start-script' stdout output:Sat Jan 18 10:38:37 2020 TUN/TAP device tun0 openedSat Jan 18 10:38:37 2020 /usr/bin/ip link set dev tun0 up mtu 15002020-01-18 10:38:37,019 DEBG 'start-script' stdout output:Sat Jan 18 10:38:37 2020 /usr/bin/ip addr add dev tun0 local 10.27.10.6 peer 10.27.10.52020-01-18 10:38:37,024 DEBG 'start-script' stdout output:Sat Jan 18 10:38:37 2020 /root/openvpnup.sh tun0 1500 1558 10.27.10.6 10.27.10.5 init2020-01-18 10:38:37,053 DEBG 'start-script' stdout output:Sat Jan 18 10:38:37 2020 Initialization Sequence Completed2020-01-18 10:38:37,214 DEBG 'start-script' stdout output:[info] Port forwarding is enabled[info] Checking endpoint 'france.privateinternetaccess.com' is port forward enabled...2020-01-18 10:38:37,227 DEBG 'start-script' stdout output:[info] Attempting to curl https://www.privateinternetaccess.com/vpninfo/servers?version=82...2020-01-18 10:38:37,829 DEBG 'start-script' stdout output:[info] Curl successful for https://www.privateinternetaccess.com/vpninfo/servers?version=82, response code 2002020-01-18 10:38:38,027 DEBG 'start-script' stdout output:[info] PIA endpoint 'france.privateinternetaccess.com' is in the list of endpoints that support port forwarding2020-01-18 10:38:38,030 DEBG 'start-script' stdout output:[info] List of PIA endpoints that support port forwarding:-[info] ca-toronto.privateinternetaccess.com[info] ca-montreal.privateinternetaccess.com[info] ca-vancouver.privateinternetaccess.com[info] de-berlin.privateinternetaccess.com[info] de-frankfurt.privateinternetaccess.com[info] sweden.privateinternetaccess.com[info] swiss.privateinternetaccess.com[info] france.privateinternetaccess.com[info] czech.privateinternetaccess.com[info] spain.privateinternetaccess.com[info] ro.privateinternetaccess.com[info] israel.privateinternetaccess.com[info] Attempting to get dynamically assigned port...2020-01-18 10:38:38,056 DEBG 'start-script' stdout output:[info] Attempting to curl http://209.222.18.222:2000/?client_id=443498638210d5b73c330bdb47e6e09fd08528bc14bb9935d93b7915ffbf4333...2020-01-18 10:38:38,840 DEBG 'start-script' stdout output:[info] Curl successful for http://209.222.18.222:2000/?client_id=443498638210d5b73c330bdb47e6e09fd08528bc14bb9935d93b7915ffbf4333, response code 2002020-01-18 10:38:38,944 DEBG 'start-script' stdout output:[info] Successfully assigned incoming port 474702020-01-18 10:38:38,949 DEBG 'start-script' stdout output:[info] Checking we can resolve name 'www.google.com' to address...2020-01-18 10:38:39,006 DEBG 'start-script' stdout output:[info] DNS operational, we can resolve name 'www.google.com' to address '216.58.213.4'2020-01-18 10:38:39,012 DEBG 'start-script' stdout output:[info] Attempting to get external IP using Name Server 'ns1.google.com'...2020-01-18 10:38:39,192 DEBG 'start-script' stdout output:[info] Successfully retrieved external IP address 194.187.249.1792020-01-18 10:38:39,371 DEBG 'watchdog-script' stdout output:[info] qBittorrent listening interface IP 0.0.0.0 and VPN provider IP 10.27.10.6 different, marking for reconfigure2020-01-18 10:38:39,385 DEBG 'watchdog-script' stdout output:[info] qBittorrent not running2020-01-18 10:38:39,395 DEBG 'watchdog-script' stdout output:[info] Privoxy not running2020-01-18 10:38:39,396 DEBG 'watchdog-script' stdout output:[info] qBittorrent incoming port 6881 and VPN incoming port 47470 different, marking for reconfigure2020-01-18 10:38:39,397 DEBG 'watchdog-script' stdout output:[info] Removing session lock file (if it exists)...2020-01-18 10:38:39,401 DEBG 'watchdog-script' stdout output:[info] Attempting to start qBittorrent...2020-01-18 10:38:40,294 DEBG 'watchdog-script' stdout output:[info] qBittorrent process started[info] Waiting for qBittorrent process to start listening on port 8080...2020-01-18 10:38:40,634 DEBG 'watchdog-script' stdout output:[info] qBittorrent process listening on port 80802020-01-18 10:38:40,874 DEBG 'watchdog-script' stdout output:[info] Attempting to start Privoxy...2020-01-18 10:38:41,924 DEBG 'watchdog-script' stdout output:[info] Privoxy process started[info] Waiting for Privoxy process to start listening on port 8118...2020-01-18 10:38:42,012 DEBG 'watchdog-script' stdout output:[info] Privoxy process listening on port 8118

I tried removing the container and adding it fresh but still no access to webgui also checked port allocation and nothing appears to be clashing...

 

Docker command

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='binhex-qbittorrentvpn' --net='bridge' --privileged=true -e TZ="Europe/London" -e HOST_OS="Unraid" -e 'VPN_ENABLED'='yes' -e 'VPN_USER'='REMOVED' -e 'VPN_PASS'='REMOVED' -e 'VPN_PROV'='pia' -e 'VPN_OPTIONS'='' -e 'STRICT_PORT_FORWARD'='yes' -e 'ENABLE_PRIVOXY'='yes' -e 'WEBUI_PORT'='8080' -e 'LAN_NETWORK'='192.168.1.0/24' -e 'NAME_SERVERS'='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' -e 'DEBUG'='false' -e 'UMASK'='000' -e 'PUID'='99' -e 'PGID'='100' -p '6881:6881/tcp' -p '8080:8080/tcp' -p '8118:8118/tcp' -v '/mnt/user/Downloads/data/':'/data':'rw' -v '/mnt/user/appdata/binhex-qbittorrentvpn':'/config':'rw' 'binhex/arch-qbittorrentvpn' 735626c32186a1a76155f608d423e15e7be0c52ec15833dbb871edc41e3db64aThe command finished successfully!

supervisord.zip

 

Have also download latest opvn files from PIA and added not use ipv6

 

What is the URL you are attempting to connect to the web UI with? And what is the IP address of unraid host?

 

Sent from my CLT-L09 using Tapatalk

 

 

 

Link to comment
192.168.1.3 web port is set to 8080 but think it was previously 8081. I tried changing it but no luck. The weird thing its actually downloading but cant access the webgui
What is the IP of the client you are using to attempt connection to the web UI?

Sent from my CLT-L09 using Tapatalk

Link to comment
4 minutes ago, binhex said:

What is the IP of the client you are using to attempt connection to the web UI?

Sent from my CLT-L09 using Tapatalk
 

192.168.10.2 (using vpn to connect to unraid)

 

I know this is a lazy way to fix but I just deleted the image and appdata, did a fresh pull and config and its working

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.