开源Mano(OSM)使用Google Cloud实例授权



我正在努力在Google Cloud实例Ubuntu 16.04上安装开源Mano(OSM(三。键入下面的命令后,终端已返回"完成"而没有错误。

./install_osm.sh

和下一个在Chrome中,尝试访问(35.231.195.141是主机IP(:

https://35.231.195.141:8443

但我无法登录,因为下面的重定向页面总是停滞不前:(

https://10.142.0.4:8009/authorization?response_type=code&redirect_uri=https%3A%2F%2F10.142.0.4%3A8443%2Fcallback&scope=openid&client_id=cncudWkub3BlbmlkY2xpZW50

(10.142.0.4是内部IP(

此网页与下面的OSM Wiki上的警告有关?

它在https://osm.etsi.org/wikipub/index.php/osm_release_three

Please note that in OSM 3, authentication is performed using OpenIDConnect and OAuth2.0.
An identity provider has been added to the platform and provided as a service in the SO container running on port 8009.
This means both the browser and the UI server components (that run on the SO container) need to be able to access the SO container using identical URIs.
In short, the tuple of scheme://location:port needs to be reachable via both the browser accessing the system and the UI server running on the SO container (e.g. https://10.66.202.206:8009 for a sample deployment).
This means that if your SO container is behind a NAT that cannot reach the public address of the host, authentication and authorization will not be possible and you will not be able to proceed using the UI.

我应该如何对SO容器进行身份验证?非常感谢!

正如Wiki中的警告所说,在这种情况下无法访问UI,因此您应该找到一种使用旁路的方法来使用自己的机器访问本地IP,哪个容器正在侦听。

有多种方法:

  • Google Cloud VPN,这可能是过度杀伤,

  • 在Google云主机上设置VPN服务器,然后将自己的计算机连接到此VPN服务器,然后可以访问本地IP。例如您可以在云主机上设置OpenVPN服务器。

...或您可以尝试使用GUI创建虚拟机,例如窗口和访问。也许您可以修改Web服务器以使用公共IP代替内部IP。

最新更新