[Support] binhex - rTorrentVPN


Recommended Posts

10 minutes ago, Spies said:

Would I not see corruption elsewhere?

possibly/possibly not, depends on how bad the memory is.

 

11 minutes ago, Spies said:

I don't know if they may be detrimental to rtorrent in a docker environment?

it might be, i dont use any of those options so i cant say for sure.

Link to comment
just cos its ECC doesn't mean it cant go bad, excellent that you got it running again, but you gotta ask the question, why did the sessions file get corrupted, and bad ram is one of those causes.

ECC can go bad, but it won't corrupt data, if it can correct the error it will and the system works normally, if it can't it halts the system to avoid data corruption, at least that's how it's supposed to work

 

 

  • Like 1
Link to comment

What does this work out to? Is that 6GB that rtorrent is using? Or are the units, bytes?

 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
15868 nobody    20   0 6391876 331620 185344 S  11.6   1.0  41:03.18 rtorrent main

 

Edited by Spies
Link to comment

When I change the default download dir to anything other than /data/incomplete, torrents will not start downloading - in the default folder they start and download fine. The files are created in the new default directory but the download does not start. I tried changing the default in flood, rutorrent, and rtorrent.rc, and the docker mappings. 


Edit (solution):
rtorrent (mmap) does not work with mergerfs w/ direct_io enabled
see: https://github.com/trapexit/mergerfs/issues/463

Edited by nullredvector
Link to comment

217 torrents and everything is queued/not seeding again.

 

Can I get any meaningful logs to get to the bottom of this?

 

Edit: it's the web server which is failing as rtorrent is still running, what web server is it running under and what resources are allocated to it?

 

Edit edit: increased the rpc timeout under rutorrent/config/config.php to 60s from 5s default. I don't think 5s is enough to pull the data for 200 torrents from rtorrent.

Edited by Spies
Link to comment
13 hours ago, Spies said:

Edit edit: increased the rpc timeout under rutorrent/config/config.php to 60s from 5s default. I don't think 5s is enough to pull the data for 200 torrents from rtorrent.

thanks for this, i can include that in the build so it tweaks that specific setting.

Link to comment

I saw a couple of you fancy people asking about a reverse proxy setup (for the searchers: nginx, LetsEncrypt, Organizr, 404, page not found), and only saw one config posted earlier that someone got to work (it didn't for me), so I wanted to throw my $.02 in. This config works for me under a standard Organizr/LetsEncrypt combo setup:

 

in default.conf:

location /rutorrent {
auth_request /auth-1;
include /config/nginx/proxy-confs/rutorrent.conf;
}

in rutorrent.conf:

# RUTORRENT reverse proxy
location /rutorrent/ {
    proxy_pass http://192.168.XXX.XXX:9080;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection keep-alive;
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}

Please note, the closing '/' in the above config file. Without that closing '/' it will not route through properly, even if it prompts for credentials and they are entered correctly, it will nginx 404 error.

 

Anywho, hope it helps somebody!

  • Like 2
Link to comment
4 hours ago, binhex said:

thanks for this, i can include that in the build so it tweaks that specific setting.

Still got issues, as soon as I get anywhere near 200 torrents, even if they're inactive, it takes a massive nosedive, speeds have dropped right off and everything has stalled out.

 

Here is the top command from inside the docker:

 

%Cpu(s):  2.9 us,  2.4 sy,  0.0 ni, 94.2 id,  0.3 wa,  0.0 hi,  0.1 si,  0.0 st
MiB Mem :  32174.8 total,    341.4 free,  17434.0 used,  14399.4 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.  13382.7 avail Mem
 Unknown command - try 'h' for help
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  967 nobody    20   0 6899984 185408  23292 S   1.0   0.6  31:41.85 rtorrent main
    1 root      20   0    2300     60      0 S   0.0   0.0   0:01.57 tini
    9 root      20   0   85976  14048    852 S   0.0   0.0   0:15.24 supervisord
  151 root      20   0    9316   1952   1352 S   0.0   0.0   0:01.50 start.sh
  152 nobody    20   0    9184    508      4 S   0.0   0.0   0:00.03 rutorrent.sh
  155 nobody    20   0    9312   2472   1928 S   0.0   0.0   0:11.42 watchdog.sh
  156 nobody    20   0    9184    480      4 S   0.0   0.0   0:00.03 privoxy.sh
  488 root      20   0   25816   2796   1420 S   0.0   0.0 114:19.02 openvpn
  884 nobody    20   0 3558100   7872   2528 S   0.0   0.0   1:11.25 privoxy
  966 nobody    20   0   12380   2016   1112 S   0.0   0.0   0:04.97 tmux: server
 1006 nobody    20   0   99116   6004    148 S   0.0   0.0   0:01.98 php-fpm
 1008 nobody    20   0   99992  12352   6232 S   0.0   0.0   0:04.97 php-fpm
 1009 nobody    20   0   16244   1268     32 S   0.0   0.0   0:00.02 nginx
 1012 nobody    20   0   17100   3736   1736 S   0.0   0.0   0:04.22 nginx
 1013 nobody    20   0   16696   3196   1528 S   0.0   0.0   0:00.02 nginx
 1014 nobody    20   0   16696   3560   1892 S   0.0   0.0   0:00.00 nginx
 1015 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1016 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1017 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1018 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1019 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1020 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1021 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1022 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1023 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1024 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1025 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1026 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1027 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1028 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1029 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1030 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx
 1031 nobody    20   0   16696   1600      0 S   0.0   0.0   0:00.00 nginx

 

Link to comment
18 hours ago, Spies said:

Here is the top command from inside the docker:

looking at that output is certainly isnt cpu or memory bound, it seems to be doing next to nothing. so a few questions for you:-

 

1. are you using a cache drive, if so is it ssd or spinner?

2. if you are using a cache drive what filesystem are you using btrfs or xfs?

3. do you have your cache drives in a pool configuration?

4. where are you saying incomplete and completed downloads?

Link to comment

I'm struggling to figure this out. On app reboot, I lose some of my default settings.  One of the settings is under Connection > Bandwidth Limiting. I'm wanting to restrict the upload to 15mb. Once I set it, reboot the app its back to the default 1024000.

 

Now the weird thing is some settings stay such as autotools or ratio groups or date format. 

 

Any ideas?

 

 

Link to comment
On 1/6/2019 at 7:09 PM, Turbo123 said:

Hello, I just installed rtorrentvpn and got it all setup. I'm trying to use autodl-irssi however it isn't connecting to ANY irc servers. I've done it on other rtorrent's with no problem. Any ideas on what would be causing this? I use PIA as my vpn and rtorrent is running just fine. No errors on autodl or rtorrent. Just doesn't try to connect to irc servers I set.

 

Thanks for the container and any help!

 

Ok so I've done some troubleshooting if anyone is having the same issue and it seems anytime I turn the VPN on autodl-irssi doesn't turn on and if i turn it off it works just fine... Not sure why but will report back if I fix it.

 

Edit: http://prntscr.com/mawkew is the vpn on and vpn off log.

Edited by Turbo123
Link to comment
8 hours ago, Fiala06 said:

I'm struggling to figure this out. On app reboot, I lose some of my default settings.  One of the settings is under Connection > Bandwidth Limiting. I'm wanting to restrict the upload to 15mb. Once I set it, reboot the app its back to the default 1024000.

 

Now the weird thing is some settings stay such as autotools or ratio groups or date format. 

 

Any ideas?

 

 

go here and scroll down to Q1. under the rtorrent heading:-

 

https://forums.unraid.net/topic/44108-support-binhex-general/?tab=comments#comment-433613

 

  • Upvote 1
Link to comment
On 1/22/2019 at 9:37 AM, binhex said:

looking at that output is certainly isnt cpu or memory bound, it seems to be doing next to nothing. so a few questions for you:-

 

1. are you using a cache drive, if so is it ssd or spinner?

2. if you are using a cache drive what filesystem are you using btrfs or xfs?

3. do you have your cache drives in a pool configuration?

4. where are you saying incomplete and completed downloads?

Downloads are stored on a separate NAS. Appdata is on a single spinner cache drive, the FS of which is xfs.

 

I'm back in the same situation with 177 torrents this time, rutorrent is telling me nothing is running and eventually all the trackers time out, if I then start stopping torrents via the web interface then 'rtorrent main' disappears in TOP and restarts.

 

Is there a syslog that can show me why it's closing?

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

Downloads are stored on a separate NAS

ok so this caught my attention, couple of questions:- 

 

so are you storing incomplete and completed downloads here or just completed?

are you seeding completed downloads via your separate NAS over your LAN?.

Link to comment
1 minute ago, binhex said:

ok so this caught my attention, couple of questions:- 

 

so are you storing incomplete and completed downloads here or just completed?

are you seeding completed downloads via your separate NAS over your LAN?.

Both incomplete and completed, and yes they are being seeded from there. I don't have enough space on the local server to be able to download and seed. The LAN is gigabit and when rtorrent is stalled, there isn't any excessive network activity.

 

I'm trying to screen into the rtorrent process in the dockers cli, but as screen isn't installed, I don't know how to do that.

 

I have set logging up to ./tmp/rtorrent.log so I can tail that but it hasn't helped so far.

Link to comment
5 minutes ago, Spies said:

'm trying to screen into the rtorrent process in the dockers cli, but as screen isn't installed, I don't know how to do that.

i dont use screen, i use tmux, to attach you can do the following:-

 

docker exec -itu nobody <name of container> bash 
tmux list-sessions
tmux attach-session -t rt

 

15 minutes ago, Spies said:

Both incomplete and completed, and yes they are being seeded from there

this does concern me, and although its gigabit its unknown how rtorrent handles remote storage, at the moment thats my suspicion that this is the issue, but as you have low storage on your (new?) server i guess its hard/impossible to say at this point. i can confirm i have seen people running over a 1000 torrents using this image, so i know its possible - just to give you some hope 🙂

Link to comment
17 minutes ago, binhex said:

i dont use screen, i use tmux, to attach you can do the following:-

 


docker exec -itu nobody <name of container> bash 
tmux list-sessions
tmux attach-session -t rt

 

this does concern me, and although its gigabit its unknown how rtorrent handles remote storage, at the moment thats my suspicion that this is the issue, but as you have low storage on your (new?) server i guess its hard/impossible to say at this point. i can confirm i have seen people running over a 1000 torrents using this image, so i know its possible - just to give you some hope 🙂

I was watching the tmux whilst starting loads of torrents via rutorrent webui and it died back to bash with the message [exited].

 

It could well be an issue with network i/o, I need to figure out something so I can make the torrent storage local, maybe another server dedicated as a seedbox.

 

Do you have a watchdog script that deems the process hung if it doesn't respond within a certain time limit?

Edited by Spies
Link to comment

I love the Binhex docker images. They're exactly what I need. Thank you.

 

I've previously had rtorrentvpn working perfectly on a Synology but have recently needed to move it to a Ubuntu Server setup. The problem I'm having is that I'm unable to access them remotely. I understand, from reading Q2 in the FAQ, that it's because tun and iptable_mangle need to be available. I think I've been able to load iptable_mangle by entering the following in Ubuntu Server shell

sudo modprobe iptable_mangle

But I don't know how to load tun. As such the logs look like this...

2019-01-23 23:14:53,085 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

Success! (Presumably). But...

2019-01-23 23:14:52,941 DEBG 'start-script' stderr output:
insmod: ERROR: could not load module /lib/modules/tun.ko: No such file or directory

2019-01-23 23:14:52,943 DEBG 'start-script' stdout output:
[warn] Unable to load tun kernel module, assuming its dynamically loaded

This post from Binhex has proved useful, but I don't understand how to get tun to load and resolve the issue above.

 

Help appreciated!

Link to comment
2 hours ago, DavidAUK said:

The problem I'm having is that I'm unable to access them remotely.

can i assume from this that you are able to access them within your home lan then? if so then tun module is loaded and working, as this is required for the tunnel to be operational, and without the tunnel running you would have no access to the application web ui, can you confirm this is the case?.

Link to comment

Yes. Home LAN works fine. I’m able to load Flood in this docker and Deluge in the DelugeVPN docker from home. The problem is remote access. 

 

I’m also able to log in remotely to the non-VPN containers such as Sonarr, suggesting it’s a VPN thing. 

 

The port is forwarding correctly as best I can see.

Link to comment
2 hours ago, DavidAUK said:

Yes. Home LAN works fine. I’m able to load Flood in this docker and Deluge in the DelugeVPN docker from home. The problem is remote access. 

 

I’m also able to log in remotely to the non-VPN containers such as Sonarr, suggesting it’s a VPN thing. 

 

The port is forwarding correctly as best I can see.

ok in that case i need to see the logs, please follow the procedure in the link below:-

 

https://forums.unraid.net/topic/44108-support-binhex-general/?do=findComment&amp;comment=435831

 

Link to comment
6 hours ago, binhex said:

ok in that case i need to see the logs, please follow the procedure in the link below:-

I appreciate you taking a look.

 

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

2019-01-24 19:25:10.905186 [info] System information Linux 88294efb28ef 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 GNU/Linux
2019-01-24 19:25:11.007628 [info] PUID defined as '1000'
2019-01-24 19:25:11.902932 [info] PGID defined as '1000'
2019-01-24 19:25:12.116582 [info] UMASK defined as '000'
2019-01-24 19:25:12.214016 [info] Permissions already set for volume mappings
2019-01-24 19:25:12.333951 [info] VPN_ENABLED defined as 'yes'
2019-01-24 19:25:12.466408 [info] OpenVPN config file (ovpn extension) is located at /config/openvpn/82.ovpn
dos2unix: converting file /config/openvpn/82.ovpn to Unix format...
2019-01-24 19:25:12.616011 [info] VPN remote line defined as 'remote aus.torguardvpnaccess.com 1912'
2019-01-24 19:25:12.789639 [info] VPN_REMOTE defined as 'aus.torguardvpnaccess.com'
2019-01-24 19:25:12.911753 [info] VPN_PORT defined as '1912'
2019-01-24 19:25:13.017757 [info] VPN_PROTOCOL defined as 'udp'
2019-01-24 19:25:13.128758 [info] VPN_DEVICE_TYPE defined as 'tun0'
2019-01-24 19:25:13.222409 [info] VPN_PROV defined as 'custom'
2019-01-24 19:25:13.337962 [info] LAN_NETWORK defined as '192.168.86.0/24'
2019-01-24 19:25:13.463074 [info] NAME_SERVERS defined as '8.8.8.8'
2019-01-24 19:25:13.565596 [info] VPN_USER defined as 'redacted'
2019-01-24 19:25:13.684136 [info] VPN_PASS defined as 'redacted'
2019-01-24 19:25:13.787501 [info] VPN_OPTIONS not defined (via -e VPN_OPTIONS)
2019-01-24 19:25:13.897537 [info] ENABLE_PRIVOXY defined as 'yes'
2019-01-24 19:25:13.990908 [info] ENABLE_FLOOD defined as 'yes'
2019-01-24 19:25:14.087737 [info] ENABLE_AUTODL_IRSSI defined as 'no'
2019-01-24 19:31:40.263742 [info] Starting Supervisor...
2019-01-24 19:31:41,162 INFO Included extra file "/etc/supervisor/conf.d/rtorrent.conf" during parsing
2019-01-24 19:31:41,162 INFO Set uid to user 0 succeeded
2019-01-24 19:31:41,169 INFO supervisord started with pid 7
2019-01-24 19:31:42,176 INFO spawned: 'start-script' with pid 147
2019-01-24 19:31:42,184 INFO spawned: 'rutorrent-script' with pid 148
2019-01-24 19:31:42,188 INFO spawned: 'flood-script' with pid 149
2019-01-24 19:31:42,192 INFO spawned: 'irssi-script' with pid 150
2019-01-24 19:31:42,212 INFO spawned: 'watchdog-script' with pid 151
2019-01-24 19:31:42,256 INFO spawned: 'privoxy-script' with pid 152
2019-01-24 19:31:42,260 INFO reaped unknown pid 8
2019-01-24 19:31:42,262 DEBG 'start-script' stdout output:
[info] VPN is enabled, beginning configuration of VPN

2019-01-24 19:31:42,264 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-24 19:31:42,265 INFO success: rutorrent-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-24 19:31:42,265 INFO success: flood-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-24 19:31:42,266 INFO success: irssi-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-24 19:31:42,267 INFO success: watchdog-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-24 19:31:42,267 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-01-24 19:31:42,272 DEBG fd 26 closed, stopped monitoring <POutputDispatcher at 140550398030624 for <Subprocess at 140550397704312 with name irssi-script in state RUNNING> (stderr)>
2019-01-24 19:31:42,280 DEBG 'irssi-script' stdout output:
[info] Autodl-irssi not enabled, skipping startup

2019-01-24 19:31:42,280 INFO exited: irssi-script (exit status 0; expected)
2019-01-24 19:31:42,281 DEBG received SIGCLD indicating a child quit
2019-01-24 19:31:42,306 DEBG 'flood-script' stdout output:
[info] Flood enabled

2019-01-24 19:31:42,307 DEBG 'flood-script' stdout output:
[info] Waiting for rTorrent process to start listening on port 5000...

2019-01-24 19:31:42,310 DEBG 'rutorrent-script' stdout output:
[info] Flood enabled, preventing ruTorrent Web UI from starting...

2019-01-24 19:31:42,311 DEBG fd 16 closed, stopped monitoring <POutputDispatcher at 140550397705824 for <Subprocess at 140550397704600 with name rutorrent-script in state RUNNING> (stderr)>
2019-01-24 19:31:42,311 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 140550397705536 for <Subprocess at 140550397704600 with name rutorrent-script in state RUNNING> (stdout)>
2019-01-24 19:31:42,312 INFO exited: rutorrent-script (exit status 0; expected)
2019-01-24 19:31:42,313 DEBG received SIGCLD indicating a child quit
2019-01-24 19:31:42,314 DEBG 'watchdog-script' stdout output:
[info] rTorrent config file already exists, skipping copy

2019-01-24 19:31:42,324 DEBG 'start-script' stdout output:
[warn] Username contains characters which could cause authentication issues, please consider changing this if possible

2019-01-24 19:31:42,384 DEBG 'watchdog-script' stderr output:
dos2unix: 
2019-01-24 19:31:42,385 DEBG 'watchdog-script' stderr output:
converting file /config/rtorrent/config/rtorrent.rc to Unix format...

2019-01-24 19:31:42,442 DEBG 'start-script' stdout output:
[info] Default route for container is 172.20.0.1

2019-01-24 19:31:42,451 DEBG 'start-script' stdout output:
[info] Adding 8.8.8.8 to /etc/resolv.conf

2019-01-24 19:31:42,565 DEBG 'start-script' stdout output:
[info] Attempting to load tun kernel module...

2019-01-24 19:31:42,568 DEBG 'start-script' stderr output:
modprobe: FATAL: Module tun not found in directory /lib/modules/4.15.0-43-generic

2019-01-24 19:31:42,569 DEBG 'start-script' stdout output:
[warn] Unable to load tun kernel module using modprobe, trying insmod...

2019-01-24 19:31:42,572 DEBG 'start-script' stderr output:
insmod: ERROR: could not load module /lib/modules/tun.ko: No such file or directory

2019-01-24 19:31:42,578 DEBG 'start-script' stdout output:
[warn] Unable to load tun kernel module, assuming its dynamically loaded

2019-01-24 19:31:42,672 DEBG 'start-script' stdout output:
[info] Docker network defined as    172.20.0.0/16

2019-01-24 19:31:42,685 DEBG 'start-script' stdout output:
[info] Adding 192.168.86.0/24 as route via docker eth0

2019-01-24 19:31:42,689 DEBG 'start-script' stdout output:
[info] ip route defined as follows...
--------------------

2019-01-24 19:31:42,693 DEBG 'start-script' stdout output:
default via 172.20.0.1 dev eth0 

2019-01-24 19:31:42,694 DEBG 'start-script' stdout output:
172.20.0.0/16 dev eth0 proto kernel scope link src 172.20.0.2 

2019-01-24 19:31:42,695 DEBG 'start-script' stdout output:
192.168.86.0/24 via 172.20.0.1 dev eth0 

2019-01-24 19:31:42,697 DEBG 'start-script' stdout output:
--------------------

2019-01-24 19:31:42,713 DEBG 'start-script' stdout output:
iptable_mangle         16384  1
ip_tables              28672  3 iptable_filter,iptable_nat,iptable_mangle
x_tables               40960  9 xt_conntrack,iptable_filter,xt_tcpudp,ipt_MASQUERADE,xt_addrtype,xt_nat,ip_tables,iptable_mangle,xt_mark

2019-01-24 19:31:42,715 DEBG 'start-script' stdout output:
[info] iptable_mangle support detected, adding fwmark for tables

2019-01-24 19:31:42,992 DEBG 'start-script' stdout output:
[info] iptables defined as follows...
--------------------

2019-01-24 19:31:42,996 DEBG 'start-script' stdout output:
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT DROP
-A INPUT -i tun0 -j ACCEPT
-A INPUT -s 172.20.0.0/16 -d 172.20.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 9080 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 9080 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 9443 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 9443 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 3000 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --sport 3000 -j ACCEPT
-A INPUT -s 192.168.86.0/24 -i eth0 -p tcp -m tcp --dport 5000 -j ACCEPT
-A INPUT -s 192.168.86.0/24 -d 172.20.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.20.0.0/16 -d 172.20.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 9080 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 9080 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 9443 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 9443 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --dport 3000 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m tcp --sport 3000 -j ACCEPT
-A OUTPUT -d 192.168.86.0/24 -o eth0 -p tcp -m tcp --sport 5000 -j ACCEPT
-A OUTPUT -s 172.20.0.0/16 -d 192.168.86.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

2019-01-24 19:31:43,000 DEBG 'start-script' stdout output:
--------------------
[info] Starting OpenVPN...

2019-01-24 19:31:43,051 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:43 2019 WARNING: file 'credentials.conf' is group or others accessible

2019-01-24 19:31:43,053 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:43 2019 OpenVPN 2.4.6 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 24 2018
Thu Jan 24 19:31:43 2019 library versions: OpenSSL 1.1.1a  20 Nov 2018, LZO 2.10

2019-01-24 19:31:43,056 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:43 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
[info] OpenVPN started

2019-01-24 19:31:43,060 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:43 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]37.120.155.10:1912
Thu Jan 24 19:31:43 2019 UDP link local: (not bound)
Thu Jan 24 19:31:43 2019 UDP link remote: [AF_INET]37.120.155.10:1912

2019-01-24 19:31:44,845 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:44 2019 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1602', remote='link-mtu 1569'
Thu Jan 24 19:31:44 2019 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
Thu Jan 24 19:31:44 2019 WARNING: 'comp-lzo' is present in local config but missing in remote config, local='comp-lzo'

2019-01-24 19:31:44,846 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:44 2019 [TG-OVPN-CA] Peer Connection Initiated with [AF_INET]37.120.155.10:1912

2019-01-24 19:31:46,007 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:46 2019 TUN/TAP device tun0 opened

2019-01-24 19:31:46,010 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:46 2019 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Thu Jan 24 19:31:46 2019 /usr/bin/ip link set dev tun0 up mtu 1500

2019-01-24 19:31:46,030 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:46 2019 /usr/bin/ip addr add dev tun0 local 10.35.0.26 peer 10.35.0.25

2019-01-24 19:31:46,036 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:46 2019 /root/openvpnup.sh tun0 1500 1605 10.35.0.26 10.35.0.25 init

2019-01-24 19:31:46,111 DEBG 'start-script' stdout output:
Thu Jan 24 19:31:46 2019 Initialization Sequence Completed

2019-01-24 19:31:46,146 DEBG 'watchdog-script' stdout output:
[info] rTorrent listening interface IP 0.0.0.0 and VPN provider IP 10.35.0.26 different, marking for reconfigure

2019-01-24 19:31:46,151 DEBG 'privoxy-script' stdout output:
[info] Configuring Privoxy...

2019-01-24 19:31:46,163 DEBG 'watchdog-script' stdout output:
[info] rTorrent not running

2019-01-24 19:31:46,193 DEBG 'privoxy-script' stdout output:
[info] All checks complete, starting Privoxy...

2019-01-24 19:31:46,199 DEBG 'privoxy-script' stderr output:
2019-01-24 19:31:46.198 7f66c1f96100 Info: Privoxy version 3.0.26
2019-01-24 19:31:46.198 7f66c1f96100 Info: Program name: /usr/bin/privoxy

2019-01-24 19:31:46,556 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 37.120.155.10

2019-01-24 19:31:46,578 DEBG 'watchdog-script' stdout output:
[info] Removing any rTorrent session lock files left over from the previous run...

2019-01-24 19:31:46,582 DEBG 'watchdog-script' stdout output:
[info] Attempting to start rTorrent...

2019-01-24 19:31:46,586 DEBG 'watchdog-script' stdout output:
Script started, file is /home/nobody/typescript

2019-01-24 19:31:46,635 DEBG 'watchdog-script' stdout output:
Script done, file is /home/nobody/typescript

2019-01-24 19:31:48,628 DEBG 'flood-script' stdout output:
[info] Configuring Flood...

2019-01-24 19:31:48,629 DEBG 'flood-script' stdout output:
[info] Copying Flood config file /config/flood/config/config.js back to container...

2019-01-24 19:31:48,636 DEBG 'flood-script' stdout output:
[info] Starting Flood...

2019-01-24 19:31:49,718 DEBG 'watchdog-script' stdout output:
[info] rTorrent process started
[info] Waiting for rTorrent process to start listening on port 5000...

2019-01-24 19:31:49,747 DEBG 'watchdog-script' stdout output:
[info] rTorrent process listening

2019-01-24 19:31:49,760 DEBG 'watchdog-script' stdout output:
[info] Autodl-irssi not enabled, skipping startup
[info] Flood enabled, disabling initialisation of ruTorrent plugins...

2019-01-24 19:31:50,115 DEBG fd 17 closed, stopped monitoring <POutputDispatcher at 140550397706112 for <Subprocess at 140550397704168 with name flood-script in state RUNNING> (stdout)>
2019-01-24 19:31:50,115 DEBG fd 21 closed, stopped monitoring <POutputDispatcher at 140550398030048 for <Subprocess at 140550397704168 with name flood-script in state RUNNING> (stderr)>
2019-01-24 19:31:50,115 INFO exited: flood-script (exit status 0; expected)
2019-01-24 19:31:50,115 DEBG received SIGCLD indicating a child quit


 

Link to comment
14 hours ago, DavidAUK said:

I appreciate you taking a look.

ok so that wasnt exactly the log output i was expecting (i think you dont have debug turned on as per the instructions i linked to) but never mind, if the ui is starting ok, and you have confirmed you can access it internally then i doubt i will see much in the log that shows anything out of place. 

 

so i think this has got to be something on your lan or host that is causing this, more questions for you:-

 

1. do you use vlan's on your home network? - if so then check that the vlan assigned to the host allows inbound and outbound external access and the routing is correct.

2. is a firewall running on your host? - check to see if anything is blocking outbound on the host, if you are running all the containers on the same host and you have external access to them, then this wont be the issue.

3. does 192.168.86.0/24 cover all networks on your lan? - if it doesn't then you will need to add in any additional networks you have defined, what is your router's ip address?

4. port forwarding - can you post a screenshot showing how you have defined the port forward for this container?, it should be port forward to internal ip 192.168.86.xxx where xxx is your hosts ip, and port <host port you have chosen for flood, normally 3000>

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