I choose Fisoc BCOS block chain environment as the block chain environment, and build it on an industrial control host with no known brand. Due to the power failure at 11 PM in the dormitory, the server cannot work for 724 hours, so THE server is placed in the tutor’s office to provide services. The services can be accessed from the dormitory through the Intranet, but only from the Intranet of the campus network (VPN can also be used to access the Intranet of the campus network, but the learning VPN server is a bit stretched). Therefore, the peanut shell Intranet penetrating service is used to map the services from the Intranet to the public network, and then the Intranet can be accessed through the Internet. Without further ado, we started the practical operation. The practical operation content is mainly to map the service process, not to build the internal service itself. Project hardware and software configuration Hardware: one industrial control host (actually computer mini) software: Ubuntu20.04 LTS (OS), blockchain environment (services that need to be mapped), Peanut shell Linux version Project Objective Through peanut shell Intranet penetration to map services on the Intranet to the public network, to achieve remote access to the project process internal services set up in the Intranet server to set up the required mapping services (discussed due to requirements, Here I need to map out the environment of the blockchain. . 1. Peanut shell official website (hsk.oray.com/download/)…

2. Install the peanut shell. The installation procedure must be carried out by the administrator. Deb # 64-bit DPKG -i phddns-5.0.0-amd64.deb # 64-bit DPKG -i phddns-5.0.0-amd64.deb # 64-bit DPKG -i phddns-5.0.0-amd64.deb # 64-bit DPKG -r PHDDNS

Uninstall screenshot:

Peanut shell usage method, namely Intranet penetration configuration. Common commands

Open the service

phddns start

Check the status

phddns status

Close the service

phddns stop

Restart the service

phddns restart

Viewing version Information

phddns version

Reset service

phddns reset

Boot from the rev.

phddns enable

Turn off the boot

PHDDNS disenable # All commands require administrator permissions except PHDDNS version command

Sudo PHDDNS start

Check whether the service is started successfully. Sudo PHDDNS status The following information is displayed:

Be sure to remember the SN code in the figure above, which is the web login account. Be sure to remember the SN code in the figure above, which is the web login account. Be sure to remember the SN code in the figure above, which is the web login account. Say the important words three times!!

Log in to b.oray.com using the 1. browser and enter Linux 5.0. The serial number (SN) code and default login password (admin) are generated during the installation.

If you log in to the system for the first time, activate it. Two activation modes are available: scan and password. ① Scan code activation: use peanut shell management APP or wechat to scan code activation; ② Password activation: Enter the password of the registered Oray account to activate the password. If an account bound to the SN code only has the dynamic domain name resolution function and needs to use the Intranet penetration function, click Enable for free or upgrade the account to the service version with the Intranet penetration function. 2. To add an Intranet penetration mapping, click Add Mapping.

Add a mapping page and select a mapping type based on the service type. Select HTTP or HTTPS for Web services and TCP or UDP for flow services, such as video surveillance and FTP. In this case, I choose THE Web service and select THE HTTP service. If you have certain security requirements for the service, you are advised to select HTTPS.

Extranet domain name: the domain name accessed through the Extranet. Choose any domain name. External network access port: you can choose a fixed port or a dynamic port. This does not affect the use of the port. Intranet host: specifies the IP address of the host where the service resides. In Linux, enter ipconfig on the terminal to view the IP address of the network adapter. In Windows, enter ipconfig in CMD to view the NETWORK adapter IP address. Internal port: the port where the service resides, for example, the default Tomcat port 8080, SSH port 22, and mysql port 3306. After the mapping is set, you can access Internet domain names through the public network to access services.

Service showTime, and now watch me. Blockchain node console data overview

Node management

Contract management

WeBASE(WeBank Blockchain Application Software Extension) login page (using peanut shell generated public domain name for remote access)

An overview of the data

Chain management

Contract management

The private key management

System management

System monitoring Node monitoring

Host monitoring

Transaction audit

The contract running test code is shown in the figure below:

Has been compiled and deployed to the blockchain, initiated transactions, call get and set methods; get

set

Get again, the result is as follows:

Integral operation is simple, for there is no public IP family is very friendly, whether it will be your computer mapping out of service, or will the Linux small host service mapping out is very convenient, and the peanut shells also provide free services, to high level service may apply to the “student plan” is favorable, very friendly to user groups to the student, In one word: incense!