简体   繁体   中英

wso2 emm - unable to connect via external 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.

  1. 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>

  1. /modules/distribution/src/repository/conf/axis2/axis2.xml add the following parameter.

    <parameter name="bind-address" locked="false">YOUR_PUBLIC_IP</parameter>

  2. /modules/distribution/src/repository/conf/carbon.xml change the following definitions with your public IP.

    HostName and MgtHostName

  3. /modules/distribution/src/repository/conf/identity.xml and /modules/distribution/src/repository/conf/sso-idp-config.xml replace the localhost with the public IP.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM