29 lines
798 B
Markdown
29 lines
798 B
Markdown
---
|
||
id: frpserver
|
||
title: "FRP 服务器"
|
||
type: entity
|
||
tags: [frp, networking, server]
|
||
date: 2026-04-16
|
||
---
|
||
|
||
## Definition
|
||
FRPServer 是 FRP 的服务器端组件(frps),运行在有公网 IP 的服务器上,负责接收来自 FRP 客户端的连接并转发流量到目标服务。
|
||
|
||
## Key Properties
|
||
- 程序名:frps
|
||
- 配置文件:frps.toml
|
||
- 默认端口:7000(控制连接)
|
||
- 认证方式:token
|
||
|
||
## Configuration Parameters
|
||
| 参数 | 说明 |
|
||
|------|------|
|
||
| serverAddr | 服务器监听地址 |
|
||
| serverPort | 服务器监听端口 |
|
||
| auth.token | 认证 token |
|
||
| vhostHttpPort | HTTP 虚拟主机端口 |
|
||
| vhostHttpsPort | HTTPS 虚拟主机端口 |
|
||
|
||
## Connections
|
||
- [[FRPServer]] ← runs_on ← [[VPS]]
|
||
- [[FRPServer]] ← accepts_connections_from ← [[FRPClient]] |