1. Introductionfrp is a high-performance reverse proxy application that focuses on intranet penetration. It supports multiple protocols, including TCP, UDP, HTTP, HTTPS, etc., and has P2P communication capabilities. Using frp, you can safely and conveniently expose intranet services to the public network and transfer them through nodes with public IPs. 1. Working PrincipleThe basic workflow of FRP is as follows:
When an external network user accesses a specific port on a public server, the FRP server forwards the request to the corresponding FRP client, thereby enabling access to the intranet service. FRP working principle diagram 2. Advantages of FRP
2. Installation and configuration of FRPNext we will introduce how to install and configure FRP on your server and intranet devices. Therefore, to use FRP to achieve intranet penetration, you first need to have a VPS. 1. Environmental PreparationBefore you begin, you need to prepare the following environment:
2. Server (frps) installation and configurationThere are many ways to install the FRP server (frps). You can choose to deploy it using binary files or Docker. (1) Binary deployment Get the latest version of the file download through GitHub, as shown below: After logging into the system, change to the specified directory. In this example, I have chosen the opt directory. Download the frp file and replace the link after wget with the latest version. After downloading, execute the following command to decompress the file: Execute the following command to rename the frp application: File Description:
Therefore, the server only needs to keep frps and frps.toml. Edit frps.toml and the completed configuration file options can access the official template [1]. Configure systemd on the server to manage frp and execute the following command to create the frps.service file. And write the following content in the file: Execute the following commands to enable the bootloader and start the service. Check whether the service is normal. Use the following command to check. If the service is not active, check the log. (2) 1Panel deployment If you think the above binary deployment method is complicated, you can try to use 1Panel deployment. Since my VPS has already installed 1Panel, I can easily install frps directly through 1Panel. Open the 1panel app store, find the frp server directly, and install it: The deployment is complete as shown in the following figure: The default authentication method is token. To set and obtain the token, go to the App Market, click Installed, and click the Enter Installation Directory button. frps status frps configuration file 3. Client Installation and ConfigurationThe client only needs to leave frpc and frpc.toml files. Edit frpc.toml and add the following content to the file: The [[proxies]] code block above means forwarding the local port 22 through the public IP port 1022. To put it more clearly, you can access the local port 22 on the intranet through the public network port 1022. Note: This port 1022 needs to be opened on the VPS firewall. Configure the client systemd to manage frpc and execute the following command to create the frpc.service file. And add the following content to the file: Execute the following commands to enable the bootloader and start the service. Run the following command to check whether the client status is normal. If the service is not active, check the log. frpc status 4. Access management webBy default, the dashboard only listens to the local 127.0.0.1 address. If you use an intranet address, please modify the webServer.addr = "xxxx" configuration field. Server dashboard V. ConclusionThrough the introduction of this article, I believe you have a more comprehensive understanding of FRP. From basic installation and configuration to the use of advanced functions, FRP can meet your intranet penetration needs in different scenarios. If you are looking for an efficient and easy-to-use intranet penetration tool, FRP is undoubtedly a very good choice. Hurry up and try it, so that your remote access is no longer restricted! |
<<: Five API Gateway Technology Options
>>: See if you can handle this kind of interview. How does TCP transmit reliably?
Since the Industrial Revolution, wave after wave ...
A group friend asked about the information about ...
G-core (gcorelabs) has been shared several times ...
At present, the domestic network operation and ma...
Since 2018, India has made great strides in advan...
Beijing time, April 16th morning news, the larges...
background Technology, life, opinions, originalit...
At present, the informatization construction of c...
He tells the story of how he used an internet cab...
Do you feel that the current 4G network speed is ...
HostDare also launched this year's Black Frid...
5G has become the focus of major exhibitions, but...
The government envisions making India a $5 trilli...
The information about RackNerd providing AMD Ryze...
[51CTO.com Quick Translation] Is the messaging pl...