mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2024-09-20 23:48:30 +08:00
56 lines
1.6 KiB
JSON
56 lines
1.6 KiB
JSON
{
|
||
"Logging": {
|
||
"LogLevel": {
|
||
// Trace Debug Information Warning Error
|
||
"Default": "Information",
|
||
"Microsoft": "Warning",
|
||
"Microsoft.Hosting.Lifetime": "Information"
|
||
}
|
||
},
|
||
"EnableFileLog": false,
|
||
"ClientSettings": {
|
||
"Server": {
|
||
// 与服务端通讯协议
|
||
"Protocol": "ws", // ws(http)或wss(https)
|
||
// 服务端ip/域名
|
||
"ServerAddr": "test.cc",
|
||
// 服务端监听的通信端口
|
||
"ServerPort": 1270
|
||
},
|
||
|
||
// 服务端Token验证
|
||
"Token": "TOKEN_FOR_CLIENT_AUTHENTICATION",
|
||
/**
|
||
* 通过自定义域名访问内网服务,需要有自己的域名
|
||
* 可穿透所有TCP上层协议
|
||
*/
|
||
"Webs": [
|
||
{
|
||
// 本地站点所在内网的ip
|
||
"LocalIp": "127.0.0.1",
|
||
// 站点监听的端口号
|
||
"LocalPort": 8090,
|
||
|
||
// 子域名, 访问本站点时的url为 http://{SubDomain}.{WebDomain}:{WebProxyPort}/
|
||
"SubDomain": "test" // test.test.cc
|
||
|
||
// 附加域名,需要解析域名A记录至服务的ip地址)
|
||
// "WWW": [ "www.abc.com", "test111.test.cc" ]
|
||
}
|
||
],
|
||
|
||
/**
|
||
* 端口转发 通过专用端口代理,不需要有自己的域名
|
||
* 可穿透所有TCP上层协议
|
||
* 远程linux示例:#ssh -oPort=12701 {root}@{ServerAddr} ServerAddr 填入服务端ip,root对应内网用户名
|
||
* 通过服务端返回的访问方式进行访问即可
|
||
*/
|
||
"Forwards": [
|
||
{
|
||
"LocalIp": "127.0.0.1",
|
||
"LocalPort": 3389, // windows远程桌面端口为3389
|
||
"RemotePort": 1274 // 访问 服务端ip:1274 即可实现远程window桌面
|
||
}
|
||
]
|
||
}
|
||
} |