mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
Update README.md
This commit is contained in:
parent
b5ea76eac7
commit
76e174cf5e
32
README.md
32
README.md
|
@ -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` 或以上版本
|
||||
|
|
Loading…
Reference in New Issue
Block a user