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
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
我能够本地登录 https://localhost:9443/emm .
情况:
1)将sso-idp-config.xml中的所有本地主机修改为内部10.100.0.1:9443
1) After modifying all localhosts in sso-idp-config.xml to internal 10.100.0.1:9443
从内部LAN到//10.100.0.1:9443/emm-能够登录
From internal LAN to //10.100.0.1:9443/emm - able to log in
从外部重定向到//90.90.0.1:23333/emm重定向到 //10.100.0.1:9443/samlsso-失败
From external to //90.90.0.1:23333/emm redirected to //10.100.0.1:9443/samlsso - failed
2)将sso-idp-config.xml中的所有localhost修改为外部90.90.0.1:23333
2) After modifying all localhosts in sso-idp-config.xml to external 90.90.0.1:23333
登录后重定向到//90.90.0.1:23333/emm/acs后,从内部LAN到//10.100.0.1:9443/emm-失败
From internal LAN to //10.100.0.1:9443/emm after log in redirected to //90.90.0.1:23333/emm/acs - failed
从外部登录到//90.90.0.1:23333/emm登录吗?是否将null重定向到 //10.100.0.1:9443/samlsso-失败
From external to //90.90.0.1:23333/emm login?null redirected to //10.100.0.1:9443/samlsso - failed
奇怪的是,两种情况下iam都能从外侧到达//90.90.0.1:23333/carbon.
What is strange is that iam able to reach //90.90.0.1:23333/carbon from external side in both cases.
推荐答案
我们在使用公共IP时也遇到了同样的问题,但是我们已经解决了.这是一个配置问题;我们更改了以下文件,现在一切正常.
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使用公共IP更改以下
${carbon.local.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添加以下参数.
/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使用您的公共IP更改以下定义.
/modules/distribution/src/repository/conf/carbon.xml change the following definitions with your public IP.
HostName和MgtHostName
HostName and MgtHostName
/modules/distribution/src/repository/conf/identity.xml和/modules/distribution/src/repository/conf/sso-idp-config.xml用公共IP替换localhost.
/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屋!