2017-07-25 51 views
0

我想配置的如何在公司代理后面使用stun.l.google.com?

https://github.com/mattermost/mattermost-webrtc/blob/master/vagrant/janus/config/janus.cfg

Mattermost使video calls用于测试目的,我的本地副本。一部分是:

[nat] 
stun_server = stun.l.google.com 
stun_port = 19302 

如何在公司代理后使用stun.l.google.com

我试图

proxytunnel -p corporate-proxy:7123 -d stun.l.google.com:19302 -a 3098 

和替换第一部分与

[nat] 
stun_server = localhost 
stun_port = 3098 

这导致

$ docker run -it webrtc_blah_2 
Janus commit: ad2c131617ac989df1a1bbd601272a5e448cbb3e 
Compiled on: Mon Jul 24 13:04:22 UTC 2017 

--------------------------------------------------- 
    Starting Meetecho Janus (WebRTC Gateway) v0.2.4 
--------------------------------------------------- 

Checking command line arguments... 
Debug/log level is 4 
Debug/log timestamps are disabled 
Debug/log colors are enabled 
Adding 'vmnet' to the ICE ignore list... 
Using X.17.0.2 as local IP... 
Token based authentication enabled 
Initializing recorder code 
Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, IPv6 support disabled) 
STUN server to use: localhost:3098 
ICE handles watchdog started 
Testing STUN server: message is of 20 bytes 
[FATAL] [ice.c:janus_ice_set_stun_server:808] No response to our STUN BINDING test 
[FATAL] [janus.c:main:3667] Invalid STUN address localhost:3098 

类似与默认的配置(见最后两行):

[FATAL] [ice.c:janus_ice_set_stun_server:808] No response to our STUN BINDING test 
[FATAL] [janus.c:main:3667] Invalid STUN address stun.l.google.com:19302 

回答

1

1.STUN和TURN两台服务器都在其各自的RFC定义可以设置只对公网IP

2.Stun服务器是用来给你的防火墙的公网IP,如果你在你的防火墙配置,您的STUN绑定请求(SBR)将不会产生响应,因为您的防火墙没有配置外部服务器。

3.在STUN服务器的一个非常表面的工作中,从源接收SBR并检查来自传输层的IP地址并返回相同的响应,并找到一个将打开以便到达源的端口。

4.在同一个端口上完成后续穿孔,使其在整个会话期间使用STUN绑定指示打开。

症结是一个不应该配置防火墙内的STUN或TURN,因为这是没有用的。

+0

谢谢,所以我想这个视频通话功能或码头图像是不可用的代理后面。 –

+0

任何呼叫(音频/视频)的一个更重要的信息取决于其协商的候选对。如果您想在您的网络中拨打电话,则需要在您的环境中设置所有客户端,在这种情况下,将选择本地候选人并进行点对点呼叫可以建立。如果你想让janus服务器介于两者之间,那么服务器已经安装在你的网络中.STUN和TURN只有在客户端位于不同的NAT时才有用。 –

相关问题