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

Add custom HTTP header feature for HTTP proxy

A custom HTTP header can be used to bypass certain restrictions imposed on the network or to avoid speed limitations applied by the QoS.
This commit is contained in:
Davide Beatrici
2018-11-29 20:32:03 +01:00
parent 4be45342b7
commit aefbd2e903
29 changed files with 1665 additions and 120 deletions

View File

@ -946,6 +946,8 @@ CM_STOP_INST_VLAN_1 要想在此计算机上安装虚拟网络适配器,您
CM_STOP_INST_VLAN_2 要想在此计算机上安装虚拟网络适配器,您必须在“控制台会话”下启动 VPN Client 管理器。\r\n\r\n目前此计算机上已安装 %s且用户已登入远程会话 (会话ID: %u) 而不是控制台进程。\r\n若要安装虚拟网络适配器必须在“控制台会话”下启动 VPN Client 管理器。\r\n(目前用户并未登入到控制台会话 (会话ID: 0)。) \r\n\r\n首先使用切换用户功能从本地登入到计算机或在远程桌面使用 “/console” 论据功能,或切换计算机的本地控制台设备,之后启动 VPN Client 管理器,并安装虚拟网络适配器。
CM_SHORTCUT_DESKTOP_MSG 若要使用 VPN 连接设置快捷方式启动连接,您必须在“控制台会话”下运行快捷方式文件。\r\n\r\n目前用户作为远程会话 (会话ID: %u) 登入而不是控制台会话。
CM_HTTP_PROXY_WARNING 已选择“通过 HTTP 代理服务器连接”。\r\n\r\n一般情况下HTTP 服务器只允许两种 TCP 端口作为连接到目标服务器的端口号: HTTP 协议 (TCP 端口号 80) 和 HTTPS 协议 (TCP 端口号 443)。\r\n(同样,也有的代理服务器提供更宽泛的 TCP 端口供连接使用。) \r\n\r\n当通过一台禁用除 HTTP 端口或 HTTPS 端口的 HTTP 代理服务器建立 VPN 连接时,您必须指定 443 (HTTPS 协议) 作为目标 VPN Server 的端口号。\r\n\r\n要检查您当前使用的 HTTP 代理服务器是否允许 80 或 443 意外的端口,请与 HTTP 代理服务器的管理员联系。\r\n\r\n目前 %d 指定为目标 VPN Server 的端口号。您是否要更改端口号为 443 (HTTPS 协议) ?\r\n(您所连接的 VPN Server 的 443 端口必须被设为监听状态并且空闲。) \r\n如果您无法确定请与系统管理员或网络管理员联系。
CM_HTTP_HEADER_COLUMN_0 Name
CM_HTTP_HEADER_COLUMN_1 Value
CM_PASSWORD_CHANGED 密码已更改。
CM_ACCOUNT_SETTING_FILE VPN 连接设置文件 (*.VPN)|*.vpn|所有文件 (*.*)|*.*
CM_ACCOUNT_SAVE_TITLE 输入要导出的 VPN 连接设置文件的文件名
@ -2355,12 +2357,22 @@ STATIC2 主机名(&H):
STATIC3 端口(&A):
STATIC4 用户名(&U):
STATIC5 密码(&P):
B_HTTP_HEADER Custom HTTP header values
IDOK 确定(&O)
IDCANCEL 取消
STATIC6 (可选)
STATIC7 (可选)
PREFIX D_CM_PROXY_HTTP_HEADER
CAPTION Custom Proxy HTTP Header Values
B_NEW New
B_DELETE Delete
B_CLEAR Clear
IDOK &OK
IDCANCEL Cancel
PREFIX D_CM_DETAIL
CAPTION 高级设置
STATIC1 为系统管理员,和在网络,通信协议,安全方面有一定了解的用户提供了可选择的设置。可以由此来自定义 VPN 通信协议设置。为系统管理员和专家在网络、通信协议和安全方面提供可选设置。自定义 VPN 协议的通信设置。
@ -5329,6 +5341,35 @@ CMD_CascadeCompressDisable_Args CascadeCompressDisable [name]
CMD_CascadeCompressDisable_[name] 指定级联名称来改变设置。
# CascadeHttpHeader* commands
CMD_CascadeHttpHeader_Prompt_Name Value name (part before the colon):
CMD_CascadeHttpHeader_Prompt_Data Value data (part after the colon):
# CascadeHttpHeaderAdd command
CMD_CascadeHttpHeaderAdd Add a custom value in the HTTP header sent to the proxy server
CMD_CascadeHttpHeaderAdd_Help Use this to add a custom value in the HTTP header sent to the proxy server. A custom HTTP header can be used to bypass certain restrictions imposed on the network or to avoid speed limitations applied by the QoS.
CMD_CascadeHttpHeaderAdd_Args CascadeHttpHeaderAdd [name] [/NAME:name] [/DATA:data]
CMD_CascadeHttpHeaderAdd_[name] Specify the name of the Cascade Connection whose setting you want to change.
CMD_CascadeHttpHeaderAdd_NAME Specify the name of the custom value (the part before the colon character).
CMD_CascadeHttpHeaderAdd_DATA Specify the data of the custom value (the part after the colon character).
# CascadeHttpHeaderDelete command
CMD_CascadeHttpHeaderDelete Delete a custom value in the HTTP header sent to the proxy server
CMD_CascadeHttpHeaderDelete_Help Use this to delete a custom value in the HTTP header sent to the proxy server. A custom HTTP header can be used to bypass certain restrictions imposed on the network or to avoid speed limitations applied by the QoS.
CMD_CascadeHttpHeaderDelete_Args CascadeHttpHeaderDelete [name] [/NAME:name]
CMD_CascadeHttpHeaderDelete_[name] Specify the name of the Cascade Connection whose setting you want to change.
CMD_CascadeHttpHeaderDelete_NAME Specify the name of the custom value (the part before the colon character).
# CascadeHttpHeaderGet command
CMD_CascadeHttpHeaderGet Get the list of custom values in the HTTP header sent to the proxy server
CMD_CascadeHttpHeaderGet_Help Use this to get the list of custom values in the HTTP header sent to the proxy server. A custom HTTP header can be used to bypass certain restrictions imposed on the network or to avoid speed limitations applied by the QoS.
CMD_CascadeHttpHeaderGet_Args CascadeHttpHeaderGet [name]
CMD_CascadeHttpHeaderGet_[name] Specify the name of the Cascade Connection whose setting you want to get.
# CascadeProxyNone 命令
CMD_CascadeProxyNone 将级联的连接方法设置为直接与 TCP/IP 连接
CMD_CascadeProxyNone_Help 指定已经在当前虚拟 HUB 注册的级联连接,当此连接和 VPN Server 之间通信时,设置连接方法为 [直接与 TCP/IP 连接],而不通过代理服务器。\n此命令在集群虚拟 HUB 中不能运行。
@ -6640,6 +6681,35 @@ CMD_AccountCompressDisable_Args AccountCompressDisable [name]
CMD_AccountCompressDisable_[name] 指定要更改设置的连接设置名。
# AccountHttpHeader* commands
CMD_AccountHttpHeader_Prompt_Name Value name (part before the colon):
CMD_AccountHttpHeader_Prompt_Data Value data (part after the colon):
# AccountHttpHeaderAdd command
CMD_AccountHttpHeaderAdd Add a custom value in the HTTP header sent to the proxy server
CMD_AccountHttpHeaderAdd_Help Use this to add a custom value in the HTTP header sent to the proxy server. A custom HTTP header can be used to bypass certain restrictions imposed on the network or to avoid speed limitations applied by the QoS.
CMD_AccountHttpHeaderAdd_Args AccountHttpHeaderAdd [name] [/NAME:name] [/DATA:data]
CMD_AccountHttpHeaderAdd_[name] Specify the name of the VPN Connection Setting whose setting you want to change.
CMD_AccountHttpHeaderAdd_NAME Specify the name of the custom value (the part before the colon character).
CMD_AccountHttpHeaderAdd_DATA Specify the data of the custom value (the part after the colon character).
# AccountHttpHeaderDelete command
CMD_AccountHttpHeaderDelete Delete a custom value in the HTTP header sent to the proxy server
CMD_AccountHttpHeaderDelete_Help Use this to delete a custom value in the HTTP header sent to the proxy server. A custom HTTP header can be used to bypass certain restrictions imposed on the network or to avoid speed limitations applied by the QoS.
CMD_AccountHttpHeaderDelete_Args AccountHttpHeaderDelete [name] [/NAME:name]
CMD_AccountHttpHeaderDelete_[name] Specify the name of the VPN Connection Setting whose setting you want to change.
CMD_AccountHttpHeaderDelete_NAME Specify the name of the custom value (the part before the colon character).
# AccountHttpHeaderGet command
CMD_AccountHttpHeaderGet Get the list of custom values in the HTTP header sent to the proxy server
CMD_AccountHttpHeaderGet_Help Use this to get the list of custom values in the HTTP header sent to the proxy server. A custom HTTP header can be used to bypass certain restrictions imposed on the network or to avoid speed limitations applied by the QoS.
CMD_AccountHttpHeaderGet_Args AccountHttpHeaderGet [name]
CMD_AccountHttpHeaderGet_[name] Specify the name of the VPN Connection Setting whose setting you want to get.
# AccountProxyNone 命令
CMD_AccountProxyNone 将连接设置的连接方法直接设置为 TCP/IP 连接
CMD_AccountProxyNone_Help 当指定注册到 VPN Client 的连接设置,将其连接设置与 VPN Server 间进行 VPN 连接时使用的连接方法设置为 [直接 TCP/IP连接],不通过代理服务器。