[deprecated] paulpoco - DelugeVPN-Flexget


Recommended Posts

  • 3 months later...
  • 3 months later...
  • 2 weeks later...
12 hours ago, nekromantik said:

Great container!

One question though, if the VPN goes down does Deluge connect normally via your router then?

If so then is it possible to add a kill switch to this so that if openvpn is down then traffic goes out or in.

 

Q9. Does DelugeVPN/SABnzbdVPN/rTorrentVPN prevnet ip leakage when the tunnel goes down (aka include a 'kill switch') ?

 

A9. IP leakage is prevented by the use of iptables rules, this is significantly better than a kill switch, as it guarantee's at all times that ip leakage cannot and will not happen by blocking the ability for the application to communicate externally (web ui is allowed). 

Edited by binhex
  • Like 1
  • Upvote 1
Link to comment
 
Q9. Does DelugeVPN/SABnzbdVPN/rTorrentVPN prevnet ip leakage when the tunnel goes down (aka include a 'kill switch') ?
 
A9. IP leakage is prevented by the use of iptables rules, this is significantly better than a kill switch, as it guarantee's at all times that ip leakage cannot and will not happen by blocking the ability for the application to communicate externally (web ui is allowed). 
Thanks that is good.

Sent from my Pixel 2 XL using Tapatalk

Link to comment

hi so I got this running on a custom br0 interface with static IP.

however I cannot access the UI on port 8112 anywhere on my network, only works from container itself.

i noticed the iptables rules allows from 192.168.1.0/24 as source and destination and also allow 8112 as input from eth0 so not sure why I cant access from anywhere.

 

edit: I did notice the listen address in core.conf is the tun0 address and not eth0.

this could be the issue?

 

2018-07-15 00:21:48.419484 [info] Starting Supervisor...
2018-07-15 00:21:48,835 CRIT Set uid to user 0
2018-07-15 00:21:48,835 INFO Included extra file "/etc/supervisor/conf.d/delugevpn.conf" during parsing
2018-07-15 00:21:48,839 INFO supervisord started with pid 6
2018-07-15 00:21:49,842 INFO spawned: 'start-script' with pid 98
2018-07-15 00:21:49,846 INFO spawned: 'flexget' with pid 99
2018-07-15 00:21:49,848 INFO spawned: 'deluge-script' with pid 100
2018-07-15 00:21:49,851 INFO spawned: 'deluge-web-script' with pid 101
2018-07-15 00:21:49,855 INFO spawned: 'privoxy-script' with pid 102
2018-07-15 00:21:49,856 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2018-07-15 00:21:49,856 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2018-07-15 00:21:49,856 INFO success: flexget entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2018-07-15 00:21:49,856 INFO success: deluge-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2018-07-15 00:21:49,856 INFO success: deluge-web-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2018-07-15 00:21:49,856 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2018-07-15 00:21:49,860 DEBG 'deluge-script' stdout output:
[info] Deluge config file already exists, skipping copy

2018-07-15 00:21:49,862 DEBG 'flexget' stdout output:
[info] Starting Flexget daemon...

2018-07-15 00:21:49,863 DEBG 'deluge-script' stdout output:
[info] VPN is enabled, checking VPN tunnel local ip is valid

2018-07-15 00:21:49,863 DEBG 'flexget' stdout output:
Creating config.yml from template.

2018-07-15 00:21:49,869 DEBG 'privoxy-script' stdout output:
[info] Privoxy set to disabled

2018-07-15 00:21:49,870 DEBG fd 31 closed, stopped monitoring <POutputDispatcher at 22965530039792 for <Subprocess at 22965530811208 with name privoxy-script in state RUNNING> (stderr)>
2018-07-15 00:21:49,870 DEBG fd 27 closed, stopped monitoring <POutputDispatcher at 22965530040944 for <Subprocess at 22965530811208 with name privoxy-script in state RUNNING> (stdout)>
2018-07-15 00:21:49,870 INFO exited: privoxy-script (exit status 0; expected)
2018-07-15 00:21:49,870 DEBG received SIGCLD indicating a child quit
2018-07-15 00:21:49,880 DEBG 'flexget' stderr output:
cp: cannot stat '/config.yml': No such file or directory

2018-07-15 00:21:49,881 DEBG 'flexget' stderr output:
chown: cannot access '/home/nobody/.flexget/config.yml': No such file or directory

2018-07-15 00:21:49,881 DEBG 'flexget' stderr output:
chmod: cannot access '/home/nobody/.flexget/config.yml': No such file or directory

2018-07-15 00:21:49,881 DEBG 'flexget' stdout output:
Using userdefined Flexget-webui password of password

2018-07-15 00:21:49,887 DEBG 'start-script' stdout output:
[info] VPN config file (ovpn extension) is located at /config/openvpn/AirVPN_Sweden_UDP-443.ovpn

2018-07-15 00:21:49,898 DEBG 'start-script' stderr output:
dos2unix: converting file /config/openvpn/AirVPN_Sweden_UDP-443.ovpn to Unix format...

2018-07-15 00:21:49,937 DEBG 'start-script' stdout output:
[info] Default route for container is 192.168.1.1

2018-07-15 00:21:49,940 DEBG 'start-script' stdout output:
[info] Adding 8.8.8.8 to /etc/resolv.conf

2018-07-15 00:21:49,943 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.174 to /etc/resolv.conf

2018-07-15 00:21:49,946 DEBG 'start-script' stdout output:
[info] Adding 8.8.4.4 to /etc/resolv.conf

2018-07-15 00:21:49,949 DEBG 'start-script' stdout output:
[info] Adding 37.235.1.177 to /etc/resolv.conf

2018-07-15 00:21:49,957 DEBG 'start-script' stdout output:
[info] Adding 192.168.1.0/24 as route via docker eth0

2018-07-15 00:21:49,958 DEBG 'start-script' stderr output:
RTNETLINK answers: File exists

2018-07-15 00:21:49,958 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2018-07-15 00:21:49,959 DEBG 'start-script' stdout output:
default via 192.168.1.1 dev eth0

2018-07-15 00:21:49,959 DEBG 'start-script' stdout output:
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.75

2018-07-15 00:21:49,959 DEBG 'start-script' stdout output:
--------------------

2018-07-15 00:21:49,979 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2018-07-15 00:21:50,020 DEBG 'start-script' stdout output:
[info] Docker network defined as 192.168.1.0/24

2018-07-15 00:21:50,097 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2018-07-15 00:21:50,100 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT DROP
-A INPUT -i tun0 -j ACCEPT
-A INPUT -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --sport 443 -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 -i eth0 -p tcp -m tcp --dport 3539 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 3539 -j ACCEPT
-A INPUT -s 192.168.1.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 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT
-A OUTPUT -o eth0 -p udp -m udp --dport 443 -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 -o eth0 -p tcp -m tcp --dport 3539 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 3539 -j ACCEPT
-A OUTPUT -d 192.168.1.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

2018-07-15 00:21:50,101 DEBG 'start-script' stdout output:
--------------------
[info] Starting OpenVPN...

2018-07-15 00:21:50,159 DEBG 'start-script' stdout output:
[info] OpenVPN started

2018-07-15 00:21:50,660 DEBG 'flexget' stdout output:
2018-07-15 00:21 CRITICAL manager Failed to find configuration file config.yml

2018-07-15 00:21 INFO manager Tried to read from: /, /home/nobody/.flexget, /home/nobody/.config/flexget

2018-07-15 00:21:50,660 DEBG 'flexget' stderr output:
Could not instantiate manager: No configuration file found.

2018-07-15 00:21:51,255 DEBG 'flexget' stderr output:
Could not instantiate manager: Config `/home/nobody/.flexget/config.yml` does not appear to be a file.

2018-07-15 00:21:51,292 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 22965530004152 for <Subprocess at 22965530811856 with name flexget in state RUNNING> (stdout)>
2018-07-15 00:21:51,292 DEBG fd 16 closed, stopped monitoring <POutputDispatcher at 22965530845912 for <Subprocess at 22965530811856 with name flexget in state RUNNING> (stderr)>
2018-07-15 00:21:51,292 INFO exited: flexget (exit status 1; not expected)
2018-07-15 00:21:51,292 DEBG received SIGCLD indicating a child quit
2018-07-15 00:21:51,808 DEBG 'deluge-script' stdout output:
[info] Deluge not running
[info] Deluge listening interface IP 0.0.0.0 and VPN provider IP 10.x.xx.xx different, marking for reconfigure
[info] Attempting to start Deluge...

2018-07-15 00:21:52,124 DEBG 'deluge-script' stdout output:
[info] Deluge listening interface currently defined as 10.x.x.x
[info] Deluge listening interface will be changed to 10.x.x.x
[info] Saving changes to Deluge config file /config/core.conf...

2018-07-15 00:21:52,379 DEBG 'deluge-script' stdout output:
[info] Deluge started

2018-07-15 00:21:52,677 DEBG 'deluge-web-script' stdout output:
[info] Starting Deluge webui...

 

Edited by nekromantik
Link to comment
59 minutes ago, Paul_Ber said:

I use the Bridge setting for Network and Privilege on.

 

I am not sure why it is not working for you.

 

Someone else had same issue on bihex image you based it off.

This was back in 2016 so should been fixed. 

I am pretty good with linux networking but this stumps me.

I will try binhex latest and see if issue happens still.

 

edit: same issue on binhex docker image.

 

if I switch to bridged rather then custom bridge I can access web UI from LAN but cant from other containers.

i have nginx container as reverse proxy that I want to use to access deluge UI from external sources so need container to container working.

Edited by nekromantik
Link to comment
  • 1 month later...
On ‎6‎/‎30‎/‎2018 at 7:14 PM, Paul_Ber said:

 

Downloads shouldn't going to your appdata folder.

image.thumb.png.3cb79cf6148783cdaf38c3e22cbca824.png

 

Also the mapping should keep appdata separate from your media to download.  Ignore the /Dropbox mapping.

image.png.4968f615e965101b4e3e18e539d26421.png

hi

   I   getting  this  error  when  I  change  the  folder  to  any  other  then  the one  which is  preset  ie  in deluge   /data/

I get   Permission denied   when  I  change  the  folder

 

can  any one  help  what  is  wrong   

 

thanks

 

 

backupking

 

hi

  all

       looks  like  it   was   a mapping  issue  still learning  with unraid  working fine now

 

 

conrad

Edited by backupking
Link to comment
  • 1 year later...

Hi, so yesterday I added a cache drive and moved everything over. Had to reset up the docker apps since they weren't there and a notice saying I needed to do it since I updated from v6 or something like that. Thought I did everything right in just pointing to the app folder and everything else but for some reason got an Error on a torrent I'd try to download. So I deleted that docker and image and tried resetting it up again. Now I can't get it to load using PIA. If I disable the VPN, it will load. Anything I should try to get it going again? 

Link to comment

Master Version:

Not sure what is going on, just updated, and now it crashes without much in the logs. Debug mask set to true or false comes up with same logs

I will install and test dev, as I no longer see a master version, only 2 dev versions available.

<

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

2019-12-04 17:03:37.527209 [info] System information Linux 642928f489f4 5.3.6-Unraid #2 SMP Wed Oct 16 14:28:06 PDT 2019 x86_64 GNU/Linux
2019-12-04 17:03:37.565416 [info] PUID defined as '99'
2019-12-04 17:03:37.760181 [info] PGID defined as '100'
2019-12-04 17:03:38.047748 [info] UMASK defined as '000'
2019-12-04 17:03:38.082860 [info] Permissions already set for volume mappings
2019-12-04 17:03:38.125948 [info] DELUGE_DAEMON_LOG_LEVEL not defined,(via -e DELUGE_DAEMON_LOG_LEVEL), defaulting to 'info'
2019-12-04 17:03:38.160930 [info] DELUGE_WEB_LOG_LEVEL not defined,(via -e DELUGE_WEB_LOG_LEVEL), defaulting to 'info'
2019-12-04 17:03:38.197591 [info] VPN_ENABLED defined as 'yes'
2019-12-04 17:03:38.245688 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/**

>

  • Like 2
Link to comment
On 12/4/2019 at 7:07 PM, The_Doctor said:

Master Version:

Not sure what is going on, just updated, and now it crashes without much in the logs. Debug mask set to true or false comes up with same logs

I will install and test dev, as I no longer see a master version, only 2 dev versions available.

<

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

2019-12-04 17:03:37.527209 [info] System information Linux 642928f489f4 5.3.6-Unraid #2 SMP Wed Oct 16 14:28:06 PDT 2019 x86_64 GNU/Linux
2019-12-04 17:03:37.565416 [info] PUID defined as '99'
2019-12-04 17:03:37.760181 [info] PGID defined as '100'
2019-12-04 17:03:38.047748 [info] UMASK defined as '000'
2019-12-04 17:03:38.082860 [info] Permissions already set for volume mappings
2019-12-04 17:03:38.125948 [info] DELUGE_DAEMON_LOG_LEVEL not defined,(via -e DELUGE_DAEMON_LOG_LEVEL), defaulting to 'info'
2019-12-04 17:03:38.160930 [info] DELUGE_WEB_LOG_LEVEL not defined,(via -e DELUGE_WEB_LOG_LEVEL), defaulting to 'info'
2019-12-04 17:03:38.197591 [info] VPN_ENABLED defined as 'yes'
2019-12-04 17:03:38.245688 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/**

>

I ran into the same problem it looks like everyone was having. I didn't realize it until last night and had a few minutes to do some digging. It looks like in the latest version of the binhex container, the VPN_REMOTE and VPN_PORT variables are no longer being passed. That might not be the full story because, like I said, I only had a few minutes to look into it. I simply had to add the remote setting back into my openvpn config file to get things mostly working.

Link to comment
  • 10 months later...

so I realize it's been a minute since there was a reply here, but I thought I would try anyway. I use the binhex delugevpn docker and followed spaceinvarder1's videos about a year ago, and have used sonarr for shows, and manually download anime. I want to automate that with an RSS feed. this seems like the simplest solution, but I can't seem to get this to work. do I have to completely delete the other docker i've had working, or is stopping it enough for this to work? I cant seem to get the docker to start. it just sits there as "stopped" every time I try and start it. any help would be appreciated

Link to comment
  • 4 months later...

I know it has been a while since this was active, but I'll try anyway.

 

I'm using the dev version of this and it's working fine as far as I can tell. My one issue is that the flexget daemon doesn't run at startup/reboot. It's not a super big deal to run the command myself, but it'd be nice if I didn't have to. Is this a known issue, or something wrong on my end somehow?

Link to comment
  • Paul_Ber changed the title to [Support] paulpoco - Flexget Template (formally DelugeVPN-Flexget)

Overview: Support for Flexget Template.

Update: October 10, 2021 no longer a 2 in 1 container. 

 

I will delete my Dockhub/Github Repositories for this Docker in about a month, please migrate to Binhex-delugevpn and you need Flexget then use this template.

Edited by Paul_Ber
Link to comment
  • Paul_Ber changed the title to [deprecated] paulpoco - DelugeVPN-Flexget

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.