Repository navigation
fix: restore host 116 Label Studio public access - #59
Closed
bioinformatist wants to merge 1 commit into
Closed
bioinformatist wants to merge 1 commit into
bioinformatist wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Label Studio 从旧的 Cloudflare/Caddy 入口改为
http://8.sctmes.com:28088,并修复直连 Nginx 后公网连接的响应被 Mihomo TUN 接管的问题。保留现有 Nginx、应用、PostgreSQL 和 SSH DDNS。故障与根因
在 Label Studio Community 1.23.0、Mihomo Meta v1.19.24(Linux amd64,
tun.stack: mixed)上,局域网访问成功,但学生的 Windows Edge/Chrome 以及手机关闭 Wi-Fi 后的移动数据访问失败。DNS 与路由器公网 IPv4 一致,28088 DNAT 规则存在,Nginx 正常监听。受控复现让路由器以自身公网 IPv4 为源地址连接服务器的
192.168.0.116:28088。抓包显示 SYN 到达 Nginx 容器,容器发出的 SYN-ACK 却进入Meta虚拟网卡,随后出现重置,无法完成握手。相同容器流量发往局域网地址时正常走物理网卡。这解释了内网回环测试成功而公网来源连接失败;该受控复现本身不是一次完整的互联网访问测试。修改
192.168.0.116:28088:8085,移除 Caddy 配置及其持久化声明,删除旧 Label Studio 域名的 DDNS 更新项,保留 SSH DDNS。label-studio-return-route.service,在 Label Studio 启动前安装pref 8990 ipproto tcp sport 8085 lookup main。8990 位于当前 Mihomo 的 9000 系列规则之前;容器响应参与路由决策时源端口仍为 8085,Docker 随后才恢复外部端口 28088。规则匹配所有 IPv4 TCP 源端口 8085 的流量,不按连接身份区分;以后其他服务复用该端口时需要重新评估。入口按项目已确认的临时标注部署方案使用 HTTP。
OpenWrt 的 WAN TCP 28088 到服务器的映射及旧 Label Studio IPv6 TCP 2053 放行规则清理已在路由器完成,旧域名 DNS 记录由管理员删除。这些路由器和 DNS 操作不属于本 PR 的仓库文件变更。
验证与范围
运行验证基于部署基线
e1e06c2af78ef5df25cc10039e19de96108b8f79加本次修改:enp6s0返回。PR 基于最新
main的6e32119创建,services.nix与已部署验证的文件完全一致。PR 分支已通过两个修改后的 Nix 文件解析、路由服务的nix eval --offline --no-write-lock-file和git diff --cached --check。没有构建或部署包含其余 main 更新的完整系统;最新 main 上的整体集成仍由 CI 和后续运维验收确认。