【问题标题】:IceCast stream authenticationIceCast 流认证
【发布时间】:2015-07-25 05:32:46
【问题描述】:

我正在使用 Icecast 2.3.3。

我想使用 URL 流认证,问题是认证服务器 url 没有被 Icecast 服务器调用,我不知道为什么。 Icecast 服务器在 Azure 上的 Linux 机器上运行,身份验证服务器是 Azure Web App。我尝试了不同的配置,但出现了意外错误。 首先,对于:

<mount type="normal">
    <mount-name>/local.ogg</mount-name>
    <authentication type="url">
        <option name="stream_auth" value="http://localhost/"/>
    </authentication>
</mount>

我收到了这个错误(我理解):

[2015-05-13  18:36:52] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13  18:36:52] WARN auth_url/url_stream_auth auth to server http://localhost/ failed with Failed to connect to localhost port 80: Connection refused
[2015-05-13  18:36:52] WARN auth/stream_auth_callback Failed auth for source "/local.ogg"

那么,对于:

<mount type="normal">
    <mount-name>/ip.ogg</mount-name>
    <authentication type="url">
        <option name="stream_auth" value="http://123.45.67.89/"/>
    </authentication>
</mount>

再次,如我所料的错误是(这个ip是随机的):

[2015-05-13  18:37:34] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13  18:37:35] WARN auth_url/url_stream_auth auth to server http://123.45.67.89/ failed with Connection timed out after 15008 milliseconds
[2015-05-13  18:37:35] WARN auth/stream_auth_callback Failed auth for source "/ip.ogg"

但是,当我想使用我的网络应用程序时

<mount type="normal">
    <mount-name>/blast.ogg</mount-name>
    <authentication type="url">
        <option name="stream_auth" value="http://blast.azurewebsites.net/"/>
    </authentication>
</mount>

我没有收到可以向我解释问题所在的错误

[2015-05-13  18:38:29] EROR connection/_handle_connection HTTP request parsing failed
[2015-05-13  18:38:30] WARN auth/stream_auth_callback Failed auth for source "/blast.ogg"

关于 Icecast stream_auth 函数有什么我应该知道的吗?或者也许我必须以不同的方式使用 Icecast 设置我的虚拟机?

如果有人有使用 stream_auth 的工作示例,那也将不胜感激。

【问题讨论】:

  • 2.3.3 到 2.4.1 容易受到远程 DoS CVE-2015-3026 的攻击 - 在生产中使用之前紧急升级到 2.4.2!
  • 确保您的日志级别为“4”,即 DBUG。还要查看登录目标网络服务器以确保是否请求了 URL 等。
  • 在 Icecast 网站上,当前版本是 2.4.1。我怎样才能获得最新的?

标签: azure audio-streaming icecast


【解决方案1】:

看起来 icecast 安装过程不检查 libcurl 的可用性。此功能需要哪个。检查您的 config.log 中是否有类似“libcurl not found”的消息 如果是这种情况,那么您可以运行“apt-get install libcurl4-gnutils-dev”来安装 libcurl。这应该可以解决这个错误。

【讨论】:

  • 更新到 2.4.2 并安装 libcurl 解决了这个问题,感谢@orn
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-10-06
  • 1970-01-01
  • 2016-06-10
  • 2015-03-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多