【发布时间】:2016-09-20 09:07:18
【问题描述】:
我从http://www.stunprotocol.org/ 下载了 stun 客户端,并尝试通过命令 stunclient --mode full stun.stunprotocol.org --verbosity 9 找出 NAT 类型,并得到以下响应。
config.fBehaviorTest = true
config.fFilteringTest = true
config.timeoutSeconds = 0
config.uMaxAttempts = 0
config.addrServer = 52.86.10.164:3478
socketconfig.addrLocal = 0.0.0.0:0
Sending message to 52.86.10.164:3478
Got response (68 bytes) from 52.86.10.164:3478 on inter
Other address is 52.201.75.212:3479
Sending message to 52.201.75.212:3478
Got response (68 bytes) from 52.201.75.212:3478 on inte
Sending message to 52.201.75.212:3479
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.201.75.212:3479
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.86.10.164:3478
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.86.10.164:3478
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.86.10.164:3478
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Sending message to 52.86.10.164:3478
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Continuing to wait for response...
Binding test: success
Local address: 10.64.60.58:58841
Mapped address: 125.19.34.60:24604
Behavior test: fail
Filtering test: success
Nat filtering: Address and Port Dependent Filtering
我在一家公司工作,因此出于安全原因,NAT 类型“地址和端口相关过滤”似乎可行。
但作为一种普遍现象,在我看来,对于点对点连接,大多数情况下,NAT 类型将是“地址和端口相关过滤”,因此任何媒体通信都需要转服务器。
但是,在谷歌上搜索 webrtc,它显示 90% 的点对点通信是通过 stun 服务器本身建立的(通过打孔等)。这意味着在这种情况下完全支持 NAT 类型来建立连接。
专家对点对点通信需要考虑的 NAT 类型分析有什么意见吗?
【问题讨论】: