mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2024-09-20 23:48:30 +08:00
52 lines
1.3 KiB
JSON
52 lines
1.3 KiB
JSON
{
|
||
"Logging": {
|
||
"LogLevel": {
|
||
// Trace Debug Information Warning Error
|
||
"Default": "Information",
|
||
"Microsoft": "Warning",
|
||
"Microsoft.Hosting.Lifetime": "Information"
|
||
}
|
||
},
|
||
"ClientSettings": {
|
||
"Common": {
|
||
// 服务端公网ip, 对应服务端配置文件的 BindAddr,支持域名
|
||
"ServerAddr": "127.0.0.1",
|
||
|
||
// 服务端通信端口,对应服务端配置文件的 BindPort
|
||
"ServerPort": 1271
|
||
},
|
||
"Webs": [
|
||
{
|
||
// 本地站点所在内网的ip
|
||
"LocalIp": "127.0.0.1",
|
||
|
||
// 站点监听的端口号
|
||
"LocalPort": 80,
|
||
|
||
// 子域名, 访问本站点时的url为 http://{SubDomain}.{Domain}:{ProxyPort_HTTP}/
|
||
"SubDomain": "test", // test.test.cc
|
||
|
||
// 个人域名(需要解析域名A记录至服务的ip地址)
|
||
"WWW": [ "www.abc.com","test111.test.cc" ]
|
||
}
|
||
],
|
||
|
||
/**
|
||
* ssh穿透,ssh访问内网主机
|
||
* 访问方式 #ssh -oPort=12701 {root}@{ServerAddr}
|
||
* ServerAddr 填入服务端ip,root对应内网用户名
|
||
*/
|
||
"SSH": [
|
||
{
|
||
"LocalIp": "127.0.0.1",
|
||
"LocalPort": 88,
|
||
"RemotePort": 9999
|
||
},
|
||
{
|
||
"LocalIp": "192.168.0.91",
|
||
"LocalPort": 3389, // windows远程桌面端口为3389
|
||
"RemotePort": 1274
|
||
}
|
||
]
|
||
}
|
||
} |