Ali cloud server using the Windows System Configuration frp implement RDP network penetration

1, frp server using the centos7.5 ecs Ali cloud system, the client is Taiwan windows10 system, do a RDP network with service penetration.

 

2, first to frp download servers (link: https://github.com/fatedier/frp/releases , a bit slow), I use the 0.30.0 version of frp_0.30.0_linux_amd64.tar.gz, using tar zxvf * ** command after extracting see frpc, frpc.ini, frps, frps.ini, _full.ini and other documents with the file c needs of the client, the server needs to file with the s, is full with all the parameters in the configuration file (advanced play), here because the client uses windows, so delete the file with c, and go directly to the download windows version of frp.

 This is the windows version of the file decompression

 

3, the configuration server side:

1) using the vi editor frps.ini file, you see the default on the following three lines (not to change):

 bind_port consistent to port services and client communications, on both sides.

 

2) Use nohup ./frps -c frps.ini & frps command server program running in the background, foreground direct knock ./frps -c frps.ini, running in the background when using, frps run logs are in the current directory nohup.out file, you can see the cat.

ps: I run twice. .

 

4, configure the client:

1) Open the file frpc.ini above screenshot with notepad, configured as follows:

  server_addr ip address is a public server, server_port same port number as the front end server, [rdp] reverse proxy name, type protocol type (RDP is the tcp), local_ip within the network client ip address, local_port of network client port (rdp default is 3389), (fill in when the port is connected to the public network ip) remote_port mapped port public network server.

 

2)使用frpc.exe -c frpc.ini命令启动客户端进程,并同步显示连接和控制信息:

  ps:对了,如果这里很久没有显示success,可能是服务器端开启了防火墙,可以使用systemctl stop firewalld关闭看看。

 

5、测试,使用另一台电脑打开远程桌面mstsc,输入公网ip:映射端口(如111.111.111.111:33890)后确定并输入客户端系统的账号和口令登录成功。

  

 安卓手机也可以进行测试,下载RD Client工具同样方法输入公网ip:端口后输入账号口令即可。

 

 更多详细配置可以查看官方中文手册:https://github.com/fatedier/frp/blob/master/README_zh.md

 

比如提供管理控制台的功能,frps.ini后面继续加上如下字段:

  使用公网ip:7500,输入账号和口令访问,界面如下:

 

 

 

Guess you like

Origin www.cnblogs.com/jasy/p/12275301.html