mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
实现server端框架
This commit is contained in:
@@ -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 # 目标客户端连接端口号
|
||||
@@ -0,0 +1,5 @@
|
||||
listen: 6154 # 监听端口号
|
||||
secret: 0123456789 # 预共享密钥
|
||||
tls:
|
||||
key: /dir/to/tls/key/file # tls密钥
|
||||
crt: /dir/to/tls/crt/file # tls证书
|
||||
Reference in New Issue
Block a user