Configure FRP to achieve Intranet penetration
FRP: github.com/fatedier/fr…
First, the role of FRP
Use the machine behind the Intranet or firewall to provide HTTP or HTTPS services for the external network.
For HTTP, THE HTTPS service supports domain-based virtual hosts and custom domain name binding, enabling multiple domain names to share port 80.
The devices behind the Intranet or firewall can provide TCP and UDP services on the external network. For example, you can access the hosts on the Intranet through SSH at home.
2. Install FRP
1. Github download: github.com/fatedier/fr…
Download a copy for both the public network and Intranet servers.
Frp_0. 33.0 _windows_amd64. Zip
2. Decompress frp_0.330._windows_amd64. zip to any directory
All files that start with FRPC are client files, so all files are deleted. Our server only needs files that start with FRPS
Ini (I use notepad++ editor, notepad can also be used) note that the configuration file does not support comments, please do not copy Chinese characters in
[common]
bind_port = 7000# port bound to the client for communication vhost_http_port =6081# custom port number for accessing the client Web serviceCopy the code
Exe -c./frps.ini. The system displays a warning about network firewall security. Click Permit
The server configuration is complete!
5, configure the client (Intranet server), delete the FRPS file first, then configure, edit frpc.ini configuration file does not support comments, please do not copy Chinese characters into it
[common]
server_addr = 155.94169.143.# public network server IP server_port =7000[yclj] type = TCP local_ip =127.0. 01.
local_port = 3389 # 3389Is the Windows remote connection port remote_port =24567# Remote server port (custom)Copy the code
./frpc.exe -c ./frpc.ini
Copy the code
IP: 155.94.169.143:24567 (this is the server open port, mapping local 3389)
Third, the end
1. If a message is displayed indicating that access is denied when the client connects to the server, the server needs to enable firewall ports (except in the production environment).
2. For other functions, please read the FRP Chinese documentation: github.com/fatedier/fr…