This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10087|Reply: 11

[Practice] Use FRP intranet penetration to achieve remote desktop connection

[Copy link]
Posted on 11/19/2022 8:24:56 PM | | | |
Demand: Friends thinkRemotely access your company's computers from your home(If the company has a public IP address, you can ask the network administrator to create a new port mapped to your private computer, and you can directly use Microsoft mstsc to access it in the form of a public IP: port), after understanding the needs of friends, if you use TeamViewer, Sunflower feels that it is not stable and safe, and see that the network is through FRP intranet penetration to achieve remote desktop connection access, but you need to purchase a server to build FRP services.

First, purchase a cloud server with CentOS7 and install Docker service. (omitted)

Log in to the server and create a new one/docker/frp/frps.iniThe configuration file is as follows:

Create a new FRP service container with the following command:

After successful execution, we can access the FRP dashboard through port 7002 as shown below:



Download the FRP client to your company computer and download itThe client version should be the same as the server version, the download address is as follows:

The hyperlink login is visible.

Unzip the package, and then modify the frpc.ini configuration as follows:

Then execute the command in the current folder as follows:



Prompt:If an error is reported at startup, delete the comment!!!

Connect the mobile phone WiFi network to simulate the company network environment on the FRP client computer, and then use the remote desktop connection tool to access port 7003 of the FRP service public IP address, and find that it can be accessed normally, as shown in the figure below:



If you want to boot up, you can use WinSW to set frpcRegister as a Windows service, download winsw address:The hyperlink login is visible.

Deploy applications as Windows services through NSSM
https://www.itsvse.com/thread-9551-1-1.html

Move WinSW.NET461.exe to the frpc.exe directory and create a new winsw.xml file with the following configuration:

Finally, run the CMD command as an administrator, go to the frpc.exe directory, install and start the service, and the command is as follows:

(End)





Previous:Docker uses Macvlan to set an independent IP address for containers
Next:SQL Server query execution result column field data type
 Landlord| Posted on 11/4/2023 7:24:42 PM |
Managed via init.d

Write the frpc file to /etc/init.d/frpc and add the execution permission: chmod +x /etc/init.d/frpc

Add boot boot:


Start: service frpc start
Stop: service frpc stop
Restart: service frpc restart
Check the status: Service FRPC status
 Landlord| Posted on 9/20/2024 12:03:21 PM |
frps latest 0.60 configuration, using the toml configuration file


frps.toml is configured as follows:

The frpc client frpc.toml is configured as follows:



 Landlord| Posted on 8/27/2023 5:46:19 PM |
Raspberry Pi startup may give the following errors:


[service.go:133] login to server failed: dial tcp xxxxx: connect: network is unreachable
frpc.service script is as follows:

Download Address:The hyperlink login is visible.
Posted on 11/22/2022 8:59:15 PM |
See if the boss's method is okay
Posted on 11/28/2022 7:32:20 PM |
Learn to learn
Posted on 1/4/2023 5:35:38 PM |
Learn to learn! ~~~~~~~~~
Posted on 3/12/2023 9:34:17 AM |
Learn to learn
 Landlord| Posted on 8/25/2023 7:07:07 PM |
 Landlord| Posted on 9/2/2023 1:04:03 PM |
FRP over https is suitable for API interfaces and not very well for websites.

frps.ini Add the following configurations:

frpc.ini Add the following configurations:



 Landlord| Posted on 11/4/2023 8:02:37 PM |
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com