The server of the local intranet accesses the Internet using the springboard machine

June 29, 2022 1819 points heat 1 person likes 0 comments

This article is not a dry product. Maybe we don't use many children's shoes! After all, this matter really wasted half a day of my research. I will share it with you here!

At present, the software platforms made in the company are sold to Party A, and many of them require localization deployment! Why is it called localization deployment?

At present, Party A is either a ZF or a state-owned enterprise, and some business platforms require intranet access.

The servers in the intranet are not connected to the public network (Internet). We usually configure a springboard machine to access the server.

The springboard machine can access both the public network and the servers in the LAN.

As shown in the figure:

 

 

Here comes the question: What should I do if I need to install some software on the server now?

Currently, they are generally compiled and installed! First download the software on the springboard machine, then copy it to the server, compile and install it!

The disadvantage of this method is that it is troublesome. There may be fewer packages in the compilation process!

At this time, I suddenly found that it was cool to install with the yum button. What should I do? Intranet server networking requires various approvals (within the system, you know)~

Can the server use a springboard machine to connect to the Internet to install these software?

As shown in the figure:

 

Platform system

The system demonstrated by the blogger is as follows

Server: CentOS 7

Jumpboard machine: Windows 10

Intranet: network cable

External network: wireless network card

Software: CCProxy

 

Basic steps

Start Agent

1) Download on official website CCProxy Software installation

2) This is divided into free version and paid version. It is recommended for everyone to use CCProxy registration code Activate it, otherwise limit the number of connections and the network speed is not ideal!

3) After installing the software, the settings can see some configurations

 

 

4) Support multiple protocols, such as HTTP and Socks

Which network card does the following 0.0.0.0 monitor? Huh? What? Don't know which to choose? Choose 0.0.0.0.

 

Intranet IP address

Query the intranet IP address of the springboard machine. This is simple!

1) Win+R input cmd, console input ipconfig

2) You can see all the network cards and the assigned IP addresses

3) Find the IP address assigned to the intranet of the springboard machine and server

For example, the IP address is 192.168.8.119

 

Server networking

Execute the following command on the server, and the server can go to the springboard machine agent!

Reminder: The above command is only for the current shell window. After the form is closed, the proxy will become invalid!

If you want to "permanently" take the proxy, you can add the above content to ~/.bash_profile

Execution: source ~/.bash_profile It will take effect!

 

Before using the proxy:

 

After using the agent:

 

Final summary

This method is really convenient! There are many similar software, such as HAproxy, Proximier, wait

 

 

 

The article was reprinted from@ https://51.ruyo.net/17717.html

Gcod

If life is just like the first sight, what is the sad autumn wind painting fan

Article comments