wso2 emm - 无法通过外部 IP 连接 [英] wso2 emm - unable to connect via external IP
问题描述
我在内部 IP 为 10.100.0.1:9443 的服务器上安装了 EMM 1.1.0.路由器转发到外部IP 90.90.0.1:23333的端口
我可以毫无问题地在本地登录到 https://localhost:9443/emm.p>
案例:
1) 修改sso-idp-config.xml中所有localhost为内部10.100.0.1:9443后
从内部 LAN 到//10.100.0.1:9443/emm - 可以登录
从外部到//90.90.0.1:23333/emm 重定向到//10.100.0.1:9443/samlsso - 失败
2) 修改sso-idp-config.xml中所有localhost为外部90.90.0.1:23333后
登录后从内部 LAN 到//10.100.0.1:9443/emm 重定向到//90.90.0.1:23333/emm/acs - 失败
从外部到//90.90.0.1:23333/emm login?null 重定向到//10.100.0.1:9443/samlsso - 失败
奇怪的是,在这两种情况下,我都能从外部到达//90.90.0.1:23333/carbon.
我们在公共 IP 上遇到了同样的问题,但我们已经解决了.这是一个配置问题;我们更改了以下文件,现在一切正常.
注意,您也可以直接在目标目录更改这些文件.
- modules/distribution/src/repository/conf/api-manager.xml 将以下
${carbon.local.ip}
更改为您的公共 IP
<ServerURL>https://${carbon.local.ip}:${mgt.transport.https.port}/services/</ServerURL>
<GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port}</GatewayEndpoint>
/modules/distribution/src/repository/conf/axis2/axis2.xml 添加如下参数.
<parameter name="bind-address"locked="false">YOUR_PUBLIC_IP</parameter>
/modules/distribution/src/repository/conf/carbon.xml 使用您的公共 IP 更改以下定义.
主机名和管理主机名
/modules/distribution/src/repository/conf/identity.xml 和/modules/distribution/src/repository/conf/sso-idp-config.xml 将 localhost 替换为公共 IP.
I have EMM 1.1.0 installed on server with internal IP 10.100.0.1:9443. Port forwarded by router to external IP 90.90.0.1:23333
Im able to log in locally to https://localhost:9443/emm without a problem.
Cases:
1) After modifying all localhosts in sso-idp-config.xml to internal 10.100.0.1:9443
From internal LAN to //10.100.0.1:9443/emm - able to log in
From external to //90.90.0.1:23333/emm redirected to //10.100.0.1:9443/samlsso - failed
2) After modifying all localhosts in sso-idp-config.xml to external 90.90.0.1:23333
From internal LAN to //10.100.0.1:9443/emm after log in redirected to //90.90.0.1:23333/emm/acs - failed
From external to //90.90.0.1:23333/emm login?null redirected to //10.100.0.1:9443/samlsso - failed
What is strange is that iam able to reach //90.90.0.1:23333/carbon from external side in both cases.
We had the same issue with a public IP, but we have figured it out. It is a configuration issue; we changed the following files and now everything works just fine.
Note that you can also directly change these files at the target directory.
- modules/distribution/src/repository/conf/api-manager.xml change the following
${carbon.local.ip}
with your public IP
<ServerURL>https://${carbon.local.ip}:${mgt.transport.https.port}/services/</ServerURL>
<GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port}</GatewayEndpoint>
/modules/distribution/src/repository/conf/axis2/axis2.xml add the following parameter.
<parameter name="bind-address" locked="false">YOUR_PUBLIC_IP</parameter>
/modules/distribution/src/repository/conf/carbon.xml change the following definitions with your public IP.
HostName and MgtHostName
/modules/distribution/src/repository/conf/identity.xml and /modules/distribution/src/repository/conf/sso-idp-config.xml replace the localhost with the public IP.
这篇关于wso2 emm - 无法通过外部 IP 连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!