Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Leviathan1995 committed Jan 30, 2022
1 parent 456e47d commit bade958
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Expand Up @@ -67,14 +67,22 @@
{
"ServerIP" : "0.0.0.0", # 公网服务器监听地址
"ServerPort" : 1234, # 公网服务器监听端口, 该端口用来与家庭服务器/内网主机建立通信隧道
"MappingPort" : [ # 端口映射规则
# "公网端口:内网服务器 ID: 内网映射端口"
"5000:1:22", # 即访问公网服务器的 5000 端口等于直接访问 ID 为 1 的家庭服务器/内网主机的 22 端口
"5002:2:22" # 即访问公网服务器的 5002 端口等于直接访问 ID 为 2 的家庭服务器/内网主机的 22 端口
"Rules" : [ # 端口映射规则
{
# 即访问公网服务器的 5000 端口等于直接访问 ID 为 1 的家庭服务器/内网主机的 22 端口
"ClientID" : 1, # Client ID, 在 .spleen-client.json 中配置
"LocalPort" : 5000, # 公网端口
"MappingPort" : 22 # 内网转发端口
},
{
# 即访问公网服务器的 5001 端口等于直接访问 ID 为 2 的家庭服务器/内网主机的 443 端口
"ClientID" : 2, # Client ID, 在 .spleen-client.json 中配置
"LocalPort" : 5001, # 公网端口
"MappingPort" : 443 # 内网转发端口
}
]
}


# 启动
> ./spleen-server -c .server.json
2022/01/12 19:39:39 The server listening for the intranet server at 0.0.0.0:1234 successful.
Expand Down

0 comments on commit bade958

Please sign in to comment.