[Support] binhex - DelugeVPN


Recommended Posts

how do I use DelugeSiphon, or is there a better chrome extension that others use?

 

Thanks!!

 

I just copy/paste the links into Deluge "+Add" button.

 

I don't use Chrome, but in Firefox I use the "Torrent Status" plugin, took a little bit of trial and error to get all setup, but now magnets go directly to deluge, couldn't be easier now.

Link to comment

Seems like this may have been skipped over, I still have this issue. Is there anyone that could assist?

 

I'm having a strange issue. First, I am currently at work using a VPN to connect into my home network. I am connected just fine. I can use the docker just fine without VPN enabled. When I try and use it with VPN enabled to my Torguard account, I am unable to access using the LAN. Looking at the logs it seems to be restarting a bunch and I'm not quite sure why. Here is the output of my log, with the last two lines repeating. Here is also the OpenVPN config that Torguard gives me to use. Time codes on the last few lines are wrong - I did copy pasta from another log to show how it repeats.

 

Update, I've tried a few other things like changing the openvpn.opvn file to the one that Torguard supplies. I put the certificate in the openvpn folder. But still having the same issue.

 

client
dev tun
proto udp
remote chi.central.usa.torguardvpnaccess.com 1912
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
tls-auth ta.key 1
auth SHA256
cipher AES-128-CBC
remote-cert-tls server
auth-user-pass
comp-lzo
verb 1
reneg-sec 0
fast-io
# Uncomment these directives if you have speed issues
;sndbuf 393216
;rcvbuf 393216
;push "sndbuf 393216"
;push "rcvbuf 393216"

 

usermod: no changes
[info] Env var PUID defined as 99
[info] Env var PGID defined as 100
[info] Permissions already set for /config and /data
[info] Starting Supervisor...
2016-10-12 08:47:35,980 CRIT Set uid to user 0
2016-10-12 08:47:35,980 INFO Included extra file "/etc/supervisor/conf.d/delugevpn.conf" during parsing
2016-10-12 08:47:35,984 INFO supervisord started with pid 23
2016-10-12 08:47:36,985 INFO spawned: 'start-script' with pid 26
2016-10-12 08:47:36,986 INFO spawned: 'webui-script' with pid 27
2016-10-12 08:47:36,988 INFO spawned: 'deluge-script' with pid 28
2016-10-12 08:47:36,989 INFO spawned: 'privoxy-script' with pid 29
2016-10-12 08:47:36,999 DEBG 'privoxy-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2016-10-12 08:47:36,999 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-10-12 08:47:36,999 INFO success: webui-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-10-12 08:47:36,999 INFO success: deluge-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-10-12 08:47:36,999 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2016-10-12 08:47:37,000 DEBG 'deluge-script' stdout output:
[info] deluge config file already exists, skipping copy

2016-10-12 08:47:37,000 DEBG 'deluge-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2016-10-12 08:47:37,003 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2016-10-12 08:47:37,014 DEBG 'start-script' stdout output:
[info] VPN provider defined as custom
[info] VPN config file (ovpn extension) is located at /config/openvpn/openvpn.ovpn

2016-10-12 08:47:37,017 DEBG 'start-script' stdout output:
[info] Env vars defined via docker -e flags for remote host, port and protocol, writing values to ovpn file...

2016-10-12 08:47:37,031 DEBG 'start-script' stdout output:
[info] VPN provider remote gateway defined as chi.central.usa.torguardvpnaccess.com
[info] VPN provider remote port defined as 1912
[info] VPN provider remote protocol defined as udp

2016-10-12 08:47:37,040 DEBG 'start-script' stdout output:
[info] VPN provider username defined as <EMAIL>

2016-10-12 08:47:37,045 DEBG 'start-script' stdout output:
[warn] Username contains characters which could cause authentication issues, please consider changing this if possible

2016-10-12 08:47:37,049 DEBG 'start-script' stdout output:
[info] VPN provider password defined as <PASSWORD>

2016-10-12 08:47:37,054 DEBG 'start-script' stdout output:
[warn] Password contains characters which could cause authentication issues, please consider changing this if possible

2016-10-12 08:47:37,076 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1

2016-10-12 08:47:37,084 DEBG 'start-script' stdout output:
[info] Setting permissions recursively on /config/openvpn...

2016-10-12 08:47:37,095 DEBG 'start-script' stdout output:
[info] Adding 10.32.87.0/24 as route via docker eth0

2016-10-12 08:47:37,095 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2016-10-12 08:47:37,096 DEBG 'start-script' stdout output:
default via 172.17.0.1 dev eth0
10.##.##.0/24 via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 proto kernel scope link src 172.17.0.4

2016-10-12 08:47:37,096 DEBG 'start-script' stdout output:
--------------------

2016-10-12 08:47:37,100 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2016-10-12 08:47:37,133 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2016-10-12 08:47:37,135 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT DROP
-A INPUT -i tun0 -j ACCEPT
-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 1912 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 8112 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 8112 -j ACCEPT
-A INPUT -s 10.##.##.0/24 -i eth0 -p tcp -m tcp --dport 58846 -j ACCEPT
-A INPUT -p udp -m udp --sport 53 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A OUTPUT -o 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 1912 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 8112 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 8112 -j ACCEPT
-A OUTPUT -d 10.##.##.0/24 -o eth0 -p tcp -m tcp --sport 58846 -j ACCEPT
-A OUTPUT -p udp -m udp --dport 53 -j ACCEPT
-A OUTPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT

2016-10-12 08:47:37,135 DEBG 'start-script' stdout output:
--------------------

2016-10-12 08:47:37,135 DEBG 'start-script' stdout output:
[info] nameservers

2016-10-12 08:47:37,136 DEBG 'start-script' stdout output:
nameserver 8.8.8.8
nameserver 8.8.4.4

2016-10-12 08:47:37,136 DEBG 'start-script' stdout output:
--------------------
[info] Starting OpenVPN...

2016-10-12 08:47:37,142 DEBG 'start-script' stdout output:
Wed Oct 12 08:47:37 2016 OpenVPN 2.3.11 x86_64-unknown-linux-gnu [sSL (OpenSSL)] [LZO] [EPOLL] [MH] [iPv6] built on May 12 2016
Wed Oct 12 08:47:37 2016 library versions: OpenSSL 1.0.2h 3 May 2016, LZO 2.09
Wed Oct 12 08:47:37 2016 WARNING: file 'credentials.conf' is group or others accessible


2016-10-12 08:47:37,185 DEBG 'start-script' stdout output:
Wed Oct 12 08:47:37 2016 UDPv4 link local: [undef]
Wed Oct 12 08:47:37 2016 UDPv4 link remote: [AF_INET]104.129.28.154:1912

2016-10-12 08:53:52,101 DEBG 'start-script' stdout output:
Wed Oct 12 08:53:52 2016 [uNDEF] Inactivity timeout (--ping-restart), restarting
Wed Oct 12 08:53:52 2016 SIGUSR1[soft,ping-restart] received, process restarting

2016-10-12 08:53:54,154 DEBG 'start-script' stdout output:
Wed Oct 12 08:53:54 2016 UDPv4 link local: [undef]
Wed Oct 12 08:53:54 2016 UDPv4 link remote: [AF_INET]104.129.29.2:1912

 

ok i cant see anything too obvious here, can you please post the docker run command you issued to create the container, or if using unraid then screenshot the settings screen for the container (minus password of course).

 

one thing that does show up is that your username and password have some characters in them that may be causing issues, any chance you could change these to be of the format 0-9A-Za-z ?

Link to comment

Nope, didn't help at all... still back to:

 

2016-10-14 06:59:44,834 DEBG 'start-script' stdout output:
Fri Oct 14 06:59:44 2016 UDPv4 link local: [undef]
Fri Oct 14 06:59:44 2016 UDPv4 link remote: [AF_INET]104.129.28.66:1912

2016-10-14 07:00:44,834 DEBG 'start-script' stdout output:
Fri Oct 14 07:00:44 2016 [uNDEF] Inactivity timeout (--ping-restart), restarting

2016-10-14 07:00:44,834 DEBG 'start-script' stdout output:
Fri Oct 14 07:00:44 2016 SIGUSR1[soft,ping-restart] received, process restarting

2016-10-14 07:00:46,884 DEBG 'start-script' stdout output:
Fri Oct 14 07:00:46 2016 UDPv4 link local: [undef]
Fri Oct 14 07:00:46 2016 UDPv4 link remote: [AF_INET]104.129.28.42:1912

2016-10-14 07:01:46,903 DEBG 'start-script' stdout output:
Fri Oct 14 07:01:46 2016 [uNDEF] Inactivity timeout (--ping-restart), restarting
Fri Oct 14 07:01:46 2016 SIGUSR1[soft,ping-restart] received, process restarting

2016-10-14 07:01:48,946 DEBG 'start-script' stdout output:
Fri Oct 14 07:01:48 2016 UDPv4 link local: [undef]
Fri Oct 14 07:01:48 2016 UDPv4 link remote: [AF_INET]104.129.29.34:1912

 

Could it be because the UDPv4 link local: [undef] is supposed to have an IP in it like the UDPv4 link remote: [AF_INET]104.129.29.34:1912. I'm guessing the Remote is to the vpn and the local would be how I would connect?

Link to comment

Could it be because the UDPv4 link local: [undef] is supposed to have an IP in it like the UDPv4 link remote: [AF_INET]104.129.29.34:1912. I'm guessing the Remote is to the vpn and the local would be how I would connect?

 

no thats not the issue as im seeing the exact same thing in my logs and can successfully connect. ok can you do a ls -al for your /config/openvpn folder, i want to see what files you have in there.

Link to comment

Could it be because the UDPv4 link local: [undef] is supposed to have an IP in it like the UDPv4 link remote: [AF_INET]104.129.29.34:1912. I'm guessing the Remote is to the vpn and the local would be how I would connect?

 

no thats not the issue as im seeing the exact same thing in my logs and can successfully connect. ok can you do a ls -al for your /config/openvpn folder, i want to see what files you have in there.

 

so ive just been on the website and downloaded the openvpn zip and extracted it, you should have the following files and folders shown in the screenshot attached in your /config/openvpn/ folder, if you dont then you need to re-download the openvpn zip, see second screenshot.

 

Screen_Shot_2016-10-14_at_13_16_32.png.18c26732b8c54c971642f72d13904892.png

Screen_Shot_2016-10-14_at_13_19_42.png.43f3e14f26b86a02640818a2957e690f.png

Link to comment

That was it, I must have borked something up somewhere. I put those 3 files in there again and it seems to work now. Thanks for the help. I did grab the UDP server download zip from another part of the site, maybe that one is not quite right somehow.

Excellent, thanks for reporting back

 

Sent from my SM-G900F using Tapatalk

 

 

Link to comment

I keep running out of space. I only have like 2.4G showing on the docker. When I click it it has the

 

Download to: /home/nobody/Incompletes

Move completed to: /home/nobody/Completed

 

I think I need to change those.

Download to: /mnt/disks/Crucial_CT240M500SSD1_1347095AC112/deluge-temp

Move completed to: /user/Movies

 

Do I just use the builtin file locations dialog or do I need to adjust some settings file?

 

Link to comment

I keep trying to connect counchpotato but I get a connection failed error. I do have the allow remote connections option enabled as well as user name and password defined in auth file like e.g. in first post.

 

Any help would be appreciated. I can connect to the webui without problems.

 

Also how do i change the default password?

Link to comment

In the docker, I edited

/root/iptable.sh

/home/nobody/checkip.sh

/home/nobody/getvpnip

where I changed tun to tap and restarted the docker. 

 

VPN connects correctly, tap0 is visible, I can ping to 8.8.8.8 and to my local boxes, webUI works and the torrent download.  Gog is a happy camper :)

 

Would it be possible to add an environment vadiable like VPN_DEVICE_TYPE, set to tun or tap and use that variable in the scripts?

Good work, and yes that was exactly what I had in mind

 

Sent from my SM-G900F using Tapatalk

 

OK this is now in, this actually was more work then i first thought, it forced to tidy up some of the code, ive done some testing locally and it runs fine but please let me know if anybody is seeing any strange issues.

 

If you want to define this then please create an additional env variable called "VPN_DEVICE_TYPE" and give it a value of either "tun" or "tap", failure to define this will result in "tun".

 

I have also included code to warn and switch ports for people still running the old pia port number (including udp and tcp, normal and strong variants), so hoping i wont see any more of those :-).

Link to comment

(...) it forced to tidy up some of the code (...)

 

See, because of me your code is better.  You should tank me...

 

It works like a charm.  I had already the new variable in (I saw yesterday's release and jumped the gun) and a simple upgrade had me up and running.

 

Thanks!

 

 

Link to comment

After the update of the tidy up code, the docker don't start anymore. I use airvpn as VPN provider

 

please attach your supervisord.log file located in /config

 

This is the code of the supervisord.log:

2016-10-19 17:09:26.929703 [info] PUID defined as 99
2016-10-19 17:09:26.963829 [info] PGID defined as 100
2016-10-19 17:09:27.122419 [info] Permissions already set for /config and /data
2016-10-19 17:09:27.156665 [info] VPN_PROV defined as airvpn
2016-10-19 17:09:27.190241 [info] VPN_REMOTE defined as se.vpn.airdns.org
2016-10-19 17:09:27.221946 [info] VPN_PORT defined as 443
2016-10-19 17:09:27.252582 [info] VPN_PROTOCOL defined as udp
2016-10-19 17:09:27.282271 [crit] VPN_USER not specified, please specify using env variable VPN_USER

 

There is no VPN_USER variable, because AIRVPN don't need a username to connect.

Link to comment

After the update of the tidy up code, the docker don't start anymore. I use airvpn as VPN provider

 

please attach your supervisord.log file located in /config

 

This is the code of the supervisord.log:

2016-10-19 17:09:26.929703 [info] PUID defined as 99
2016-10-19 17:09:26.963829 [info] PGID defined as 100
2016-10-19 17:09:27.122419 [info] Permissions already set for /config and /data
2016-10-19 17:09:27.156665 [info] VPN_PROV defined as airvpn
2016-10-19 17:09:27.190241 [info] VPN_REMOTE defined as se.vpn.airdns.org
2016-10-19 17:09:27.221946 [info] VPN_PORT defined as 443
2016-10-19 17:09:27.252582 [info] VPN_PROTOCOL defined as udp
2016-10-19 17:09:27.282271 [crit] VPN_USER not specified, please specify using env variable VPN_USER

 

There is no VPN_USER variable, because AIRVPN don't need a username to connect.

 

When I add the:

VPN_USER and VPN_PASS

 

The container starts again. But the VPN_USER and VPN_PASS values are fake.

Link to comment

After the update of the tidy up code, the docker don't start anymore. I use airvpn as VPN provider

 

please attach your supervisord.log file located in /config

 

This is the code of the supervisord.log:

2016-10-19 17:09:26.929703 [info] PUID defined as 99
2016-10-19 17:09:26.963829 [info] PGID defined as 100
2016-10-19 17:09:27.122419 [info] Permissions already set for /config and /data
2016-10-19 17:09:27.156665 [info] VPN_PROV defined as airvpn
2016-10-19 17:09:27.190241 [info] VPN_REMOTE defined as se.vpn.airdns.org
2016-10-19 17:09:27.221946 [info] VPN_PORT defined as 443
2016-10-19 17:09:27.252582 [info] VPN_PROTOCOL defined as udp
2016-10-19 17:09:27.282271 [crit] VPN_USER not specified, please specify using env variable VPN_USER

 

There is no VPN_USER variable, because AIRVPN don't need a username to connect.

 

ahh yes forgot about that, it uses a custom cert to authenticate right?. ok no probs, i can fix that, look out for an update in a few hours.

Link to comment

I love the support thread s- I too am having this issue! Have I missed an update?

 

Cheers

 

Stuart

 

if your running unraid 6.1.9 then update notification is broken, you need to click advanced view and then click the "force update" link. if you are seeing updates and have updated to the latest then i will need you to attach the supervisord.log file for me to diagnose the issue further.

Link to comment

just updated to latest version.... log below... Cant see VPN_protocol in container edit - am I being slow?

 

*********

Created by...

___.  .__      .__                 

\_ |__ |__| ____ |  |__  ____ ___  ___

| __ \|  |/    \|  |  \_/ __ \\  \/  /

| \_\ \  |  |  \  Y  \  ___/ >    <

|___  /__|___|  /___|  /\___  >__/\_ \

    \/        \/    \/    \/      \/

  https://hub.docker.com/u/binhex/

 

2016-10-20 21:13:13.244137 [info] Looks like the host is running unRAID

2016-10-20 21:13:13.265984 [warn] PUID not defined (via -e PUID), defaulting to '99'

2016-10-20 21:13:13.288430 [warn] PGID not defined (via -e PGID), defaulting to '100'

2016-10-20 21:13:13.367807 [info] Permissions already set for /config and /data

2016-10-20 21:13:13.389823 [info] VPN_ENABLED defined as 'yes'

2016-10-20 21:13:13.421356 [info] VPN_PROV defined as 'airvpn'

2016-10-20 21:13:13.442158 [info] VPN_REMOTE defined as 'nl.privateinternetaccess.com'

2016-10-20 21:13:13.463632 [info] VPN_PORT defined as '1194'

2016-10-20 21:13:13.484562 [crit] VPN_PROTOCOL not defined (via -e VPN_PROTOCOL), exiting...

Link to comment

just updated to latest version.... log below... Cant see VPN_protocol in container edit - am I being slow?

 

*********

Created by...

___.  .__      .__                 

\_ |__ |__| ____ |  |__  ____ ___  ___

| __ \|  |/    \|  |  \_/ __ \\  \/  /

| \_\ \  |  |  \  Y  \  ___/ >    <

|___  /__|___|  /___|  /\___  >__/\_ \

    \/        \/    \/    \/      \/

  https://hub.docker.com/u/binhex/

 

2016-10-20 21:13:13.244137 [info] Looks like the host is running unRAID

2016-10-20 21:13:13.265984 [warn] PUID not defined (via -e PUID), defaulting to '99'

2016-10-20 21:13:13.288430 [warn] PGID not defined (via -e PGID), defaulting to '100'

2016-10-20 21:13:13.367807 [info] Permissions already set for /config and /data

2016-10-20 21:13:13.389823 [info] VPN_ENABLED defined as 'yes'

2016-10-20 21:13:13.421356 [info] VPN_PROV defined as 'airvpn'

2016-10-20 21:13:13.442158 [info] VPN_REMOTE defined as 'nl.privateinternetaccess.com'

2016-10-20 21:13:13.463632 [info] VPN_PORT defined as '1194'

2016-10-20 21:13:13.484562 [crit] VPN_PROTOCOL not defined (via -e VPN_PROTOCOL), exiting...

It it's not defined then you need to add it in, set the name as detailed above and the protocol as shown in your ovpn file.

 

Sent from my SM-G900F using Tapatalk

 

 

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.