全球主机交流论坛

标题: qbitorrent 的docker版本是不是连不上了现在? [打印本页]

作者: log    时间: 2023-6-7 07:30
标题: qbitorrent 的docker版本是不是连不上了现在?
安装完docker版本的qb后, web根本无法打开

但是vps里docker ps还显示正在运行 这是怎么回事


作者: aru    时间: 2023-6-7 07:45
你没将web端口映射吧
作者: WZ-Software    时间: 2023-6-7 07:50
端口得映射一下哇
作者: 28661    时间: 2023-6-7 08:02
是linuxserver/qbittorrent这个镜像么,我前段时间用过一次也是开了端口也无法访问。
需要手动改config配置文件,你网上搜一下吧
作者: log    时间: 2023-6-7 08:23
28661 发表于 2023-6-7 08:02
是linuxserver/qbittorrent这个镜像么,我前段时间用过一次也是开了端口也无法访问。
需要手动改config配置 ...

对的就是这个

以前跑的qb 现在web也打不开了 但是种子一直在seed
作者: log    时间: 2023-6-7 08:26
28661 发表于 2023-6-7 08:02
是linuxserver/qbittorrent这个镜像么,我前段时间用过一次也是开了端口也无法访问。
需要手动改config配置 ...

给个地址把 或者搜什么关键词?
作者: log    时间: 2023-6-7 08:27
aru 发表于 2023-6-7 07:45
你没将web端口映射吧



映射到8080的
作者: aru    时间: 2023-6-7 08:37
log 发表于 2023-6-7 08:27


映射到8080的

qb的web端口配置改过没?
docker 命令发一下
作者: 28661    时间: 2023-6-7 08:48
log 发表于 2023-6-7 08:26
给个地址把 或者搜什么关键词?

我记得改的webui的部分,好像是WebUI\HostHeaderValidation=false。不太记得了,你对比一下吧

  1. WebUI\Address=*
  2. WebUI\AlternativeUIEnabled=false
  3. WebUI\AuthSubnetWhitelist=@Invalid()
  4. WebUI\AuthSubnetWhitelistEnabled=false
  5. WebUI\BanDuration=3600
  6. WebUI\CSRFProtection=true
  7. WebUI\ClickjackingProtection=true
  8. WebUI\CustomHTTPHeaders=
  9. WebUI\CustomHTTPHeadersEnabled=false
  10. WebUI\HTTPS\CertificatePath=
  11. WebUI\HTTPS\Enabled=false
  12. WebUI\HTTPS\KeyPath=
  13. WebUI\HostHeaderValidation=false
  14. WebUI\LocalHostAuth=true
  15. WebUI\MaxAuthenticationFailCount=5
复制代码

作者: suaxi    时间: 2023-6-7 08:58
https://hub.docker.com/r/linuxserver/qbittorrent

docker run 或者 docker compose 都没问题
作者: log    时间: 2023-6-7 09:06
suaxi 发表于 2023-6-7 08:58
https://hub.docker.com/r/linuxserver/qbittorrent

docker run 或者 docker compose 都没问题

我运行的是这个命令 就是打不开webgui

docker run --name qb -p 8080:8080 -p 50888:50888 -p 50888:50888/udp -v /download:/downloads -d --restart unless-stopped linuxserver/qbittorrent:latest


作者: log    时间: 2023-6-7 09:07
aru 发表于 2023-6-7 08:37
qb的web端口配置改过没?
docker 命令发一下

docker run --name qb -p 8080:8080 -p 50888:50888 -p 50888:50888/udp -v /download:/downloads -d --restart unless-stopped linuxserver/qbittorrent:latest

作者: log    时间: 2023-6-7 09:12
28661 发表于 2023-6-7 08:48
我记得改的webui的部分,好像是WebUI\HostHeaderValidation=false。不太记得了,你对比一下吧

...

要改的文件名是什么

路径在哪
作者: aru    时间: 2023-6-7 09:13
log 发表于 2023-6-7 09:07
docker run --name qb -p 8080:8080 -p 50888:50888 -p 50888:50888/udp -v /download:/downloads -d --r ...

命令没问题的,我验证过了
怀疑是你的主机防火墙问题
在主机上运行
curl localhost:8080
如果能看到输出,那就是主机防火墙没打开8080端口,
如果是云主机,可能是云主机控制台的防火墙没开8080端口
作者: log    时间: 2023-6-7 09:32
aru 发表于 2023-6-7 09:13
命令没问题的,我验证过了
怀疑是你的主机防火墙问题
在主机上运行

有输出

我用这个命令  nc -zv vps的ip 8080

然后显示

nc: connect to xxx.xxx.xxx.xxx port 8080 (tcp) failed: No route to host
作者: aru    时间: 2023-6-7 09:46
log 发表于 2023-6-7 09:32
有输出

我用这个命令  nc -zv vps的ip 8080

就是防火墙原因了
机器的防火墙或者云主机的防火墙
大厂的几乎都是默认封了大部分端口的

作者: log    时间: 2023-6-7 11:55
aru 发表于 2023-6-7 09:46
就是防火墙原因了
机器的防火墙或者云主机的防火墙
大厂的几乎都是默认封了大部分端口的

甲骨文的 早就在面板里把ipv4 6的所有端口都放行了
作者: aru    时间: 2023-6-7 11:58
log 发表于 2023-6-7 11:55
甲骨文的 早就在面板里把ipv4 6的所有端口都放行了

那就是本机的iptables 防火墙咯
自己看下如何放行吧

作者: log    时间: 2023-6-13 11:13
aru 发表于 2023-6-7 11:58
那就是本机的iptables 防火墙咯
自己看下如何放行吧

好神奇 用iptable 放行了8080 还是无法打开web 界面

运行的下面的命令

sudo iptables -L
If there are no existing rules specifically blocking port 8080, proceed to the next step. Otherwise, you may need to remove or modify the existing rules that are blocking the port.

Add a new rule to allow incoming connections on port 8080 by running the following command:

css
Copy code
sudo iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
This command appends a rule to the INPUT chain, allowing TCP traffic on port 8080.

Save the iptables rules so that they persist across reboots by running the command:

javascript
Copy code
sudo iptables-save > /etc/iptables/rules.v4
This command saves the current iptables rules to the specified file.

Optionally, you can also allow the port in the ufw firewall if it's enabled. Run the command:

yaml
Copy code
sudo ufw allow 8080
作者: 宋喆    时间: 2023-6-13 12:30
刚试,可以,没什么速度




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4