全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
12
返回列表 发新帖
楼主: log
打印 上一主题 下一主题

qbitorrent 的docker版本是不是连不上了现在?

[复制链接]
11#
 楼主| 发表于 2023-6-7 09:06:36 | 只看该作者
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

12#
 楼主| 发表于 2023-6-7 09:07:37 | 只看该作者
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
13#
 楼主| 发表于 2023-6-7 09:12:05 | 只看该作者
28661 发表于 2023-6-7 08:48
我记得改的webui的部分,好像是WebUI\HostHeaderValidation=false。不太记得了,你对比一下吧

...

要改的文件名是什么

路径在哪
14#
发表于 2023-6-7 09:13:37 | 只看该作者
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端口
15#
 楼主| 发表于 2023-6-7 09:32:01 | 只看该作者
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
16#
发表于 2023-6-7 09:46:01 | 只看该作者
log 发表于 2023-6-7 09:32
有输出

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

就是防火墙原因了
机器的防火墙或者云主机的防火墙
大厂的几乎都是默认封了大部分端口的
17#
 楼主| 发表于 2023-6-7 11:55:25 | 只看该作者
aru 发表于 2023-6-7 09:46
就是防火墙原因了
机器的防火墙或者云主机的防火墙
大厂的几乎都是默认封了大部分端口的

甲骨文的 早就在面板里把ipv4 6的所有端口都放行了
18#
发表于 2023-6-7 11:58:09 | 只看该作者
log 发表于 2023-6-7 11:55
甲骨文的 早就在面板里把ipv4 6的所有端口都放行了

那就是本机的iptables 防火墙咯
自己看下如何放行吧
19#
 楼主| 发表于 2023-6-13 11:13:47 | 只看该作者
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
20#
发表于 2023-6-13 12:30:16 来自手机 | 只看该作者
刚试,可以,没什么速度
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-12-9 14:56 , Processed in 0.105039 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表