我想配置我的本地副本

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

video calls中启用Mattermost进行测试。一部分是:

[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.STUN和TURN这两个服务器按照其各自的RFC的定义只能在公共(public)IP上设置

2.Stun服务器用于提供防火墙的公共(public)IP,如果在防火墙中进行配置,则STUN绑定(bind)请求(SBR)将不会响应,因为没有从防火墙配置外部服务器。

3.在一个非常高级的级别上,STUN服务器的工作是从源接收SBR,并从传输层检查IP地址,并作为响应返回该IP地址,并找到一个将打开以返回源的端口。

4.稍后在同一端口上打孔,使用STUN绑定(bind)指示在整个 session 中将其打孔。

关键是不要在防火墙内配置STUN或TURN,因为这没有用。

关于docker - 如何在公司代理后面使用stun.l.google.com?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45302679/

10-16 06:18