LoginSignup
2
1

More than 3 years have passed since last update.

SoftEther_VPN の設定の削除方法

Last updated at Posted at 2018-03-19

こちらで行った設定の削除方法です。
SoftEther_VPN の vpncmd の使い方

クライアントの設定の削除

vpncmd /client

アカウントを切り離します。

VPN Client>AccountDisconnect tun0
AccountDisconnect command - Disconnect VPN Connection Setting During Connection
The command completed successfully.

アカウントを削除します。

VPN Client>AccountDelete tun0
AccountDelete command - Delete VPN Connection Setting
The command completed successfully.

NIC を無効にします。

VPN Client>NicDisable tun0
NicDisable command - Disable Virtual Network Adapter
The command completed successfully.

NIC を削除します。

VPN Client>NicDelete tun0
NicDelete command - Delete Virtual Network Adapter
The command completed successfully.

スクリプトにするとこうなります。

vpn_delete.sh
#
#       vpn_delete.sh
#
#                                       Dec/13/2019
#
VPNCMD='/opt/vpnclient/vpncmd /client localhost'
#
$VPNCMD /cmd AccountDisconnect tun0
$VPNCMD /cmd AccountDelete tun0
#
$VPNCMD /cmd NicDisable tun0
$VPNCMD /cmd NicDelete tun0
#
#

サーバーの設定の削除

vpncmd /server

HUB の選択

VPN Server>Hub Default
Hub command - Select Virtual Hub to Manage
The Virtual Hub "DEFAULT" has been selected.
The command completed successfully.

ユーザーの削除

VPN Server/DEFAULT>UserDelete scott
UserDelete command - Delete User
The command completed successfully.
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1