[下载frp](https://github.com/fatedier/frp)
#### 服务端配置(有公网ip的服务器)
frps.ini
```sh
[common]
bind_port = 10000
```
启动
```sh
/opt/frp/frps -c /opt/frp/frps.ini
```
#### 客户端配置
frpc.ini
```sh
[common]
server_addr = x.x.x.x
server_port = 10000
[ssh]
type = tcp
local_ip = 127.0.0.1 #本地ip
local_port = 8080 #本地服务端口
remote_port = 6060 #服务器提供转发的端口
```
启动
```sh
/opt/frp/frpc -c /opt/frp/frpc.ini
```