mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-10 01:34:58 +03:00
Put TUN down on client disconnect.
On startup client creates TUN interface in UP state and kept it UP even if connection to the server was lost. Creating interface in DOWN state, turning it UP on successful (re-)connection to server and DOWN on either disconnect or connection loss would enable DHCP client (say dhclient5) to detect necessity for lease renewal. Added a client configuration parameter to create TUN interface in DOWN state and commands to enable, disable, and query the configuration parameter. Enabling the parameter causes client to put all unused TUN interfaces DOWN, create new TUN interfaces in DOWN state, and turn TUN interfaces corresponding to active sessions DOWN on connection loss or disconnecting from server. Disabling the parameter forces client to turn all TUN interfaces UP and create new TUN interfaces in UP state. Default value is 'Disable'.
This commit is contained in:
committed by
Davide Beatrici
parent
828d3b2ffb
commit
59e1483dbf
@ -4686,6 +4686,21 @@ CMD_ServerCipherSet_Args ServerCipherSet [name]
|
||||
CMD_ServerCipherSet_[name] 指定設置加密和數位簽章的程式。可以使用的程式一覽,可以從 ServerCipherGet 指令中獲取。
|
||||
CMD_ServerCipherSet_PROMPT_NAME 指定的加密程式的名稱:
|
||||
|
||||
# TUNDownOnDisconnectEnable command
|
||||
CMD_TUNDownOnDisconnectEnable Enable the Turn TUN Interface Down on Client Disconnect Function.
|
||||
CMD_TUNDownOnDisconnectEnable_Help This allows you to enable Turn TUN Interface Down on Client Disconnect Function.
|
||||
CMD_TUNDownOnDisconnectEnable_Args TUNDownOnDisconnectEnable
|
||||
|
||||
# TUNDownOnDisconnectDisable command
|
||||
CMD_TUNDownOnDisconnectDisable Disable the Turn TUN Interface Down on Client Disconnect Function.
|
||||
CMD_TUNDownOnDisconnectDisable_Help This allows you to disable Turn TUN Interface Down on Client Disconnect Function.
|
||||
CMD_TUNDownOnDisconnectDisable_Args TUNDownOnDisconnectDisable
|
||||
|
||||
# TUNDownOnDisconnectGet command
|
||||
CMD_TUNDownOnDisconnectGet Get status of the Turn TUN Interface Down on Client Disconnect Function.
|
||||
CMD_TUNDownOnDisconnectGet_Help This allows you to get status of the Turn TUN Interface Down on Client Disconnect Function.
|
||||
CMD_TUNDownOnDisconnectGet_Args TUNDownOnDisconnectGet
|
||||
CMD_TUNDownOnDisconnectGet_COLUMN1 Put TUN down on disconnect
|
||||
|
||||
# KeepEnable 命令
|
||||
CMD_KeepEnable 啟動 Internet 保持連接功能
|
||||
|
Reference in New Issue
Block a user