差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
| frp:frpc [2026/01/19 19:37] – admin | frp:frpc [2026/07/21 00:17] (当前版本) – [配置模板二] admin | ||
|---|---|---|---|
| 行 5: | 行 5: | ||
| {{ : | {{ : | ||
| - | 配置文件一: | + | ===== 配置文件一 |
| ``` | ``` | ||
| user = " | user = " | ||
| 行 31: | 行 32: | ||
| ``` | ``` | ||
| - | 配置模板二: | + | ===== 配置模板二 |
| 带第三方鉴权 | 带第三方鉴权 | ||
| 行 56: | 行 57: | ||
| localPort = 8080 | localPort = 8080 | ||
| subdomain = " | subdomain = " | ||
| + | |||
| + | [[proxies]] | ||
| + | name = " | ||
| + | type = " | ||
| + | localIP = " | ||
| + | localPort = 22 | ||
| + | remotePort = 6000 | ||
| ``` | ``` | ||
| + | **设置tcp穿透的时候,运行frps的服务器防火墙要放行remotePort对应的端口,以安装了宝塔的阿里服务器为例,要放行阿里防火墙和宝塔防火墙内对应的端口。** | ||
| + | |||
| + | ``` | ||
| + | 阿里防火墙端口区间书写方式:2200/ | ||
| + | 宝塔防火墙端口区间书写方式:2200-2299 | ||
| + | ``` | ||
| + | |||
| + | ===== 配置模板三 ===== | ||
| + | |||
| + | ``` | ||
| + | user = " | ||
| + | |||
| + | serverAddr = " | ||
| + | serverPort = 7000 | ||
| + | |||
| + | auth.method = ' | ||
| + | auth.token = ' | ||
| + | |||
| + | webServer.addr = " | ||
| + | webServer.port = 7400 | ||
| + | webServer.user = " | ||
| + | webServer.password = " | ||
| + | |||
| + | transport.protocol = " | ||
| + | transport.dialServerKeepalive = 7200 | ||
| + | transport.heartbeatInterval | ||
| + | transport.heartbeatTimeout = 100 | ||
| + | transport.tcpMux = true | ||
| + | transport.tcpMuxKeepaliveInterval = 40 | ||
| + | |||
| + | [[proxies]] | ||
| + | name = " | ||
| + | type = " | ||
| + | localIP = " | ||
| + | localPort = 7400 | ||
| + | subdomain = " | ||
| + | |||
| + | [[proxies]] | ||
| + | name = " | ||
| + | type = " | ||
| + | localIP = " | ||
| + | localPort = 5666 | ||
| + | subdomain = " | ||
| + | |||
| + | [[proxies]] | ||
| + | name = " | ||
| + | type = " | ||
| + | localIP = " | ||
| + | localPort = 22 | ||
| + | remotePort = 2222 | ||
| + | |||
| + | [[proxies]] | ||
| + | name = " | ||
| + | type = " | ||
| + | localIP = " | ||
| + | localPort = 22 | ||
| + | remotePort = 2200 | ||
| + | |||
| + | ``` | ||