hey hello,
i have been using delugevpn for a few years now with good results..
even though i have a strange issue with my nas.. which is not deluge or docker related, i have shince shortly bumped into another strange issue. Even though delugevpn seems to be running fine, can't seem to contact the web UI anymore..
my nas (asustor 6114T, running ADM 4.0.5.RT42, with docker-ce, portainer 2.13.1) is at lan ip : 192.168.178.45
so i contact portainer via 192.168.178.45:19943 succesfully.
when i try to contact delugevpn via 192.168.178.45:8112 it times out. , also tried port 8118, but ofcourse this doen't work either.. as it shouldn't.
i did resently convert my dual router setup to a mono router setup, this mono router is provider supplied, so i am less familiar with it then my own. i did this to solve the nas issue.
my stack under portainer is:
version: "2.1"
services:
arch-delugevpn:
image: binhex/arch-delugevpn:latest
container_name: DelugeVPN
cap_add:
- NET_ADMIN
environment:
- VPN_ENABLED=yes
- VPN_USER=LPRyc2GmAjUbxtuGTht.....
- VPN_PASS=FxydMbghENSQT5UneQR.....
- VPN_PROV=custom
- VPN_CLIENT=openvpn
- STRICT_PORT_FORWARD=yes
- ENABLE_PRIVOXY=yes
- LAN_NETWORK=192.168.1.0/24
- NAME_SERVERS=209.222.18.222,84.200.69.80,37.235.1.174,1.1.1.1,209.222.18.218,37.235.1.177,84.200.70.40,1.0.0.1
- DELUGE_DAEMON_LOG_LEVEL=info
- DELUGE_WEB_LOG_LEVEL=info
- ADDITIONAL_PORTS=1234
- DEBUG=false
- PUID=111
- PGID=321
- UMASK=022
volumes:
- /volume1/Docker/DelugeVPN/Config:/config
- /volume2/Files2/Downloads:/files/downloads
- /etc/localtime:/etc/localtime:ro
ports:
- 8112:8112
- 8118:8118
- 58846:58846
- 58946:58946
restart: always
logs:
2022-05-29 18:01:34 Socket Buffers: R=[131072->425984] S=[87040->425984]
2022-05-29 18:01:34 OPTIONS IMPORT: --ifconfig/up options modified
2022-05-29 18:01:34 OPTIONS IMPORT: route options modified
2022-05-29 18:01:34 OPTIONS IMPORT: route-related options modified
2022-05-29 18:01:34 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
2022-05-29 18:01:34 OPTIONS IMPORT: peer-id set
2022-05-29 18:01:34 OPTIONS IMPORT: adjusting link_mtu to 1658
2022-05-29 18:01:34 OPTIONS IMPORT: data channel crypto options modified
2022-05-29 18:01:34 Data Channel: using negotiated cipher 'AES-256-GCM'
2022-05-29 18:01:34 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2022-05-29 18:01:34 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2022-05-29 18:01:34 net_route_v4_best_gw query: dst 0.0.0.0
2022-05-29 18:01:34 net_route_v4_best_gw result: via 172.19.0.1 dev eth0
2022-05-29 18:01:34,878 DEBG 'start-script' stdout output:
2022-05-29 18:01:34 ROUTE_GATEWAY 172.19.0.1/255.255.0.0 IFACE=eth0 HWADDR=02:42:ac:13:00:02
2022-05-29 18:01:34,878 DEBG 'start-script' stdout output:
2022-05-29 18:01:34 TUN/TAP device tun0 opened
2022-05-29 18:01:34,878 DEBG 'start-script' stdout output:
2022-05-29 18:01:34 net_iface_mtu_set: mtu 1500 for tun0
2022-05-29 18:01:34 net_iface_up: set tun0 up
2022-05-29 18:01:34 net_addr_v4_add: 10.7.7.14/24 dev tun0
2022-05-29 18:01:34,878 DEBG 'start-script' stdout output:
2022-05-29 18:01:34 /root/openvpnup.sh tun0 1500 1586 10.7.7.14 255.255.255.0 init
2022-05-29 18:01:34,882 DEBG 'start-script' stdout output:
2022-05-29 18:01:34 net_route_v4_add: 194.110.115.85/32 via 172.19.0.1 dev [NULL] table 0 metric -1
2022-05-29 18:01:34 net_route_v4_add: 0.0.0.0/1 via 10.7.7.1 dev [NULL] table 0 metric -1
2022-05-29 18:01:34 net_route_v4_add: 128.0.0.0/1 via 10.7.7.1 dev [NULL] table 0 metric -1
2022-05-29 18:01:34 Initialization Sequence Completed
2022-05-29 18:02:06,223 DEBG 'start-script' stdout output:
[info] Attempting to get external IP using 'http://checkip.amazonaws.com'...
2022-05-29 18:02:12,901 DEBG 'start-script' stdout output:
[info] Successfully retrieved external IP address 194.110.115.86
2022-05-29 18:02:12,903 DEBG 'start-script' stdout output:
[info] Application does not require port forwarding or VPN provider is != pia, skipping incoming port assignment
2022-05-29 18:02:12,979 DEBG 'watchdog-script' stdout output:
[info] Deluge listening interface IP 0.0.0.0 and VPN provider IP 10.7.7.14 different, marking for reconfigure
2022-05-29 18:02:12,985 DEBG 'watchdog-script' stdout output:
[info] Deluge not running
2022-05-29 18:02:12,992 DEBG 'watchdog-script' stdout output:
[info] Deluge Web UI not running
2022-05-29 18:02:12,999 DEBG 'watchdog-script' stdout output:
[info] Privoxy not running
2022-05-29 18:02:12,999 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Deluge...
[info] Removing deluge pid file (if it exists)...
2022-05-29 18:02:13,281 DEBG 'watchdog-script' stdout output:
[info] Deluge key 'listen_interface' currently has a value of '10.7.7.14'
[info] Deluge key 'listen_interface' will have a new value '10.7.7.14'
[info] Writing changes to Deluge config file '/config/core.conf'...
2022-05-29 18:02:13,592 DEBG 'watchdog-script' stdout output:
[info] Deluge key 'outgoing_interface' currently has a value of 'tun0'
[info] Deluge key 'outgoing_interface' will have a new value 'tun0'
[info] Writing changes to Deluge config file '/config/core.conf'...
2022-05-29 18:02:13,916 DEBG 'watchdog-script' stdout output:
[info] Deluge key 'default_daemon' currently has a value of '136bb0e8b9534e178fa5deda01456c5b'
[info] Deluge key 'default_daemon' will have a new value '136bb0e8b9534e178fa5deda01456c5b'
[info] Writing changes to Deluge config file '/config/web.conf'...
2022-05-29 18:02:14,607 DEBG 'watchdog-script' stdout output:
[info] Deluge process started
[info] Waiting for Deluge process to start listening on port 58846...
2022-05-29 18:02:14,943 DEBG 'watchdog-script' stdout output:
[info] Deluge process listening on port 58846
2022-05-29 18:02:19,574 DEBG 'watchdog-script' stdout output:
[info] No torrents with state 'Error' found
2022-05-29 18:02:19,574 DEBG 'watchdog-script' stdout output:
[info] Starting Deluge Web UI...
2022-05-29 18:02:19,574 DEBG 'watchdog-script' stdout output:
[info] Deluge Web UI started
2022-05-29 18:02:19,576 DEBG 'watchdog-script' stdout output:
[info] Attempting to start Privoxy...
2022-05-29 18:02:20,592 DEBG 'watchdog-script' stdout output:
[info] Privoxy process started
[info] Waiting for Privoxy process to start listening on port 8118...
2022-05-29 18:02:20,596 DEBG 'watchdog-script' stdout output:
[info] Privoxy process listening on port 8118
so all seems to be fine there...
inspect:
{ "AppArmorProfile": "", "Args": [ "-g", "--", "/bin/bash", "/usr/local/bin/init.sh" ], "Config": { "AttachStderr": false, "AttachStdin": false, "AttachStdout": false, "Cmd": [ "/bin/bash", "/usr/local/bin/init.sh" ], "Domainname": "", "Entrypoint": [ "/usr/bin/tini", "-g", "--" ], "Env": [ "VPN_ENABLED=yes", "VPN_USER=LPRyc2GmAjUbxtuGTht.....", "VPN_PASS=FxydMbghENSQT5UneQR.....", "VPN_PROV=custom", "VPN_CLIENT=openvpn", "STRICT_PORT_FORWARD=yes", "ENABLE_PRIVOXY=yes", "LAN_NETWORK=192.168.1.0/24", "NAME_SERVERS=209.222.18.222,84.200.69.80,37.235.1.174,1.1.1.1,209.222.18.218,37.235.1.177,84.200.70.40,1.0.0.1", "DELUGE_DAEMON_LOG_LEVEL=info", "DELUGE_WEB_LOG_LEVEL=info", "ADDITIONAL_PORTS=1234", "DEBUG=false", "PUID=111", "PGID=321", "UMASK=022", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "HOME=/home/nobody", "TERM=xterm", "LANG=en_GB.UTF-8" ], "ExposedPorts": { "58846/tcp": {}, "58946/tcp": {}, "58946/udp": {}, "8112/tcp": {}, "8118/tcp": {} }, "Hostname": "9390dd6813cc", "Image": "binhex/arch-delugevpn:latest", "Labels": { "com.docker.compose.config-hash": "9eef52e8498fac0504f35fb668e4e2331d120d573e1b335af3ab04a9c98c884a", "com.docker.compose.container-number": "1", "com.docker.compose.oneoff": "False", "com.docker.compose.project": "delugevpn", "com.docker.compose.project.config_files": "/data/compose/1/docker-compose.yml", "com.docker.compose.project.working_dir": "/data/compose/1", "com.docker.compose.service": "arch-delugevpn", "com.docker.compose.version": "1.27.4", "org.opencontainers.image.authors": "= binhex", "org.opencontainers.image.source": "= https://github.com/binhex/arch-delugevpn" }, "OnBuild": null, "OpenStdin": false, "StdinOnce": false, "Tty": false, "User": "", "Volumes": { "/config": {}, "/etc/localtime": {}, "/files/downloads": {} }, "WorkingDir": "" }, "Created": "2022-05-29T14:53:50.860723031Z", "Driver": "btrfs", "ExecIDs": null, "GraphDriver": { "Data": null, "Name": "btrfs" }, "HostConfig": { "AutoRemove": false, "Binds": [ "/etc/localtime:/etc/localtime:ro", "/volume1/Docker/DelugeVPN/Config:/config:rw", "/volume2/Files2/Downloads:/files/downloads:rw" ], "BlkioDeviceReadBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceWriteIOps": null, "BlkioWeight": 0, "BlkioWeightDevice": null, "CapAdd": [ "NET_ADMIN" ], "CapDrop": null, "Cgroup": "", "CgroupParent": "", "CgroupnsMode": "host", "ConsoleSize": [ 0, 0 ], "ContainerIDFile": "", "CpuCount": 0, "CpuPercent": 0, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpuShares": 0, "CpusetCpus": "", "CpusetMems": "", "DeviceCgroupRules": null, "DeviceRequests": null, "Devices": null, "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": null, "GroupAdd": null, "IOMaximumBandwidth": 0, "IOMaximumIOps": 0, "IpcMode": "private", "Isolation": "", "KernelMemory": 0, "KernelMemoryTCP": 0, "Links": null, "LogConfig": { "Config": {}, "Type": "json-file" }, "MaskedPaths": [ "/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware" ], "Memory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "NanoCpus": 0, "NetworkMode": "delugevpn_default", "OomKillDisable": false, "OomScoreAdj": 0, "PidMode": "", "PidsLimit": null, "PortBindings": { "58846/tcp": [ { "HostIp": "", "HostPort": "58846" } ], "58946/tcp": [ { "HostIp": "", "HostPort": "58946" } ], "8112/tcp": [ { "HostIp": "", "HostPort": "8112" } ], "8118/tcp": [ { "HostIp": "", "HostPort": "8118" } ] }, "Privileged": false, "PublishAllPorts": false, "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ], "ReadonlyRootfs": false, "RestartPolicy": { "MaximumRetryCount": 0, "Name": "always" }, "Runtime": "runc", "SecurityOpt": null, "ShmSize": 67108864, "UTSMode": "", "Ulimits": null, "UsernsMode": "", "VolumeDriver": "", "VolumesFrom": [] }, "HostnamePath": "/volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/9390dd6813cc70d3de0c6971dcc18c98ea125dba7976a91d48936eb24825a1ec/hostname", "HostsPath": "/volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/9390dd6813cc70d3de0c6971dcc18c98ea125dba7976a91d48936eb24825a1ec/hosts", "Id": "9390dd6813cc70d3de0c6971dcc18c98ea125dba7976a91d48936eb24825a1ec", "Image": "sha256:33f5d4f3dc4917804fe6db408b6ad969915d6d79841457492b9e77f350bf075d", "LogPath": "/volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/9390dd6813cc70d3de0c6971dcc18c98ea125dba7976a91d48936eb24825a1ec/9390dd6813cc70d3de0c6971dcc18c98ea125dba7976a91d48936eb24825a1ec-json.log", "MountLabel": "", "Mounts": [ { "Destination": "/etc/localtime", "Mode": "ro", "Propagation": "rprivate", "RW": false, "Source": "/etc/localtime", "Type": "bind" }, { "Destination": "/config", "Mode": "rw", "Propagation": "rprivate", "RW": true, "Source": "/volume1/Docker/DelugeVPN/Config", "Type": "bind" }, { "Destination": "/files/downloads", "Mode": "rw", "Propagation": "rprivate", "RW": true, "Source": "/volume2/Files2/Downloads", "Type": "bind" } ], "Name": "/DelugeVPN", "NetworkSettings": { "Bridge": "", "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "HairpinMode": false, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "MacAddress": "", "Networks": { "delugevpn_default": { "Aliases": [ "9390dd6813cc", "arch-delugevpn" ], "DriverOpts": null, "EndpointID": "9937875026ac9ceb2a776dbe1a4b471280bc14b7895b0c2a3744ad77be526a4c", "Gateway": "172.19.0.1", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAMConfig": null, "IPAddress": "172.19.0.2", "IPPrefixLen": 16, "IPv6Gateway": "", "Links": null, "MacAddress": "02:42:ac:13:00:02", "NetworkID": "e2729335d81558d586acd6b5942a1a7b07c0cff7d47d8f887277bbc4a8d7bcf9" } }, "Ports": { "58846/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "58846" }, { "HostIp": "::", "HostPort": "58846" } ], "58946/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "58946" }, { "HostIp": "::", "HostPort": "58946" } ], "58946/udp": null, "8112/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "8112" }, { "HostIp": "::", "HostPort": "8112" } ], "8118/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "8118" }, { "HostIp": "::", "HostPort": "8118" } ] }, "SandboxID": "f388afc650832850f696df998f8905fe6d7bcace90a64ae91a6305d4f2b2a8ab", "SandboxKey": "/var/run/docker/netns/f388afc65083", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null }, "Path": "/usr/bin/tini", "Platform": "linux", "Portainer": { "ResourceControl": { "Id": 1, "ResourceId": "2_delugevpn", "SubResourceIds": [], "Type": 6, "UserAccesses": [], "TeamAccesses": [], "Public": false, "AdministratorsOnly": true, "System": false } }, "ProcessLabel": "", "ResolvConfPath": "/volume1/.@plugins/AppCentral/docker-ce/docker_lib/containers/9390dd6813cc70d3de0c6971dcc18c98ea125dba7976a91d48936eb24825a1ec/resolv.conf", "RestartCount": 0, "State": { "Dead": false, "Error": "", "ExitCode": 0, "FinishedAt": "2022-05-29T16:01:21.283842661Z", "OOMKilled": false, "Paused": false, "Pid": 26386, "Restarting": false, "Running": true, "StartedAt": "2022-05-29T16:01:29.114885459Z", "Status": "running" } }
and checked resolve.conf:
nameserver 209.222.18.222
nameserver 84.200.69.80
nameserver 37.235.1.174
nameserver 1.1.1.1
nameserver 209.222.18.218
nameserver 37.235.1.177
nameserver 84.200.70.40
nameserver 1.0.0.1
I can contact to console without any issue.
and as said. i can connect to any other running container without issue.
amongst which radarr, which recognizes delugevpn as deluge and running (it gives errors if it doesn't)
sorry for the long post..