两个具有相同IP但不同端口的电击服务器(Coturn)

发布于 2025-02-13 04:33:25 字数 108 浏览 0 评论 0原文

我正在尝试使用两个眩晕服务器来确定NAT的映射行为。我需要两个具有相同IP但不同端口的眩晕服务器。 我想知道是否可以在同一主机上设置两个 coturn Stun服务器。

I'm trying to determine the mapping behaviour of a NAT using two STUN servers. I need two stun servers with the same IP but different port.
I was wondering if it's possible to set up two coturn stun servers on the same host.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

莫相离 2025-02-20 04:33:26

假设您的主机为两个或多个有效的IP地址。在下面的示例中,假设主机有两个公共IP地址:1.2.3.41.2.3.5

stuntman 如果同一主机提供了此选项,则可以将此选项绑定到多个IP地址。

stunserver --mode full --primaryinterface 1.2.3.4 --altinterface 1.2.3.5

如果在带有端口转发的NAT环境中运行(例如AWS),则可以指定IP映射,以便更改_ADDRESS或(eleth_address)是正确的它响应眩晕的约束要求。示例:

stunserver --mode full --primaryinterface 10.0.0.4 --altinterface 10.0.0.5 --primaryadvertised 1.2.3.4 --altadvertised 1.2.3.5

其中10.0.0.4和10.0.0.5是主机的私人LAN IP地址。

coturn -L和<代码> -x

turnserver -L 1.2.3.4 -L 1.2.3.5

带有-x选项,用于在NAT方案中指定广告地址的选项。

Assuming your host as two or more valid IP addresses. In the examples below, let's assume the host has two public IP addresses: 1.2.3.4 and 1.2.3.5.

stuntman has this option to bind to multiple IP addresses if offered by the same host.

stunserver --mode full --primaryinterface 1.2.3.4 --altinterface 1.2.3.5

And if running in a NAT'd environment with port forwarding (such as AWS), you can specify the IP mappings such that the CHANGED_ADDRESS or (OTHER_ADDRESS) will be correct when it responds to STUN binding requests. Example:

stunserver --mode full --primaryinterface 10.0.0.4 --altinterface 10.0.0.5 --primaryadvertised 1.2.3.4 --altadvertised 1.2.3.5

Where 10.0.0.4 and 10.0.0.5 are the private LAN ip addresses of the host.

coturn appears to have the same option with the -L and -X options

turnserver -L 1.2.3.4 -L 1.2.3.5

With the -X option used to specify the advertised address in a NAT scenario.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文