[Support] binhex - DelugeVPN


Recommended Posts

I'm trying to get this docker to work but I've hit a snag and I also have a special issue to ask about as well, so here goes:

  • I've successfully installed docker (I never used it before)
  • and the deluge-vpn docker container,
  • and I can access the web ui via http://localhost:8112
  • but it says "Not connected" in the lower left corner. In this case I've disabled both VPN and Privoxy, so they're not interfering I guess? The connection manager in the web UI is blank, do I need to add a daemon address there pointing to something in the container?

 

My config at the moment:

 

docker run -d \
    --cap-add=NET_ADMIN \
    -p 8112:8112 \
    -p 8118:8118 \
    -p 58846:58846 \
    -p 58946:58946 \
    --name=delugevpn \
    -v /apps/docker/deluge/data:/data \
    -v /apps/docker/deluge/config:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e VPN_ENABLED=no \
    -e VPN_USER=username \
    -e VPN_PASS=password \
    -e VPN_PROV=custom \
    -e VPN_OPTIONS='' \
    -e STRICT_PORT_FORWARD=no \
    -e ENABLE_PRIVOXY=no \
    -e LAN_NETWORK=192.168.1.0/24 \
    -e NAME_SERVERS=xxx.xxx.xxx.xxx  \
    -e DEBUG=false \
    -e UMASK=000 \
    -e PUID=1000 \
    -e PGID=100 \
    binhex/arch-delugevpn

 

My other issue is that I've used Deluge on my linux system without docker previously, and I'm dual booting Windows 10 from another disk. So I've made a script that allows me to launch deluge with the same state file from both OS's; i.e. a script that rewrites the paths in the torrents.state file since the path from linux is something like /mnt/downloads/... and in Windows it's D:\downloads\...

How can I use the same principal with the docker container? What I'm thinking is I should maybe do something like

  1. Create a volume in docker pointing to the downloads folder (/mnt/downloads), something like /downloads inside the container
  2. Make sure that deluge in docker also points to the torrents.state file  on my Windows disk (i.e. create the volume /config/state in the container pointing to the folder /mnt/windows/deluge/state)
  3. Run a script on the torrents.state in the container, replacing the paths to point to the /downloads folder in the container

Is this a feasible solution? Happy to get any help, first off just getting everything up and running though

Edited by 7thSon
Added config
Link to comment
On 10/30/2017 at 3:32 AM, binhex said:

 

it looks like its built into os x:-


Apple computers running OS X do have a default security program called XProtect built in.

blowing away everything will fix it until XProtect finds your ovpn file and craps all over it again, you need to fix this otherwise you will get hit again.

 

I'm still at a loss as to how to stop a MAC from scanning this folder.  I routinely need to map /appdata to edit files and other things, yet I keep losing my vpn connection.  Has anyone else figured this out, because I use the same file local to the machine to connect out and it works, but stored in a mapped folder, osx is messing things up. 

Link to comment
53 minutes ago, mkyb14 said:

 

I'm still at a loss as to how to stop a MAC from scanning this folder.  I routinely need to map /appdata to edit files and other things, yet I keep losing my vpn connection.  Has anyone else figured this out, because I use the same file local to the machine to connect out and it works, but stored in a mapped folder, osx is messing things up. 

Why not just connect via SMB to edit files?

Link to comment
On 30/11/2017 at 9:01 PM, binhex said:

 

as well as @raidserver suggestion, take a look at your host, ssh in and see if you can ping that hostname, if you cant you got dns issues with the host and need to resolve that, if you can ping then take a look at what you have defined the value for NAME_SERVERS, keep in mind you CANNOT point this at your ISP's DNS or your own local DNS (if your running your own name server), defaults will work just fine.

The issue of my deluge container becoming unresponsive every view days has ceased after the recent container update.

Link to comment

So I'm having a speed issue that I've been trying to resolved over the weekend, but I am going to have to throw in the towel and ask for some assistance.

 

First time setting up and using Delugevpn.  Normally I just use qbittorrent.

 

My VPN service is VPN.ac.

 

Setting up the delugevpn docker was pretty easy. Was able to get it configured and connected to VPN.ac.

But speeds wouldn't go past 200 KiB/s.  Turn it off and download the same file with qb and easily hit 20 MiB/s.

So started trying the different locations.....same results.  Then I looked into the port forwarding stuff...but on their FAQ they do not provide port forwarding.

I've included the supervisord_vpn.log but nothing really jumped out at me.

 

New VPN....PIA.

 

So since I couldn't figure out if it was me or on VPN.ac side, I decided to sign up with PIA today to give them a try. 

I deleted the existing delugevpn docker and then recreated it (using Spaceinvaders video and binhex newbie guide/vpn info).

I had no issues getting it set up and connecting with the webUI....but again it was the same max 200 KiB/s speeds.  Tried all the different locations and no change.

 

Tried several suggestions.....like using the ItConfig plugin to to disable UDP and only use TCP.  But no luck it seems.

 

So any assistance/direction would be most appreciated.

 

And one last question...should we be able to connect to Deluge via the remote thin client?  If so.....i'm never able to connect to it with VPN enabled or not.

 

Thanks

Urlryn

supervisord_vpn.log

supervisord_pia.log

Edited by Urlryn
Link to comment

I am having issues trying to get mine to work with VPN Unlimited. At first it would tell me that the VPN port wasn't defined on the .ovpn file so I added it after the VPN server address and this error went about. Now delugevpn loads but I cannot access the webui. I am using port 8113. This is what I'm getting:

 

Quote

2017-12-10 20:25:35.307613 [info] Host is running unRAID
2017-12-10 20:25:35.326712 [info] System information Linux f44f4e3a9c29 4.9.30-unRAID #1 SMP PREEMPT Fri May 26 13:56:36 PDT 2017 x86_64 GNU/Linux
2017-12-10 20:25:35.362239 [info] PUID defined as '99'
2017-12-10 20:25:35.385435 [info] PGID defined as '100'
2017-12-10 20:25:35.545985 [info] UMASK defined as '000'
2017-12-10 20:25:35.587526 [info] Permissions already set for volume mappings
2017-12-10 20:25:35.614775 [info] VPN_ENABLED defined as 'yes'
2017-12-10 20:25:35.661808 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/1.ovpn
dos2unix: converting file /config/openvpn/1.ovpn to Unix format...
2017-12-10 20:25:35.693419 [info] VPN remote line defined as 'ca-tr.vpnunlimitedapp.com 8113'
2017-12-10 20:25:35.715161 [info] VPN_REMOTE defined as 'ca-tr.vpnunlimitedapp.com'
2017-12-10 20:25:35.740303 [info] VPN_PORT defined as '8113'
2017-12-10 20:25:35.762382 [info] VPN_PROTOCOL defined as 'udp'
2017-12-10 20:25:35.785089 [info] VPN_DEVICE_TYPE defined as 'tun'
2017-12-10 20:25:35.807064 [info] VPN_PROV defined as 'custom'
2017-12-10 20:25:35.829524 [info] LAN_NETWORK defined as '192.168.1.0/24'
2017-12-10 20:25:35.851059 [info] NAME_SERVERS defined as '209.222.18.222,37.235.1.174,8.8.8.8,209.222.18.218,37.235.1.177,8.8.4.4'
2017-12-10 20:25:35.872461 [info] VPN_USER defined as 'MYUSER'
2017-12-10 20:25:35.893958 [info] VPN_PASS defined as 'MYPASS'
2017-12-10 20:25:35.915287 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2017-12-10 20:25:35.937837 [info] ENABLE_PRIVOXY defined as 'yes'
2017-12-10 20:25:35.957527 [info] Setting permissions on files/folders inside container...
2017-12-10 20:25:35.980838 [info] Starting Supervisor...
2017-12-10 20:25:36,132 CRIT Set uid to user 0
2017-12-10 20:25:36,133 INFO Included extra file "/etc/supervisor/conf.d/delugevpn.conf" during parsing
2017-12-10 20:25:36,135 INFO supervisord started with pid 7
2017-12-10 20:25:37,137 INFO spawned: 'start-script' with pid 126
2017-12-10 20:25:37,138 INFO spawned: 'deluge-script' with pid 127
2017-12-10 20:25:37,139 INFO spawned: 'deluge-web-script' with pid 128
2017-12-10 20:25:37,140 INFO spawned: 'privoxy-script' with pid 129
2017-12-10 20:25:37,141 INFO reaped unknown pid 8
2017-12-10 20:25:37,143 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2017-12-10 20:25:37,143 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-12-10 20:25:37,143 INFO success: deluge-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-12-10 20:25:37,143 INFO success: deluge-web-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-12-10 20:25:37,143 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2017-12-10 20:25:37,145 DEBG 'deluge-script' stdout output:
[info] Deluge config file already exists, skipping copy

2017-12-10 20:25:37,146 DEBG 'deluge-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2017-12-10 20:25:37,158 DEBG 'start-script' stdout output:
[warn] Username contains characters which could cause authentication issues, please consider changing this if possible

2017-12-10 20:25:37,207 DEBG 'start-script' stdout output:
[info] Default route for container is 172.17.0.1

2017-12-10 20:25:37,209 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.222 to /etc/resolv.conf

2017-12-10 20:25:37,212 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2017-12-10 20:25:37,214 DEBG 'start-script' stdout output:
[info] Adding 8.8.8.8 to /etc/resolv.conf

2017-12-10 20:25:37,216 DEBG 'start-script' stdout output:
[info] Adding 209.222.18.218 to /etc/resolv.conf

2017-12-10 20:25:37,219 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2017-12-10 20:25:37,221 DEBG 'start-script' stdout output:
[info] Adding 8.8.4.4 to /etc/resolv.conf

2017-12-10 20:25:37,315 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.0/24 as route via docker eth0

2017-12-10 20:25:37,315 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2017-12-10 20:25:37,316 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.11
192.168.1.0/24 via 172.17.0.1 dev eth0

2017-12-10 20:25:37,316 DEBG 'start-script' stdout output:
--------------------

2017-12-10 20:25:37,318 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2017-12-10 20:25:37,334 DEBG 'start-script' stdout output:
[info] Docker network defined as 172.17.0.0/16

2017-12-10 20:25:37,379 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2017-12-10 20:25:37,380 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 8113 -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 192.168.1.0/24 -i eth0 -p tcp -m tcp --dport 58846 -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 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 8113 -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 192.168.1.0/24 -o eth0 -p tcp -m tcp --sport 58846 -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

2017-12-10 20:25:37,381 DEBG 'start-script' stdout output:
--------------------
[info] Starting OpenVPN...

2017-12-10 20:25:37,386 DEBG 'start-script' stdout output:
Sun Dec 10 20:25:37 2017 WARNING: file 'credentials.conf' is group or others accessible
Sun Dec 10 20:25:37 2017 OpenVPN 2.4.4 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep 26 2017
Sun Dec 10 20:25:37 2017 library versions: OpenSSL 1.1.0f 25 May 2017, LZO 2.10

2017-12-10 20:25:37,386 DEBG 'start-script' stdout output:
[info] OpenVPN started
Sun Dec 10 20:25:37 2017 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Sun Dec 10 20:25:37 2017 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts

2017-12-10 20:25:37,387 DEBG 'start-script' stdout output:
Sun Dec 10 20:25:37 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]162.219.176.163:8113
Sun Dec 10 20:25:37 2017 UDP link local: (not bound)
Sun Dec 10 20:25:37 2017 UDP link remote: [AF_INET]162.219.176.163:8113

2017-12-10 20:26:07,553 DEBG 'start-script' stdout output:
Sun Dec 10 20:26:07 2017 [UNDEF] Inactivity timeout (--ping-exit), exiting

2017-12-10 20:26:07,553 DEBG 'start-script' stdout output:
Sun Dec 10 20:26:07 2017 SIGTERM[soft,ping-exit] received, process exiting


 

Edited by joelstitch
Link to comment
5 hours ago, joelstitch said:

I am having issues trying to get mine to work with VPN Unlimited. At first it would tell me that the VPN port wasn't defined on the .ovpn file so I added it after the VPN server address and this error went about. Now delugevpn loads but I cannot access the webui. I am using port 8113. This is what I'm getting:

 


 

this looks like a bad ovpn file to me, i would suspect the port number is incorrect in the ovpn file:-

 

8113

you could try editing the ovpn file and replace the above number with 1194 (default port) save and reboot the container.

Link to comment
this looks like a bad ovpn file to me, i would suspect the port number is incorrect in the ovpn file:-
 
8113

you could try editing the ovpn file and replace the above number with 1194 (default port) save and reboot the container.

Just got ahold of my VPN provider and they don't allow port forwarding. So I'm guessing that's the issue.

Sent from my SM-N950U using Tapatalk

Link to comment
1 minute ago, joelstitch said:

Just got ahold of my VPN provider and they don't allow port forwarding. So I'm guessing that's the issue.

Sent from my SM-N950U using Tapatalk
 

no thats not the issue you had there, you couldnt even establish a vpn connection, however having said that if your vpn provider doesnt support port forwarding then even if you successfully got a connection you would have crap dl speeds, my advise go with PIA, they are cheap, fairly fast, very secure and offer port forwarding.

Link to comment
this looks like a bad ovpn file to me, i would suspect the port number is incorrect in the ovpn file:-
 
8113

you could try editing the ovpn file and replace the above number with 1194 (default port) save and reboot the container.

Adding the port 1194 fixed my issue. I will eventually move to another VPN provider.

Sent from my SM-N950U using Tapatalk

Link to comment

Looks like this speed issue has nothing to do with Deluge or VPN.....internet speedtests from Unraid is crap!

2Mbit/s to 8Mbit/s is the max speeds I can get even though its connected at 1000 Mb/s Full Duplex.

 

Guess i'm going look for some assistance on that first then hopefully that will fix deluge.

 

Urlryn

Link to comment

When I get to the Deluge WebUI and try to add a connection via the connection manager nothing happens when I click "Add".

So first off - what is the username to be inserted in the the deluge webUI? And what could be the problem when the "Add" button does nothing, and the lower left corner of the webUI says "Not Connected"? Is the daemon not running?

 

These are basic questions, but I can't find any mention in the documentation, and the forum search function here is broken.

Link to comment
When I get to the Deluge WebUI and try to add a connection via the connection manager nothing happens when I click "Add".

So first off - what is the username to be inserted in the the deluge webUI? And what could be the problem when the "Add" button does nothing, and the lower left corner of the webUI says "Not Connected"? Is the daemon not running?

 

These are basic questions, but I can't find any mention in the documentation, and the forum search function here is broken.

The default password is deluge or deluged

 

Sent from my SM-N950U using Tapatalk

 

 

 

Link to comment
6 minutes ago, joelstitch said:

The default password is deluge or deluged

 

Yes I read that, but I was asking about the username.

 

EDIT: Ahhhhh crap... I just tried entering the webUI from Opera instead of Pale Moon, and now I can connect with just the password (that prompt didn't even show in Pale Moon!). Ridiculous. Oh well, now I'll see what I can do to get every torrent out of the "error" state.

 

How can I connect from the deluge desktop GUI client to the container daemon?

Edited by 7thSon
Realized the problem
Link to comment

Hello binhex,

 

I am currently using PIA for my VPN service.  The issue I have is, the country  I am in will not let my VPN traffic pass on whatever port is being used by the docker container.  I would like to use TCP port 80 to pass traffic.  Do you have any idea how to do so? Thank you

Link to comment
7 minutes ago, xhaloz said:

Hello binhex,

 

I am currently using PIA for my VPN service.  The issue I have is, the country  I am in will not let my VPN traffic pass on whatever port is being used by the docker container.  I would like to use TCP port 80 to pass traffic.  Do you have any idea how to do so? Thank you

 

take a look here for your options, maybe 8080 or 443 might suffice?, i dont see any endpoints connectable on port 80 im afraid.

 

https://helpdesk.privateinternetaccess.com/hc/en-us/articles/218984968-What-is-the-difference-between-the-OpenVPN-config-files-on-your-website-

Link to comment
 
Yes I read that, but I was asking about the username.
 
EDIT: Ahhhhh crap... I just tried entering the webUI from Opera instead of Pale Moon, and now I can connect with just the password (that prompt didn't even show in Pale Moon!). Ridiculous. Oh well, now I'll see what I can do to get every torrent out of the "error" state.
 
How can I connect from the deluge desktop GUI client to the container daemon?
You have to add the deluge VPN daemon on the connection settings on the desktop deluge. So add the up of the container and port 58846

Sent from my SM-N950U using Tapatalk

Link to comment
13 minutes ago, wgstarks said:

For me it was admin@<IP>:58846

admin gives me "username does not exist" error, also tried my local username and root, neither worked.

 

11 minutes ago, joelstitch said:

You have to add the deluge VPN daemon on the connection settings on the desktop deluge. So add the up of the container and port 58846

Sent from my SM-N950U using Tapatalk
 

I'm trying that as we speak, the ip should be 127.0.0.1 if the container is running on the same machine still, right? (I also got the container IP from "docker inspect delugevpn", but if I use that IP the GUI client greys out the "Connect" button in the connection manager window).

I seem unsuccessful to log in though, as stated above, I have no idea what the username should be.

 

If I have deluge installed on the same machine I'm running the container on, and has an auth file, is that going to interfere with the GUI client?

Edited by 7thSon
Link to comment
2 minutes ago, binhex said:

 

my pleasure, cant let a shit ISP beat you now eh :-) 

Haha no sir.  You're so awesome dude.  I as well as the community really appreciate the work you're doing here.  The killswitch thing is amazing and has changed the docker game so much!  Can I buy you some starbucks? If so can you PM me  your info?

Link to comment
1 minute ago, xhaloz said:

Haha no sir.  You're so awesome dude.  I as well as the community really appreciate the work you're doing here.  The killswitch thing is amazing and has changed the docker game so much!  Can I buy you some starbucks? If so can you PM me  your info?

 

sure you can, OP of this thread or my sig if you have sigs turned on, link to paypal.

Link to comment
2 hours ago, 7thSon said:

admin gives me "username does not exist" error, also tried my local username and root, neither worked.

 

I'm trying that as we speak, the ip should be 127.0.0.1 if the container is running on the same machine still, right? (I also got the container IP from "docker inspect delugevpn", but if I use that IP the GUI client greys out the "Connect" button in the connection manager window).

I seem unsuccessful to log in though, as stated above, I have no idea what the username should be.

 

If I have deluge installed on the same machine I'm running the container on, and has an auth file, is that going to interfere with the GUI client?

 

Okay so I got my deluge desktop GUI client working, I had to edit the /config/auth file to read admin:deluge:10, those were not the standard values in my case.

I have one question left;

  • I have my downloads in a folder /mnt/disk1/downloads locally, but in the delugevpn container the mounted volume path to that folder is /downloads.
    This means that when I go into the desktop GUI client, I can't use "Open folder" function, or double click on a file to open, because I get a path error saying "/downloads is not found", since it's in the container. Is there a nice way to fix this, or do I need to set the path in the container to "/mnt/disk1/downloads"  too?
Edited by 7thSon
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.