1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-10 01:34:58 +03:00

Cedar/Command: Add WgkAdd, WgkDelete and WgkEnum commands

WgkAdd command - Add a WireGuard key
Help for command "WgkAdd"

Purpose:
  Add a WireGuard key

Description:
  This command can be used to add a WireGuard key to the allowed key list.
  To execute this command, you must have VPN Server administrator privileges.

Usage:
  WgkAdd [key] [/HUB:hub] [/USER:user]

Parameters:
  key   - WireGuard key. Make sure it is the public one!
  /HUB  - Hub the key will be associated to.
  /USER - User the key will be associated to, in the specified hub.

================================================================================

WgkDelete command - Delete a WireGuard key
Help for command "WgkDelete"

Purpose:
  Delete a WireGuard key

Description:
  This command can be used to delete a WireGuard key from the allowed key list.
  To execute this command, you must have VPN Server administrator privileges.

Usage:
  WgkDelete [key]

Parameters:
  key - WireGuard key.

================================================================================

WgkEnum command - List the WireGuard keys
Help for command "WgkEnum"

Purpose:
  List the WireGuard keys

Description:
  This command retrieves the WireGuard keys that are allowed to connect to the server, along with the associated Virtual Hub and user.
  You can add a key with the WgkAdd command.
  You can delete a key with the WgkDelete command.
  To execute this command, you must have VPN Server administrator privileges.

Usage:
  WgkEnum
This commit is contained in:
Davide Beatrici
2020-09-01 04:22:58 +02:00
parent 6115f1c713
commit a8580458c4
9 changed files with 340 additions and 0 deletions

View File

@ -5038,6 +5038,35 @@ CMD_LogFileGet_SAVE_FAILED 無法寫入指定的檔。
CMD_LogFileGet_FILESIZE 日誌檔的大小: %u
# WgkAdd 命令
CMD_WgkAdd Add a WireGuard key
CMD_WgkAdd_Help This command can be used to add a WireGuard key to the allowed key list. \nTo execute this command, you must have VPN Server administrator privileges.
CMD_WgkAdd_Args WgkAdd [key] [/HUB:hub] [/USER:user]
CMD_WgkAdd_[key] WireGuard key. Make sure it is the public one!
CMD_WgkAdd_HUB Hub the key will be associated to.
CMD_WgkAdd_USER User the key will be associated to, in the specified hub.
CMD_WgkAdd_Prompt_[key] Key:
CMD_WgkAdd_Prompt_HUB Hub:
CMD_WgkAdd_Prompt_USER User:
# WgkDelete 命令
CMD_WgkDelete Delete a WireGuard key
CMD_WgkDelete_Help This command can be used to delete a WireGuard key from the allowed key list. \nTo execute this command, you must have VPN Server administrator privileges.
CMD_WgkDelete_Args WgkDelete [key]
CMD_WgkDelete_[key] WireGuard key.
CMD_WgkDelete_Prompt_[key] Key:
# WgkEnum 命令
CMD_WgkEnum List the WireGuard keys
CMD_WgkEnum_Help This command retrieves the WireGuard keys that are allowed to connect to the server, along with the associated Virtual Hub and user. \nYou can add a key with the WgkAdd command. \nYou can delete a key with the WgkDelete command. \nTo execute this command, you must have VPN Server administrator privileges.
CMD_WgkEnum_Args WgkEnum
CMD_WgkEnum_Column_Key Key
CMD_WgkEnum_Column_Hub Hub
CMD_WgkEnum_Column_User User
# HubCreate 命令
CMD_HubCreate 創建新的虛擬 HUB
CMD_HubCreate_Help 在 VPN Server 上創建一個新的虛擬 HUB。\n創建的虛擬 HUB 將立即開始工作。\n當 VPN Server在一個群集中運行此命令僅對群集控制器有效。新的虛擬 HUB將作為一個動態的虛擬 HUB。應用 HubSetStatic 命令也可將虛擬 HUB 改為靜態的。要想獲取已經儲存在 VPN Server 上的 HUB可以運行 HubList 命令獲得列表。\n要運行此命令需要 VPN Server 管理員許可權。\n此外此命令在 VPN Bridge 和群集管理伺服器中不起作用。\n在群集上創建虛擬叢集控制器 HUB 時,請運行 HubCreateStatic 或者 HubCreateDynamic 命令。(對群集控制器操作時HubCreate 和 HubCreateDynamic就有相同的功能)。