How to install and use peanut shells under CentOS Stream 9 and do intranet penetration to build a website

I want to build a personal site on the local computer to practice my hands, and I want it to be accessible through the external network, how to achieve it? Here I choose to use the internal network penetration of peanut shells to solve it. Since the VMware Workstation Pro virtual machine is used, this wish can be realized at home without a separate server. The specific implementation steps are as follows:
1. Install CentOS Stream 9 in the VMware Workstation Pro virtual machine (the process is omitted)
insert image description here2. Download Peanut Shell software (peanut shell software htt address: https://hsk.oray.com/)
uses WinSCP software to upload phddns_5.2.0_amd64.rpm to the /root directory. In order to ensure permissions, use the sudo -s command to switch to the administrator .
Use the ll command to check whether there is a phddns_5.2.0_amd64.rpm file in the /root directory. If you can check the phddns_5.2.0_amd64.rpm file at this time, you can use the following command to install
insert image description hereinsert image description here
[Of course, you can also directly use the command line to download, download Command line:
wget “https://down.oray.com/hsk/linux/phddns_5.2.0_amd64.rpm” -O phddns_5.2.0_amd64.rpm]
3. Install the peanut shell software
using the rpm command to install: (base) [ root@localhost ~]# rpm -ivh phddns_5.2.0_amd64.rpm
insert image description here
The return information must be remembered, it will be used in the future. After entering phddns and pressing Enter, you can see the extended functions.
insert image description here
The above commands do not need to be used

4. Register a peanut shell account (https://www.oray.com/), visit http://b.oray.com/ and select SN to log in according to the website access and account password returned in the installation steps The account password is enough, SN: o...8 Default password: admin
insert image description here
Because I already have a peanut shell account, I have adopted multi-account management, see the picture below, add device list
insert image description here
Activate the device you added, see the picture below: insert image description here
Create a sub-account
insert image description here
Click "Add Mapping" in the figure below
insert image description here
to fill in the "application name", select "http", fill in the "extranet domain name", be sure to select the dynamic port, and fill in "80" for the internal network port, Then click OK. Because when you select "http", it prompts that you need to pay 6 yuan, so I don't use this domain name. I will use the domain name I used before to explain. If you choose "https", it also needs money (see the picture below)
insert image description here
. I used the previous one,
insert image description hereso far my peanut shell penetration mapping is installed.
5. Next, we can apply peanut shell penetration mapping to build our own website. Create a new "Website" in the pagoda panel, and then "Add Website", see the picture below: You can see that the website is added successfully through the picture below
insert image description here
.
insert image description here

Guess you like

Origin blog.csdn.net/ftzyj/article/details/124502593