显示页面过去修订反向链接回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 ====== FRPC ====== [[technology:onkey#frpc|一键脚本]] {{ :undefined:frp_s5s7m.tar.gz |一键脚本源码 2026.1.19}} ===== 配置文件一 ===== ``` user = "TeslaMate" serverAddr = "sss.ax-cloud.cn" serverPort = 7000 auth.method = 'token' auth.token = 'ZhLz*******kMJgazc' transport.protocol = "tcp" # 特斯拉伴侣控制台 [[proxies]] name = "g12ca56552212" type = "http" localIP = "127.0.0.1" localPort = 3000 subdomain = "mate-12ca56552212" # 特斯拉API [[proxies]] name = "m12ca56552212" type = "http" localIP = "127.0.0.1" localPort = 8080 subdomain = "api-12ca56552212" ``` ===== 配置模板二 ===== 带第三方鉴权 ``` serverAddr = "sss.ax-cloud.cn" serverPort = 7000 user = "123" metadatas.token = "123" # 特斯拉伴侣控制台 [[proxies]] name = "g12ca56552212" type = "http" localIP = "127.0.0.1" localPort = 3000 subdomain = "mate-12ca56552212" # 特斯拉API [[proxies]] name = "m12ca56552212" type = "http" localIP = "127.0.0.1" localPort = 8080 subdomain = "api-12ca56552212" [[proxies]] name = "ssh" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 ``` **设置tcp穿透的时候,运行frps的服务器防火墙要放行remotePort对应的端口,以安装了宝塔的阿里服务器为例,要放行阿里防火墙和宝塔防火墙内对应的端口。** ``` 阿里防火墙端口区间书写方式:2200/2299 宝塔防火墙端口区间书写方式:2200-2299 ``` ===== 配置模板三 ===== ``` user = "Tcm" serverAddr = "gmijcs.top" serverPort = 7000 auth.method = 'token' auth.token = 'zkVi78KvQ8Nn4Exj37DdeHsgLwhKqSZb' webServer.addr = "0.0.0.0" webServer.port = 7400 webServer.user = "admin" webServer.password = "tcm-850412" transport.protocol = "tcp" transport.dialServerKeepalive = 7200 transport.heartbeatInterval = 20 transport.heartbeatTimeout = 100 transport.tcpMux = true transport.tcpMuxKeepaliveInterval = 40 [[proxies]] name = "frpc_admin-http" type = "http" localIP = "127.0.0.1" localPort = 7400 subdomain = "frpc" [[proxies]] name = "fnos-http" type = "http" localIP = "192.168.9.108" localPort = 5666 subdomain = "fnos" [[proxies]] name = "fnos-ssh" type = "tcp" localIP = "192.168.9.108" localPort = 22 remotePort = 2222 [[proxies]] name = "debian_frpc-ssh" type = "tcp" localIP = "192.168.9.122" localPort = 22 remotePort = 2200 ``` frp/frpc.txt 最后更改: 2026/07/21 00:17由 admin