实现server端框架

This commit is contained in:
lwch
2021-07-30 17:26:29 +08:00
parent 04de375c54
commit 3c5684d57e
14 changed files with 1126 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
id: this # 客户端ID
server: 127.0.0.1:6154 # 服务器地址
secret: 0123456789 # 预共享密钥
tunnel:
- name: rdp # 链路名称
target: that # 目标客户端ID
type: tcp # 连接类型tcp或udp
local_addr: 0.0.0.0 # 本地监听地址
local_port: 3389 # 本地监听端口号
remote_addr: 127.0.0.1 # 目标客户端连接地址
remote_port: 3389 # 目标客户端连接端口号
+5
View File
@@ -0,0 +1,5 @@
listen: 6154 # 监听端口号
secret: 0123456789 # 预共享密钥
tls:
key: /dir/to/tls/key/file # tls密钥
crt: /dir/to/tls/crt/file # tls证书