Skip to content

Instantly share code, notes, and snippets.

@novohool
Last active June 16, 2018 13:13
Show Gist options
  • Save novohool/b6f1d51f1be77963d712f4629ddd6977 to your computer and use it in GitHub Desktop.
Save novohool/b6f1d51f1be77963d712f4629ddd6977 to your computer and use it in GitHub Desktop.
frp+云服务器实现内网向外网提供稳定服务
frp+云服务器实现内网向外网提供稳定服务
避免使用花生壳或者ddns由内网向外网提供服务,这两者的缺点是需要向isp申请外网ip,动态ip不稳定等。
## 项目地址
```
https://github.com/fatedier/frp/blob/master/README_zh.md
```
配置比较简单
服务端frps配置:
```
[common]
bind_port = 1700
vhost_http_port = 8888
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
token = 123456
```
后台运行
nohup ./frps -c ./frps.ini > frp.log 2>&1 &
客户端
```
[common]
server_addr = ip
server_port = 1700
token = 123456
[web]
type = http
local_port = 80
custom_domains = aaa.com
```
当然还有很多类似的应用,功能更强大,还能连到外网,有空再了解。
```
例如:https://github.com/yincongcyincong/proxy-web/releases
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment