Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
企猫商务
frp
提交
63e6e0dc
F
frp
项目概览
企猫商务
/
frp
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
frp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
63e6e0dc
编写于
1月 18, 2018
作者:
F
fatedier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
doc: update
上级
4d4a738a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
3 deletion
+20
-3
README.md
README.md
+6
-1
README_zh.md
README_zh.md
+7
-2
conf/frpc_full.ini
conf/frpc_full.ini
+7
-0
未找到文件。
README.md
浏览文件 @
63e6e0dc
...
...
@@ -29,6 +29,7 @@ frp is a fast reverse proxy to help you expose a local server behind a NAT or fi
*
[
Authentication
](
#authentication
)
*
[
Encryption and Compression
](
#encryption-and-compression
)
*
[
Hot-Reload frpc configuration
](
#hot-reload-frpc-configuration
)
*
[
Get proxy status from client
](
#get-proxy-status-from-client
)
*
[
Privilege Mode
](
#privilege-mode
)
*
[
Port White List
](
#port-white-list
)
*
[
TCP Stream Multiplexing
](
#tcp-stream-multiplexing
)
...
...
@@ -386,10 +387,14 @@ admin_addr = 127.0.0.1
admin_port
=
7400
```
Then run command
`frpc
-c ./frpc.ini --reload
`
and wait for about 10 seconds to let frpc create or update or delete proxies.
Then run command
`frpc
reload -c ./frpc.ini
`
and wait for about 10 seconds to let frpc create or update or delete proxies.
**Note that parameters in [common] section won't be modified except 'start' now.**
### Get proxy status from client
Use
`frpc status -c ./frpc.ini`
to get status of all proxies. You need to set admin port in frpc's configure file.
### Privilege Mode
Privilege mode is the default and only mode support in frp since v0.10.0. All proxy configurations are set in client.
...
...
README_zh.md
浏览文件 @
63e6e0dc
...
...
@@ -27,6 +27,7 @@ frp 是一个可用于内网穿透的高性能的反向代理应用,支持 tcp
*
[
身份验证
](
#身份验证
)
*
[
加密与压缩
](
#加密与压缩
)
*
[
客户端热加载配置文件
](
#客户端热加载配置文件
)
*
[
客户端查看代理状态
](
#客户端查看代理状态
)
*
[
特权模式
](
#特权模式
)
*
[
端口白名单
](
#端口白名单
)
*
[
TCP 多路复用
](
#tcp-多路复用
)
...
...
@@ -396,7 +397,7 @@ use_compression = true
### 客户端热加载配置文件
当修改了 frpc 中的代理配置,可以通过
`frpc
--
reload`
命令来动态加载配置文件,通常会在 10 秒内完成代理的更新。
当修改了 frpc 中的代理配置,可以通过
`frpc reload`
命令来动态加载配置文件,通常会在 10 秒内完成代理的更新。
启用此功能需要在 frpc 中启用 admin 端口,用于提供 API 服务。配置如下:
...
...
@@ -409,12 +410,16 @@ admin_port = 7400
之后执行重启命令:
`frpc
-c ./frpc.ini --reload
`
`frpc
reload -c ./frpc.ini
`
等待一段时间后客户端会根据新的配置文件创建、更新、删除代理。
**需要注意的是,[common] 中的参数除了 start 外目前无法被修改。**
### 客户端查看代理状态
frpc 支持通过
`frpc status -c ./frpc.ini`
命令查看代理的状态信息,此功能需要在 frpc 中配置 admin 端口。
### 特权模式
由于从 v0.10.0 版本开始,所有 proxy 都在客户端配置,原先的特权模式是目前唯一支持的模式。
...
...
conf/frpc_full.ini
浏览文件 @
63e6e0dc
...
...
@@ -66,6 +66,13 @@ use_compression = false
# remote port listen by frps
remote_port
=
6001
[ssh_random]
type
=
tcp
local_ip
=
127.0.0.1
local_port
=
22
# if remote_port is 0, frps will assgin a random port for you
remote_port
=
0
[dns]
type
=
udp
local_ip
=
114.114.114.114
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录