Update README.md

This commit is contained in:
Gui.H 2019-12-20 22:24:40 +08:00 committed by GitHub
parent b5ea76eac7
commit 76e174cf5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@
## 已实现功能
- 通过自定义域名访问部署于内网的 web 服务
- ssh远程内网主机
# 快速使用
## 配置服务端和客户端程序
@ -26,6 +26,36 @@
- 你需要新增一个域名地址的DNS解析类型为`A`,名称为 `*` , ipv4地址为 `110.110.110.110` ,这样 `*.test.cc`的域名均会指向`110.110.110.110`的服务器,由于`FastTunnel`默认监听的http端口为1270所以要访问`http://test.test.cc:1270`
- 如果不希望每次访问都带上端口号,可以通过`nginx`转发实现。
## ssh远程内网主机
客户端配置如下内网有两台主机ip如下:
```
"ClientSettings": {
"Common": {
"ServerAddr": "xxx.xxx.xxx.xxx",
"ServerPort": 1271
},
"SSH": [
{
"LocalIp": "192.168.0.100",
"LocalPort": 22,
"RemotePort": 12701
},
{
"LocalIp": "192.168.0.101",
"LocalPort": 22,
"RemotePort": 12702
}
]
}
```
假设内网主机的用户名为 root服务器ip为x.x.x.x访问内网的两个主机分别如下
```
ssh -oPort=12701 root@x.x.x.x
```
```
ssh -oPort=12702 root@x.x.x.x
```
# 开发
- 安装 `vs2019`
- 安装 `dotnetcore runtime&sdk 3.1` 或以上版本