technology-note/其他各种/6.免费frp内网穿透.md
2019-04-30 10:41:53 +08:00

51 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: '2019-04-02-10-58'
date: '2019/04/02 10:58'
title: '免费frp内网穿透'
tags: ['frp', '免费', '内网穿透']
categories:
- '其他'
---
  公司调试需要公网 IP遂在网上找了个免费的内网穿透--[http://ku2.kerwin.cn/](http://ku2.kerwin.cn/)。延迟还行一百多毫秒。
# 使用方法
## 下载软件
  首先下载 frp下载地址[https://github.com/fatedier/frp/releases](https://github.com/fatedier/frp/releases),选择对应的平台和版本,主要版本一定要和网站上的一致。
<!-- more -->
## 编写配置文件
&emsp;&emsp;解压压缩包后编辑 frpc.ini
```properties
[common]
server_addr = frp.kerwin.cn
server_port = 7000
token = kerwin.cn
# 名称随意,只是一个标识
user = fleyx
[web]
type = http
# 本地ip地址
local_ip = 127.0.0.1
# 要穿透的端口
local_port = 8082
# 可以将自己的域名cname到ku2.kerwin.cn
# 如果没有自己的域名那也是可以的可以在frp页面看别人的域名然后在定义locations就可以将此路径下的请求发送到本机
# 下面这个域名就是别人的,然后我顺便借用下
custom_domains = ck1.ck2014.win
# 穿透路径
locations = /fleyx
```
## 启动
&emsp;&emsp;启动命令如下:
```bash
./frpc -c frpc.ini
```