我从 https://en.wikipedia.org/wiki/Server_Message_Block了解了 SMB 信息。
SMB 使用 TCP 139/445 协议。我通过
lsof
检查我的服务器 prot,SMB 只监听 139 和 445 prot。
然后我尝试通过 Ngrok 转发 SMB 端口。这是我的配置:
tunnels:
http:
remote_port: 1122
proto:
tcp: 5000
smb:
remote_port: 139
proto:
tcp: 139
smb2:
remote_port: 445
proto:
tcp: 445
http 服务器正在工作。但SMB服务器无法工作。
Ngrok 克隆来自 https://github.com/inconshreveable/ngrok。版本是 1.7,由 golang 1.12 构建