【发布时间】: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