FRP 下载
https://github.com/fatedier/frp/releases
FRP 文档
服务 Service 配置
编辑 frps.ini
[common]
# 服务端口
bind_port = 7000
# 认证秘钥
token = 26
# 关闭多路复用优化
tcp_mux = false
# 后台端口 http://127.0.0.1:7001
dashboard_port = 7001
# 后台管理员账号
dashboard_user = Administrator
# 后台管理员密码
dashboard_pwd = oooo
# 命令启动 服务
frps.exe -c frps.ini
客户端配置
编辑 frpc.ini
[common]
# 服务器IP
server_addr = 47.255.255.255
# 服务器端口
server_port = 7000
# 服务器token
token = 26
# 关闭多路复用
tcp_mux = false
# 名称 任意
[RDP]
# 连接类型
type = tcp
# 本机IP
local_ip = 127.0.0.1
# 需要映射的端口 这里远程连接默认 3389
local_port = 3389
# 远程端口 实际使用的
remote_port = 7002
# 修改宽带上限设置
bandwidth_limit = 100MB
frpc.exe -c frpc.ini
设置开机自启动 cmd 输入 shell:startup 新建 bat 写入下面命令 开机系统会自动运行
注意 bat文件格式为 ANSI 不然会中文乱码
先到 home 根路径下 执行 启动命令 超时则等待5秒重新执行 死循环
Service 运行同理
:home
c:\Users\Administrator\Desktop\file\安装包\frp_0.38.0_windows_amd64\frp_0.38.0_windows_amd64\frpc.exe -c c:\Users\Administrator\Desktop\file\安装包\frp_0.38.0_windows_amd64\frp_0.38.0_windows_amd64\frpc.ini
choice /T 5 /C ync /CS /D y /n
goto home
NSSM服务配置 演示为 client 端 service 同理
下载 推荐下载:nssm 2.24-101-g897c7ad 版本
NSSM配置成开机自启 将frp.exe 及 配置 ini 放至同一目录下
frpc.bat 配置与上面同理
:home
frpc.exe -c frpc.ini
choice /T 5 /C ync /CS /D y /n
goto home
nssm.bat
nssm install frpc
然后点击 nssm.bat Path 选择 frpc.bat 点击 Install service 即可 最后去服务找到 frpc 启动即可 默认是Install 不启动状态
防止 Windows 远程连接 密码 被暴力破解 建议修改管理员账号 和 使用复杂密码 gpedit.msc
解决win10家庭版没有远程桌面功能
https://blog.csdn.net/weixin_41004350/article/details/89329124
推荐直接升级 Windows专业版 上诉方案终究不稳定 电脑更新后存在不稳定性