frpc - 被控端

Windows RDP

frpc.toml

serverAddr = "8.137.15.230"
serverPort = 8000
# 如果默认的 STUN 服务器不可用,可以配置一个新的 STUN 服务器
natHoleStunServer = "stun.qq.com:3478"
auth.method = "token"
auth.token = "frpPassW0rd."

[[proxies]]
name = "p2p_rdp"
type = "xtcp"
# 只有共享密钥 (secretKey) 与服务器端一致的用户才能访问该服务
secretKey = "frp.3389"
localIP = "127.0.0.1"
localPort = 3389

启动方式 - Windows定时任务

start_frpc.bat

Win11需要点击“更改用户或组”,输入 SYSTEM,使用SYSTEM用户运行

定时任务的“常规” “触发器” “操作” 按上图配置,其余项按需配置即可

addAliyunSecGroup.bat (增加阿里云安全组规则)

此方法使用阿里云CLI进行更新,需要先安装“阿里云CLI”,并配置AccessKey凭证,文档见:

https://help.aliyun.com/document_detail/121510.html

https://help.aliyun.com/document_detail/121258.html#section-5pj-p7j-06z

Linux SSH

frpc.toml

启动方式 - frpc.service(systemd方式)

启动方式 - Docker

Dockerfile

启动命令

Last updated