1

我只想通过说我已经完成了大部分工作,但是我已经在互联网上搜索了好几天,试图找到这个难题的文档。

这是我的堆栈:

- Router port forwarding (80,443,8080)
- Laptop (DHCP)
- stunnel (443 -> 8080)
- websocket (8080)

路由器端口转发:

TCP 80, 443, 8080 -> 192.168.1.x

笔记本电脑防火墙:

sudo ipfw add allow tcp from any to any 443

隧道:

[https]
accept  = 443
connect = 8080

Websocket 绑定:

('0.0.0.0', 8080);

客户:

ws://hostname:8080/
wss://hostname:443/

这是到目前为止的工作:

When connecting from my computer: Both secure wss and non secure websocket connections succeed. The websocket reports that I've connected from 127.0.0.1.

什么不起作用:

When connecting from my phone via 3g (outside my router): Non secure works, secure does not.

Chrome、Safari 和 Firefox 都为 Websocket 连接提供任何调试,所以我不知道问题出在哪里。

任何帮助表示赞赏。

扎克

4

0 回答 0