RDP远程桌面 + FRP内网穿透

服务端

  • frps.ini
[common]
bind_port = 7000
  • 后台运行
wget https://github.com/fatedier/frp/releases/download/v0.22.0/frp_0.22.0_linux_amd64.tar.gz
nohub frp_0.22.0_linux_amd64/frps -c frp_0.22.0_linux_amd64/frps.ini & &> /dev/null

win client

[common]
server_addr = 11.12.14.14         # 上面服务器的ip
server_port = 7000                # 上面配服务端配置的端口
[rdp]
type = tcp
local_ip = 127.0.0.1           
local_port = 3389                 # 本地实际端口 
remote_port = 1234                # 服务端端口,server_ip:1234 --> 127.0.0.1:3389
  • 自启服务

创建一个bat脚本 auto_frp.bat ,保存以下内容,根据实际情况替换

@echo off  
start  "C:\Windows\System32\cmd.exe"   
cd C:\Soft\frp\
frpc -c frpc.ini
exit

添加到服务自启,cmd执行以下命令,binPath为绝对路径

sc create frp binPath=C:\Soft\frp\auto_frp.bat start=auto

参考

Copyright © axboy.cn 2019 all right reserved,powered by Gitbook该文件修订时间: 2020-07-27 03:53:54

results matching ""

    No results matching ""