[Support] binhex - rTorrentVPN


Recommended Posts

I just set up a new unRAID box wit rtorrentvpn 0.9.6. I can't access the web interface at all. It requires a usename and password that are a complete mystery to me. I never made those. No prompts to make them. Nothing. How do I define those? There's nothing I can see in the template relating to authentication. I'm pulling my hair out a little trying to find the answer. Searching ain't helping.

 

taken from docker hub (linked in first post of this thread):-

 

Access ruTorrent (web ui)

 

http://<host ip>:9080/

 

or

 

https://<host ip>:9443/

 

Username:- admin

Password:- rutorrent

 

That default password was all I needed. All the googling in the world wasn't helping!! Thank you! And can someone in charge please find a way to make that information more readily available for the next n00b like me?

 

Cheers!

Link to comment

Hey, what have you guys found is the best way to add torrents while not at home to this set up?

On my windows pc I just had my torrent program look for any .tor files added to a google drive folder - and that allowed me to add torrents wherever I was and my computer back at home would automatically download them.  But I understand there isn't a google drive plugin/docker.

 

Is there a prefered plugin or browser plugin?

Link to comment

Hey, what have you guys found is the best way to add torrents while not at home to this set up?

On my windows pc I just had my torrent program look for any .tor files added to a google drive folder - and that allowed me to add torrents wherever I was and my computer back at home would automatically download them.  But I understand there isn't a google drive plugin/docker.

 

Is there a prefered plugin or browser plugin?

 

i cant really help you on the browser plugin, but if you just happen to have a android smartphone then i cannot recommend enough the excellent transdroid app and transdroid search app (integrates), this can then hook straight back to deluge/rutorrent and you can then stop/start/add/del torrents from anywhere with an wifi/3g connection, its awesome :-).

 

https://github.com/erickok/transdroid/releases

https://github.com/erickok/transdroid-search

Link to comment

Hi all,

 

Firstly, love your work, but I'm having trouble getting this going.  I'll say first up I'm not on Unraid, I use Docker in a Synology Diskstation.

 

So, I've gotten everything set up, but I'm stuck on this:

 

2017-02-14 12:19:51,108 DEBG 'start-script' stdout output:
[info] OpenVPN started
[debug] Waiting for valid IP address from tunnel...

 

Just seems to sit there on that.  I've attached my supervisord.log.

 

Just signed up to PIA today to use this basically, so hopefully I can get it working :D . Bit stuck as to what else to try...

 

EDIT: Something to do with those iptables messages? 

 

2017-02-15 03:21:21,793 DEBG 'start-script' stderr output:
iptables: No chain/target/match by that name.


2017-02-15 03:21:21,808 DEBG 'start-script' stderr output:
iptables: No chain/target/match by that name.

 

EDIT2:

 

Ok, I'm kind of in over my head now, but I took a look at your iptables script on the git page, and (again I'm probably way off as I haven't mess with this stuff before), it seems like it's getting stuck on:

 

# setup route for deluge webui using set-mark to route traffic for port 8112 to eth0

echo "8112    webui" >> /etc/iproute2/rt_tables

ip rule add fwmark 1 table webui

ip route add default via $DEFAULT_GATEWAY table webui

 

I checked the rt_tables file and there's no webui table in there at all.  Not sure if it's a permission thing (I actually changed to PUID and PGID 0 so that should be root should it not, and I'm running the container with high privileges, so permissions should be OK) or something else entirely.

 

I should say that I'm trying with the deluge docker as well (hence the above message) to see that was any different, but of course it's the same issue ;)

 

Any help appreciated :)

supervisord_copy.txt

Link to comment

Hi all,

 

Firstly, love your work, but I'm having trouble getting this going.  I'll say first up I'm not on Unraid, I use Docker in a Synology Diskstation.

 

So, I've gotten everything set up, but I'm stuck on this:

 

2017-02-14 12:19:51,108 DEBG 'start-script' stdout output:
[info] OpenVPN started
[debug] Waiting for valid IP address from tunnel...

 

Just seems to sit there on that.  I've attached my supervisord.log.

 

Just signed up to PIA today to use this basically, so hopefully I can get it working :D . Bit stuck as to what else to try...

 

EDIT: Something to do with those iptables messages? 

 

2017-02-15 03:21:21,793 DEBG 'start-script' stderr output:
iptables: No chain/target/match by that name.


2017-02-15 03:21:21,808 DEBG 'start-script' stderr output:
iptables: No chain/target/match by that name.

 

EDIT2:

 

Ok, I'm kind of in over my head now, but I took a look at your iptables script on the git page, and (again I'm probably way off as I haven't mess with this stuff before), it seems like it's getting stuck on:

 

# setup route for deluge webui using set-mark to route traffic for port 8112 to eth0

echo "8112    webui" >> /etc/iproute2/rt_tables

ip rule add fwmark 1 table webui

ip route add default via $DEFAULT_GATEWAY table webui

 

I checked the rt_tables file and there's no webui table in there at all.  Not sure if it's a permission thing (I actually changed to PUID and PGID 0 so that should be root should it not, and I'm running the container with high privileges, so permissions should be OK) or something else entirely.

 

I should say that I'm trying with the deluge docker as well (hence the above message) to see that was any different, but of course it's the same issue ;)

 

Any help appreciated :)

 

i think your right, its iptables is faiiing for some reason to create the rules, one of the reasons this might be happening is if the LAN_RANGE value is incorrect, can you verify your LAN network is indeed "192.168.1.0", see my sig vpn faq q5 for help if your unsure.

Link to comment

 

i think your right, its iptables is faiiing for some reason to create the rules, one of the reasons this might be happening is if the LAN_RANGE value is incorrect, can you verify your LAN network is indeed "192.168.1.0", see my sig vpn faq q5 for help if your unsure.

 

Well, I should say that I'm staying with my inlaws at the moment ( :-\ ) for a while so I'm not on my home network.  That said I've logged into their terrible router and:

 

JIcqQUG.jpg

 

3Vy3TLO.jpg

 

The NAS running Docker is on 192.168.1.7 if that makes any difference, but I though the LAN range should be ok?

Link to comment

I've been googling frantically for the past day or so, and at the moment I'm ssh'd into the Synology running some commands.  Not sure if any of this is useful:

 

admin@Disktation:~$ ip rule ls
0:          from all lookup local
2:          from all lookup static-table
3:          from 192.168.1.7 lookup eth0-table
32766:  from all lookup main
32767:  from all lookup default

 

admin@Disktation:~$ ip route ls table eth0-table
192.168.1.0/24 via 192.168.1.7 dev eth0

Link to comment

I've been googling frantically for the past day or so, and at the moment I'm ssh'd into the Synology running some commands.  Not sure if any of this is useful:

 

admin@Disktation:~$ ip rule ls
0:          from all lookup local
2:          from all lookup static-table
3:          from 192.168.1.7 lookup eth0-table
32766:  from all lookup main
32767:  from all lookup default

 

admin@Disktation:~$ ip route ls table eth0-table
192.168.1.0/24 via 192.168.1.7 dev eth0

 

can you send me your docker run command, minus username and password

Link to comment

I've been googling frantically for the past day or so, and at the moment I'm ssh'd into the Synology running some commands.  Not sure if any of this is useful:

 

admin@Disktation:~$ ip rule ls
0:          from all lookup local
2:          from all lookup static-table
3:          from 192.168.1.7 lookup eth0-table
32766:  from all lookup main
32767:  from all lookup default

 

admin@Disktation:~$ ip route ls table eth0-table
192.168.1.0/24 via 192.168.1.7 dev eth0

 

can you send me your docker run command, minus username and password

 

It's actually all handled in the GUI on the synology, but let me see if I can find out what it's doing

Link to comment

ive just recalled this issue with somebody running a synology box and trying to run this container, they had issues with apparmor:-

 

https://www.reddit.com/r/synology/comments/4gpf9d/docker_and_apparmor_issue/

 

Ok, well let me disable that for a sec and see if the container runs properly :)  One sec!

 

No change unfortunately :(  I've renabled it for now but will try and work out how to check the logs to see if there's anything interesting in there. 

Link to comment

Here's docker inspect in case that helps, while I try and work out how to get the run command.

 

root@DiskStation:~# docker inspect --format "$(<run.tpl)" binhex-arch-rtorrentvpn1
-ash: run.tpl: No such file or directory
[
    {
        "Id": "261c9565158cd238f1a08441057b1052c27a0af93964cd5515d795b892f9453a",
        "Created": "2017-02-14T11:53:31.089513847Z",
        "Path": "/usr/bin/tini",
        "Args": [
            "--",
            "/bin/bash",
            "/root/init.sh"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 17458,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2017-02-15T21:58:05.482311855Z",
            "FinishedAt": "2017-02-15T06:07:47.05098826Z"        },
        "Image": "sha256:26154f6c835150bc8fc3024ed9044906c52bd7edca588834c1b226f1f2b98c29",
        "ResolvConfPath": "/volume1/@docker/containers/261c9565158cd238f1a08441057b1052c27a0af93964cd5515d795b892f9453a/resolv.conf",
        "HostnamePath": "/volume1/@docker/containers/261c9565158cd238f1a08441057b1052c27a0af93964cd5515d795b892f9453a/hostname",
        "HostsPath": "/volume1/@docker/containers/261c9565158cd238f1a08441057b1052c27a0af93964cd5515d795b892f9453a/hosts",
        "LogPath": "/volume1/@docker/containers/261c9565158cd238f1a08441057b1052c27a0af93964cd5515d795b892f9453a/log.db",
        "Name": "/binhex-arch-rtorrentvpn1",
        "RestartCount": 0,
        "Driver": "aufs",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/volume1/docker/rtorrentvpn/data:/data:rw",
                "/volume1/docker/rtorrentvpn:/config:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "db",
                "Config": {}
            },
            "NetworkMode": "bridge",
            "PortBindings": {
                "3000/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "3000"
                    }
                ],
                "49160/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "49160"
                    }
                ],
                "49170/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "49170"
                    }
                ],
                "5000/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "35000"
                    }
                ],
                "8118/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "38118"
                    }
                ],
                "9080/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "39080"
                    }
                ],
                "9443/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "39443"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "always",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": true,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "StorageOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Env": [
                "VPN_REMOTE=nl.privateinternetaccess.com",
                "VPN_PORT=1198",
                "PUID=0",
                "PGID=0",
                "DEBUG=true",
                "NAME_SERVERS=8.8.8.8,8.8.4.4",
                "LAN_NETWORK=192.168.1.0/24",
                "ENABLE_FLOOD=no",
                "ENABLE_PRIVOXY=no",
                "STRONG_CERTS=no",
                "VPN_PROV=pia",
                "VPN_DEVICE_TYPE=tun",
                "VPN_PROTOCOL=udp",
                "VPN_PASS=xx",
                "VPN_USER=xx",
                "VPN_ENABLED=yes",
                "PHP_TZ=Australia/Melbourne"
            ],
            "Override": true,
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 50,
            "Memory": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DiskQuota": 0,
            "KernelMemory": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": -1,
            "OomKillDisable": false,
            "PidsLimit": 0,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "BlkioIOps": 0,
            "BlkioBps": 0,
            "SandboxSize": 0
        },
        "GraphDriver": {
            "Name": "aufs",
            "Data": null
        },
        "SynoUpTime": 1487195885,
        "SynoFinishTime": -1,
        "SynoStatus": "running",
        "Mounts": [
            {
                "Source": "/volume1/docker/rtorrentvpn/data",
                "Destination": "/data",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Source": "/volume1/docker/rtorrentvpn",
                "Destination": "/config",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "binhex-arch-rtorrentvpn1",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "3000/tcp": {},
                "49160/tcp": {},
                "49170/tcp": {},
                "5000/tcp": {},
                "8118/tcp": {},
                "9080/tcp": {},
                "9443/tcp": {}
            },
            "Tty": true,
            "OpenStdin": true,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "HOME=/home/nobody",
                "TERM=xterm",
                "LANG=en_GB.UTF-8",
                "VPN_PORT=1198",
                "PUID=0",
                "PGID=0",
                "DEBUG=true",
                "NAME_SERVERS=8.8.8.8,8.8.4.4",
                "LAN_NETWORK=192.168.1.0/24",
                "ENABLE_FLOOD=no",
                "ENABLE_PRIVOXY=no",
                "STRONG_CERTS=no",
                "VPN_PROV=pia",
                "VPN_DEVICE_TYPE=tun",
                "VPN_PROTOCOL=udp",
                "VPN_PASS=xx",
                "VPN_USER=xx",
                "VPN_ENABLED=yes",
                "PHP_TZ=Australia/Melbourne",
                "VPN_REMOTE=nl.privateinternetaccess.com"            ],
            "Cmd": [
                "/bin/bash",
                "/root/init.sh"
            ],
            "Image": "binhex/arch-rtorrentvpn:latest",
            "Volumes": {
                "/config": {},
                "/data": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/usr/bin/tini",
                "--"
            ],
            "OnBuild": null,
            "Labels": {},
            "DDSM": false
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "4bebf222a05ffda4bab389b3074df75d4edb74bb356e5b93d83c02bb27b158c0",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "3000/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "3000"
                    }
                ],
                "49160/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "49160"
                    }
                ],
                "49170/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "49170"
                    }
                ],
                "5000/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "35000"
                    }
                ],
                "8118/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "38118"
                    }
                ],
                "9080/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "39080"
                    }
                ],
                "9443/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "39443"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/4bebf222a05f",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "e152cc8b432f67585345c7ed3e37a85e4e3c5c3b927a50b2cc412ccbd222d855",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "fe80::242:ac11:7",
            "GlobalIPv6PrefixLen": 64,
            "IPAddress": "172.17.0.7",
            "IPPrefixLen": 16,
            "IPv6Gateway": "fe80::1",
            "MacAddress": "02:42:ac:11:00:07",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "17954bdbefc4463df1ea1848c6bce7126cdccd9b9b60535dc95bdaaaa6f33e52",
                    "EndpointID": "e152cc8b432f67585345c7ed3e37a85e4e3c5c3b927a50b2cc412ccbd222d855",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.7",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "fe80::1",
                    "GlobalIPv6Address": "fe80::242:ac11:7",
                    "GlobalIPv6PrefixLen": 64,
                    "MacAddress": "02:42:ac:11:00:07"
                }
            }
        }
    }
]

Link to comment

I just ran an update to the binhex-rtorrentvpn docker in unRAID 6.2.1 and now my WebUI doesn't come up. I'm also trying to put in VPN settings, but I assume that shouldn't change anything with the WebUI.

 

Edit: Just updated to unRAID 6.3.2. No change.

 

Another edit: Ok, I was wrong. I disabled the VPN settings and now I have WebUI access. So how do I enable VPN while maintaining control of rtorrent?

Link to comment

I just ran an update to the binhex-rtorrentvpn docker in unRAID 6.2.1 and now my WebUI doesn't come up. I'm also trying to put in VPN settings, but I assume that shouldn't change anything with the WebUI.

 

Edit: Just updated to unRAID 6.3.2. No change.

 

Another edit: Ok, I was wrong. I disabled the VPN settings and now I have WebUI access. So how do I enable VPN while maintaining control of rtorrent?

 

The same thing happened to me ~3 days ago when I updated the docker.. rtorrent will only start when the vpn is disabled. It still wouldn't work after I checked all settings.. I couldn't figure out what was going on after a couple of hours of playing around, so I reverted back to running 0.9.6-3-83

Link to comment

I just ran an update to the binhex-rtorrentvpn docker in unRAID 6.2.1 and now my WebUI doesn't come up. I'm also trying to put in VPN settings, but I assume that shouldn't change anything with the WebUI.

 

Edit: Just updated to unRAID 6.3.2. No change.

 

Another edit: Ok, I was wrong. I disabled the VPN settings and now I have WebUI access. So how do I enable VPN while maintaining control of rtorrent?

 

im afraid the unraid diagnostics zip wont include the required log, please can you attach the supervisord.log file located in /config/

Link to comment

I just ran an update to the binhex-rtorrentvpn docker in unRAID 6.2.1 and now my WebUI doesn't come up. I'm also trying to put in VPN settings, but I assume that shouldn't change anything with the WebUI.

 

Edit: Just updated to unRAID 6.3.2. No change.

 

Another edit: Ok, I was wrong. I disabled the VPN settings and now I have WebUI access. So how do I enable VPN while maintaining control of rtorrent?

 

if you want me to take a look at the issue you had on latest then please roll forward and then attach the supervisord.log file. i can assure you this docker works perfectly fine on unraid 6.3.2 (im running it).

 

The same thing happened to me ~3 days ago when I updated the docker.. rtorrent will only start when the vpn is disabled. It still wouldn't work after I checked all settings.. I couldn't figure out what was going on after a couple of hours of playing around, so I reverted back to running 0.9.6-3-83

 

Link to comment
  • binhex locked this topic
Guest
This topic is now closed to further replies.