Skip to content

Commit

Permalink
Improve basic examples for newbies (fatedier#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
cognition9144 authored Mar 26, 2020
1 parent 4c2afb5 commit a8efaee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Put `frpc` and `frpc.ini` onto your server B in LAN (that can't be connected fro

### Access your computer in LAN by SSH

1. Modify `frps.ini` on server A:
1. Modify `frps.ini` on server A and set the `bind_port` to be connected to frp clients:

```ini
# frps.ini
Expand All @@ -117,6 +117,8 @@ Put `frpc` and `frpc.ini` onto your server B in LAN (that can't be connected fro
remote_port = 6000
```

Note that `local_port` (listened on client) and `remote_port` (exposed on server) are for traffic goes in/out the frp system, whereas `server_port` is used between frps.

4. Start `frpc` on server B:

`./frpc -c ./frpc.ini`
Expand Down
7 changes: 5 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ master 分支用于发布稳定版本,dev 分支用于开发,您可以尝试

### 通过 ssh 访问公司内网机器

1. 修改 frps.ini 文件,这里使用了最简化的配置:
1. 修改 frps.ini 文件,这里使用了最简化的配置,设置了 frp 服务器端接收客户端流量的端口

```ini
# frps.ini
Expand All @@ -101,7 +101,7 @@ master 分支用于发布稳定版本,dev 分支用于开发,您可以尝试

`./frps -c ./frps.ini`

3. 修改 frpc.ini 文件,假设 frps 所在服务器的公网 IP 为 x.x.x.x
3. 修改 frpc.ini 文件,假设 frps 所在服务器的公网 IP 为 x.x.x.x

```ini
# frpc.ini
Expand All @@ -116,6 +116,9 @@ master 分支用于发布稳定版本,dev 分支用于开发,您可以尝试
remote_port = 6000
```

注意,`local_port`(客户端侦听)和 `remote_port`(服务器端暴露)是用来出入 frp 系统的两端,`server_port` 则是服务器用来与客户端通讯的。


4. 启动 frpc:

`./frpc -c ./frpc.ini`
Expand Down

0 comments on commit a8efaee

Please sign in to comment.