VMware 上的 FIWARE Orion "Access forbidden"

FIWARE Orion on VMware "Access forbidden"

我最近在 VMware Player HERE 上实例化了 Orion 图像。更新到 0.22 版本后,我可以确认它已经启动并且 运行,在 VM 中使用 curl:

[root@centimeter ~]# curl -XGET localhost:1026/version
<orion>
    <version>0.22.0</version>
    <uptime>0 d, 0 h, 5 m, 54 s</uptime>
    <git_hash>06bc8fd55ee37567a3754422e78e732c8fd69da8</git_hash>
    <compil_time>Mon May 25 13:25:10 CEST 2015</compile_time>
    <compiled_by>fermin</compiled_by>
    <compiled_in>centollo</compiled_in>
</orion>

但是,如果我 运行 从主机检查(到来宾 VM 的 IP 或正确设置端口转发),我会得到:

GET http://192.168.0.104:1026/version
{
    message: "Access forbidden"
}

我错过了什么?

我尝试从 VM 本身 curl-ing 到同一个 IP,但出现同样的错误。我已经设置了安全规则并尝试搞乱 CentOS iptables,但没有任何效果。我可以从主机 comp ping VM 的 IP。

我最好的猜测是它与最近实施的 CORS 有关。有帮助吗?

谢谢, 杜山

我不认为 Orion 进程本身会生成该消息,因为 no place in its source code is able to render that message

因此,似乎另一个实体正在生成该消息。它可能是 VM 内的进程 运行,如果其他进程正在侦听 192.168.0.104 接口,您可以使用 netstat -ntlpd | grep 1026 检查。或者它可能是与 VM 外部的 VMware 工具 运行 相关的一些网络进程(尽管从 VM 本身卷曲到同一 IP 不支持该选项...)。

无论如何,请确保 192.168.0.104 IP 与该特定 VM 相关联。