How to achieve public network access to the GeoServe Web management interface to share spatial geographic information [intranet penetration]

Preface

GeoServer is a J2EE implementation of the OGC Web server specification. GeoServer can be used to easily publish map data and allow users to update, delete, and insert feature data. GeoServer can quickly and easily share spatial geographic information among users. In addition, GeoServer is open source software.

The following introduces the GeoServer web ui management interface combined with the cpolar intranet penetration tool to achieve remote access.

1.Install GeoServer

Open the official website https://geoserver.org/release/stable/, download the windows installation file here and install it, because GeoServer is developed based on Java. Therefore, before installation, you must ensure that JDK is installed, JDK version 11 or 17

image-20230831135240383

After the download is successful, click the download file to install. During the installation process, you will be prompted to select jdk. Just select the jdk directory of our local installation.

image-20230831140701993

Next step is to set the login username and password, which can be customized or default.

image-20230831140828955

Next, set the web interface port number. We can change it to a port that does not conflict with our own computer. Here it is changed to 8088.

image-20230831141019599

Then proceed to the next step to install. After the installation is completed, we open the browser and enter http://localhost:8088/geoserver to see the GeoServer web management interface. The local installation is successful. Next, install cpolar for intranet penetration. Tools for remote access

image-20230831141528854

2. Windows installation cpolar

cpolar official website: https://www.cpolar.com/

Visit the cpolar official website, register an account, and then download and install the client. For specific installation instructions, please refer to the official website documentation tutorial.

  • Windows system: After downloading the installation package from the official website, double-click the installation package and install it by default.
  • Linux system: supports one-click automatic installation script. For details, please refer to the official website documentation - Getting Started Guide

After cpolar is successfully installed, access the local 9200 port [ http://localhost:9200 ] on the browser and log in using the cpolar account.

20230130105810

3. Create a public network access address

After logging in, click Tunnel Management - Create Tunnel on the left dashboard to create an 8088 http tunnel.

  • Tunnel name: You can customize the name. Be careful not to duplicate the existing tunnel name.
  • Protocol: Select http
  • Local address: 8088 (the port we set during installation)
  • Domain name type: Choose a random domain name for free
  • Region: Select China vip

Click创建

image-20230831142026822

After the tunnel is successfully created, click the status on the left - online tunnel list to view the generated public network access address. There are two access methods, one is http and https

image-20230831142057355

4. Access the Geo Servcer service from the public network

Above, we created the public network address of the http protocol in cpolar, opened the browser, and used the cpolar public network address plus the resource path to /geoserveraccess it. You can see that the access is successful, so that the public network address accessed by a remote or any device browser is It's set up.

image-20230831142448563

5. Fixed public HTTP address

Since the tunnel created using cpolar above uses a random public network address, it will change randomly within 24 hours, which is not conducive to long-term remote access. Therefore, we can configure a second-level subdomain name for it. This address is a fixed address and will not change randomly [ps: cpolar.cn has been filed]

Note that you need to upgrade the cpolar package to a basic package or above, and the bandwidth corresponding to each package is different. [cpolar.cn has been registered]

Log in to the cpolar official website backend , click Reserve on the left, select to reserve the second-level subdomain name, set a second-level subdomain name, click Reserve, and copy the reserved second-level subdomain name after the reservation is successful.

image-20230831142951167

After the reservation is successful, copy the reserved second-level subdomain name address

image-20230831143123566

Log in to the cpolar web UI management interface, click Tunnel Management - Tunnel List on the left dashboard, find the tunnel you want to configure, and click Edit on the right

image-20230831143215116

Modify the tunnel information and configure the successfully reserved second-level subdomain name into the tunnel.

  • Domain name type: Select a second-level subdomain name
  • Sub Domain: Fill in the successfully reserved second-level subdomain name

Click更新

image-20230831143244099

After the update is completed, open the online tunnel list. At this time, you can see that the public network address has changed and the address name has become a reserved and fixed second-level subdomain name.

image-20230831143312608

After the address is set, replace the random domain name address with our fixed public network address for access. You can see that the access is also successful. In this way, a permanent and fixed public network address is set.

image-20230831143653306

Replace the random domain name address with our fixed public network address for access. You can see that the access is also successful. In this way, a permanent and fixed public network address is set.


Guess you like

Origin blog.csdn.net/2201_75743654/article/details/135428028