V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
totoro625
V2EX  ›  宽带症候群

江苏镇江移动家宽开始限制 ipv6 80/443 端口

  •  
  •   totoro625 · 3 天前 · 1271 次点击

    2025 年 3 月 27 日下午 1 点开始,江苏镇江移动家宽异地异实名的两条宽带,ipv6 的 80/443 端口均被限制使用

    顺便问一下

    百度智能云加速,非标准端口回源,web 及各类客户端均正常,唯独 docker pull 时跳转到非标准端口(用的 nginx 反代 后端是 Nexus )

    nginx 的配置为:

    server {
      listen 10086 ssl http2;
      listen [::]:10086 ssl http2;
      server_name docker.example.com;
      include /etc/nginx/ssl.conf;
      location / {  
        proxy_pass http://192.168.xx.xx:80;
        include /etc/nginx/proxy.conf;
      }
    }
    

    错误提示:

    Error response from daemon: Head "https://docker.example.com/v2/example/example/manifests/latest": Get "https://docker.example.com:10086/v2/token?scope=repository%3Aexample%2Fexample%3Apull&service=https%3A%2F%2Fdocker.example.com%3A10086%2Fv2%2Ftoken": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
    

    当前临时通过 frp 反代端口用上了,但是 ipv6 无法正常回源还是很头疼的

    第 1 条附言  ·  3 天前

    最终通过realm转发端口解决了问题 并非程序员,具体什么原因不得而知

    [[endpoints]]
    listen = "[::]:10086"
    remote = "127.0.0.1:443"
    
    5 条回复    2025-03-28 11:51:42 +08:00
    yinmin
        1
    yinmin  
       3 天前
    nginx 加下面这行试试:

    absolute_redirect off;
    totoro625
        2
    totoro625  
    OP
       3 天前
    @yinmin #1 没有起作用
    不清楚问题是发生在 cdn 端,还是本地 nginx 端,我也同时发了云工单

    当前用的 frp 穿透时正常的,之前用 443 端口回源搭配 cdn 也是正常的,唯独改了端口只有 docker 出现异常
    intoext
        3
    intoext  
       3 天前
    其实这并没有什么不好,暴露 80 443 ,也容易被扫描,运营商直接限制了,算是安全。 自己起一个特殊端口就是咯
    yinmin
        4
    yinmin  
       3 天前
    @totoro625 , 再试试这个:

    server_name 这行下面加:absolute_redirect off;
    proxy_pass 这行下面加:proxy_redirect off;
    yinmin
        5
    yinmin  
       3 天前
    如果 http://192.168.xx.xx:80 是 nginx 的话,也加一行 absolute_redirect off;
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   984 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 21:44 · PVG 05:44 · LAX 14:44 · JFK 17:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.