curl -6 http://域名 无响应
👉 结论:移动宽带封锁了 IPv6 的 80 端口(公网访问)
修改 OpenWrt Web 服务监听端口为 8888:
- 编辑
/etc/config/uhttpd:
bash复制编辑vi /etc/config/uhttpd
将下面这两行:
bash复制编辑option listen_http '0.0.0.0:80'
option listen_http '[::]:80'
改为:
bash复制编辑option listen_http '0.0.0.0:8888'
option listen_http '[::]:8888'
- 保存并退出,重启 uhttpd:
bash复制编辑/etc/init.d/uhttpd restart
📌 开放 IPv6 的 8888 端口:
bash复制编辑uci add firewall rule
uci set firewall.@rule[-1].name='Allow-IPv6-HTTP-8888'
uci set firewall.@rule[-1].src='wan'
uci set firewall.@rule[-1].proto='tcp'
uci set firewall.@rule[-1].dest_port='8888'
uci set firewall.@rule[-1].target='ACCEPT'
uci set firewall.@rule[-1].family='ipv6'
uci commit firewall
/etc/init.d/firewall restart
✅ 在外网测试访问:
bash复制编辑curl -6 http://域名:8888
或用浏览器访问:
arduino复制编辑http://域名:8888