Skip to content

[BUG] AutoSTUN失败 - 端口已占用 #1404

Description

@wujinjun-MC

版本号 - Version

v9.0.7

操作系统平台和系统架构 - OS and CPU Arch

Linux qnap-1-ubuntu-1 5.10.60-qnap #1 SMP Tue Jul 15 05:40:20 CST 2025 x86_64 x86_64 x86_64 GNU/Linux

部署方式 - Deploy methods

  • Windows .exe 安装程序 (Windows .exe Installer)
  • Windows .zip 绿色部署包 (Windows .zip Portable)
  • Docker
  • JAR 包直接启动 (Start via .JAR directly)
  • 群晖 DSM 套件 (Synology .spk package)
  • Debian 软件包 (Debian .deb package)
  • RedHat/Fedora 软件包 (RedHat/Fedora .rpm package)
  • FreeBSD 软件包(FreeBSD .pkg package)

添加的下载器 - Added Downloaders

  • qBittorrent
  • BiglyBT/Azureus/Vuze
  • Deluge
  • Transmission
  • BitComet

下载器版本号 - Downloader Version

qBittorrent Enhanced Edition v5.1.2.10

问题描述 - Issue Description

qBittorrent和PeerBanHelper运行在两个Docker中。打开AutoSTUN后,qBittorrent显示为 "未连接",日志提示所有网络接口 "Address in use",隧道信息全0

复现步骤 - Reproduce steps

  1. 添加qBittorrent到下载器
  2. 启用实验性功能,启用AutoSTUN
  3. qBittorrent连接状态显示"未连接",日志显示错误
  4. 更改绑定网络接口和IP,开关AutoSTUN,仍然出错

截图/日志文件 - Screenshot / Logs

Image Image
2025-10-03T10:19:23.266918493Z [10:19:23] [virtual-6539/INFO]: [AutoSTUN] 正在启动下载器 qnap-1-ubuntu-1 的隧道,请稍等……
2025-10-03T10:19:23.374339075Z [10:19:23] [virtual-6540/INFO]: [PortMapper] 已在网卡 /192.168.3.3 的网关上上为本地端口 44055/TCP 创建了一个端口映射,网关地址: 10.1.10.208 (MiWiFi router - Xiaomi MiWiFi Router null)
2025-10-03T10:19:23.780358982Z [10:19:23] [virtual-6539/INFO]: [AutoSTUN] 下载器 qnap-1-ubuntu-1 的隧道已创建,本地端点: 192.168.3.3:44055, 远程端点: protected:44055
2025-10-03T10:19:23.786003401Z [10:19:23] [virtual-6539/INFO]: [AutoSTUN] 正在创建下载器 qnap-1-ubuntu-1 的隧道 TCP 数据包转发服务,请稍等...
2025-10-03T10:19:23.798357613Z [10:19:23] [virtual-6539/INFO]: [AutoSTUN] 正在修改下载器 qnap-1-ubuntu-1 的 BT 监听端口为 44055,请稍等...
2025-10-03T10:19:25.328969259Z [10:19:25] [virtual-6539/INFO]: [AutoSTUN] 下载器 qnap-1-ubuntu-1 的隧道已成功创建: (Upstream)127.0.0.1:44055 <-> (Proxy)192.168.3.3:44055 <-> (Downstream)protected:44055

额外信息 - Addition Information

No response

检查清单 - Check list

  • PeerBanHelper 已更新到最新版本,非最新版本不接受任何错误反馈,任何非最新版本的 Issue 将被 立 刻 关 闭,不会有人给您提供任何支持 (I'm running the latest version of PBH that can be found in Github Relases, non-latest release won't receive any support)
  • 所添加的下载器已满足 README 中的前置要求(如版本号和插件)(The downloaders that I've added already satisfied the requirements (E.g install plugins/adapters))
  • 我已检查过 PBH 文档(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or PBH WIKI)
  • 我没有检查这个检查清单,只是闭眼选中了所有的复选框,请关闭这个 Issue (I have not read these checkboxes and therefore I just ticked them all, Please close this issue)
  • 这不是一个安全漏洞,它可以被安全的公开报告。若需要报告安全漏洞,请在此报告 (This not a security related issue, can be safe report in public. If you want report a security exploit, please report it here)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions