mirror of
https://github.com/lwch/natpass.git
synced 2024-04-21 12:41:54 +00:00
准备打包
This commit is contained in:
+6
-1
@@ -118,4 +118,9 @@
|
||||
|
||||
# v0.8.6
|
||||
|
||||
1. 升级rdesktop库,支持libx11库的静态连接
|
||||
1. 升级rdesktop库,支持libx11库的静态连接
|
||||
|
||||
# v0.9.0
|
||||
|
||||
1. 远程桌面支持macos系统
|
||||
2. 修改部署文档
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION=0.8.6
|
||||
VERSION=0.9.0
|
||||
|
||||
DOCKER_BUILDKIT=1 docker build -t natpass -f contrib/build/Dockerfile .
|
||||
docker run --rm \
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION=0.8.6
|
||||
VERSION=0.9.0
|
||||
|
||||
DOCKER_BUILDKIT=1 docker build -t natpass -f contrib/build/Dockerfile .
|
||||
docker run --rm \
|
||||
|
||||
+9
-19
@@ -1,43 +1,33 @@
|
||||
# 开始使用
|
||||
|
||||
以下示例均在*debian*系统下进行,其他系统请自行查找相关系统命令,
|
||||
windows系统可通过services.msc命令进入系统服务管理面板进行服务管理。
|
||||
部署过程共分为三部分:服务器端、受控端和控制端,下面以*debian*系统进行举例。
|
||||
|
||||
## 服务器端部署
|
||||
|
||||
1. 在服务器上[下载](https://github.com/lwch/natpass/releases)并解压到任意目录
|
||||
2. 使用以下命令将np-svr注册为系统服务,其中-conf参数后跟配置文件所在路径,-user参数后为程序启动身份(建议使用nobody身份启动)
|
||||
2. 使用以下命令启动服务器端程序
|
||||
|
||||
sudo ./np-svr -conf server.yaml -action install -user nobody
|
||||
3. 启动服务
|
||||
sudo ./np-svr -conf server.yaml
|
||||
|
||||
sudo systemctl start np-svr
|
||||
|
||||
4. (可选)开放外网防火墙,默认端口6154
|
||||
3. (可选)开放外网防火墙,默认端口6154
|
||||
|
||||
## 受控端部署
|
||||
|
||||
1. 在受控端机器上[下载](https://github.com/lwch/natpass/releases)并解压到任意目录
|
||||
2. (可选)修改remote.yaml配置文件,修改*server*地址
|
||||
3. 使用以下命令将np-cli注册为系统服务,其中-conf参数后跟配置文件所在路径,-user参数后为程序启动身份
|
||||
3. 使用以下命令启动客户端程序
|
||||
|
||||
sudo ./np-cli -conf remote.yaml -action install -user `whoami`
|
||||
4. 启动服务
|
||||
|
||||
sudo systemctl start np-cli
|
||||
sudo ./np-cli -conf remote.yaml -user `whoami`
|
||||
|
||||
## 控制端部署
|
||||
|
||||
1. 在本地控制机上[下载](https://github.com/lwch/natpass/releases)并解压到任意目录
|
||||
2. (可选)修改local.yaml配置文件,修改*server*地址
|
||||
3. (可选)修改rule.d目录下的规则配置文件,[rule配置方法](rules.md)
|
||||
4. 使用以下命令将np-cli注册为系统服务,其中-conf参数后跟配置文件所在路径,-user参数后为程序启动身份(建议使用nobody身份启动)
|
||||
4. 使用以下命令启动客户端程序
|
||||
|
||||
sudo ./np-cli -conf local.yaml -action install -user nobody
|
||||
5. 启动服务
|
||||
|
||||
sudo systemctl start np-cli
|
||||
6. 在以上操作成功后即可在浏览器中通过local.yaml中配置的端口号进行访问,默认地址:
|
||||
sudo ./np-cli -conf local.yaml
|
||||
5. 在以上操作成功后即可在浏览器中通过local.yaml中配置的端口号进行访问,默认地址:
|
||||
|
||||
http://127.0.0.1:8080
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ require (
|
||||
github.com/kardianos/service v1.2.2-0.20220428125717-29f8c79c511b
|
||||
github.com/kisielk/errcheck v1.6.1 // indirect
|
||||
github.com/lwch/logging v0.0.0-20220322084100-ec48185d95ab
|
||||
github.com/lwch/rdesktop v1.0.1-0.20220701082114-9c04919d90e7
|
||||
github.com/lwch/rdesktop v1.1.0
|
||||
github.com/lwch/runtime v0.0.0-20190520054850-8c97e19e0c6d
|
||||
github.com/lwch/yaml v0.0.0-20211206085137-772f80e85a26
|
||||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
|
||||
golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b
|
||||
golang.org/x/sys v0.0.0-20220702020025-31831981b65f
|
||||
golang.org/x/text v0.3.7
|
||||
golang.org/x/tools v0.1.11 // indirect
|
||||
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
|
||||
|
||||
@@ -17,8 +17,8 @@ github.com/kisielk/errcheck v1.6.1/go.mod h1:nXw/i/MfnvRHqXa7XXmQMUB0oNFGuBrNI8d
|
||||
github.com/lwch/logging v0.0.0-20211115073745-0db19179db17/go.mod h1:aXQui5bsF/d4I+z6szuiBWY5m4y9t6pyZ2Q/sLgkBBg=
|
||||
github.com/lwch/logging v0.0.0-20220322084100-ec48185d95ab h1:zqeHtNXEg707Tq8gv5yE//rc6ue/SVSaUxlslbGBxrg=
|
||||
github.com/lwch/logging v0.0.0-20220322084100-ec48185d95ab/go.mod h1:aXQui5bsF/d4I+z6szuiBWY5m4y9t6pyZ2Q/sLgkBBg=
|
||||
github.com/lwch/rdesktop v1.0.1-0.20220701082114-9c04919d90e7 h1:8f+ThHLTK8SateCpHzWrHjBzDT/dxLALOS0TFuG7gSw=
|
||||
github.com/lwch/rdesktop v1.0.1-0.20220701082114-9c04919d90e7/go.mod h1:9AqIceehSOVcxwpXDPEdYchCyJXT99bd9PpsaTHALlg=
|
||||
github.com/lwch/rdesktop v1.1.0 h1:FdxzbfN/kypFtisW5PLROSUoY+eB5eR+ZCn94wPOaek=
|
||||
github.com/lwch/rdesktop v1.1.0/go.mod h1:9AqIceehSOVcxwpXDPEdYchCyJXT99bd9PpsaTHALlg=
|
||||
github.com/lwch/runtime v0.0.0-20190520054850-8c97e19e0c6d h1:Xg+zzPtvX22DaoJD5Bp0tqPdB8gn5WypghIJ4fluqiQ=
|
||||
github.com/lwch/runtime v0.0.0-20190520054850-8c97e19e0c6d/go.mod h1:uEt0zu1MDC7WnVvodPBGSYAD/KMKk0v36xE8UE5veM8=
|
||||
github.com/lwch/yaml v0.0.0-20211206085137-772f80e85a26 h1:sR3nbPhdfstDxYLp7c1EnsKH3z8+u+wgnhC3AI9/qf0=
|
||||
@@ -51,6 +51,8 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
|
||||
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b h1:2n253B2r0pYSmEV+UNCQoPfU/FiaizQEK5Gu4Bq4JE8=
|
||||
golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220702020025-31831981b65f h1:xdsejrW/0Wf2diT5CPp3XmKUNbr7Xvw8kYilQ+6qjRY=
|
||||
golang.org/x/sys v0.0.0-20220702020025-31831981b65f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
|
||||
Reference in New Issue
Block a user