MarkusMcNugen / docker-qBittorrentvpn

Docker container which runs a headless qBittorrent client with WebUI and optional OpenVPN
https://hub.docker.com/r/markusmcnugen/qbittorrentvpn/
GNU General Public License v3.0
171 stars 92 forks source link

401 error on every port but 8080 #26

Open michecode opened 5 years ago

michecode commented 5 years ago

I was able to set up the docker and I am able to use the WebUI and login page on port 8080. But I am trying to have multiple services running so I am using Traefik on port 8080 so I push this service to 8081 (have also tried 8580 and 8085) and suddenly it doesnt work.

curl localhost:8081 gives nothing in return wget localhost:8081 gives - Resolving localhost (localhost). . . ::1, 127.0.0.1 Connecting to localhost (localhost)|::1|:8081 . . . connected. HTTP request sent, awaiting response . . . 401 Unauthorized

Username/Password Authentication Failed.

michecode commented 5 years ago

hey i fixed the problem. the documentation on github and dockerhub is actually wrong. the environment variable WEBUI_PORT_ENV should be WEBUI_PORT as seen in the iptables.sh code

Wingysam commented 5 years ago

This should still be open as the issue is not fixed.

Waldorf3 commented 2 years ago

This should still be open as the issue is not fixed.

root@aead90d93670:/# grep WEBUI etc/qbittorrent/iptables.sh
echo "[info] WebUI port defined as ${WEBUI_PORT}" | ts '%Y-%m-%d %H:%M:%.S'
        if [ -z "${WEBUI_PORT}" ]; then
                echo "${WEBUI_PORT}     webui" >> /etc/iproute2/rt_tables
if [ -z "${WEBUI_PORT}" ]; then
        iptables -A INPUT -i eth0 -p tcp --dport ${WEBUI_PORT} -j ACCEPT
        iptables -A INPUT -i eth0 -p tcp --sport ${WEBUI_PORT} -j ACCEPT
        if [ -z "${WEBUI_PORT}" ]; then
                iptables -t mangle -A OUTPUT -p tcp --dport ${WEBUI_PORT} -j MARK --set-mark 1
                iptables -t mangle -A OUTPUT -p tcp --sport ${WEBUI_PORT} -j MARK --set-mark 1
if [ -z "${WEBUI_PORT}" ]; then
        iptables -A OUTPUT -o eth0 -p tcp --dport ${WEBUI_PORT} -j ACCEPT
        iptables -A OUTPUT -o eth0 -p tcp --sport ${WEBUI_PORT} -j ACCEPT

And still not fixed 3 years later now 2022. Abandonware :/

type0dev commented 1 year ago

4 years later and still a issue.