$ sudo /usr/local/vpnbridge/vpncmd localhost:5555 /SERVER (サーバ管理目的でvpncmdコマンド起動) [sudo] password for user: vpncmd command - SoftEther VPN Command Line Management Utility SoftEther VPN Command Line Management Utility (vpncmd command) Version 4.38 Build 9760 (English) Compiled 2021/08/17 22:32:49 by buildsan at crosswin Copyright (c) SoftEther VPN Project. All Rights Reserved.
Connection has been established with VPN Server "localhost" (port 5555).
You have administrator privileges for the entire VPN Server.
VPN Server>ServerStatusGet (サーバの稼働状態確認) ServerStatusGet command - Get Current Server Status Item |Value ----------------------------------------------+------------------------- Server Type |Standalone Server Number of Active Sockets |23 Number of Virtual Hubs |1 Number of Sessions |1 Number of MAC Address Tables |186 Number of IP Address Tables |139 ... 以降省略
VPN Server>HubList (Hubの一覧を表示) HubList command - Get List of Virtual Hubs Item |Value ------------------+------------------- Virtual Hub Name |BRIDGE Status |Online Type |Standalone Users |0 Groups |0 ... 以下省略 (vpnbridgeは 初期設定で"BRIDGE"というHubがあるので,それを使うことにする)
VPN Server>Hub BRIDGE (Hub "BRIDGE" に移動)
VPN Server/BRIDGE>statusget (Hub "BRIDGE"の状態確認) StatusGet command - Get Current Status of Virtual Hub Item |Value -----------------------------+------------------- Virtual Hub Name |BRIDGE Status |Online Type |Standalone SecureNAT |Disabled ... 以下省略
VPN Server/BRIDGE>bridgelist (現在のHub に設定されているブリッジ) VPN Server/BRIDGE>bridgecreate BRIDGE /DEVICE:vpn /TAP:yes (仮想IFを対象としてローカルブリッジを作成する.netIFの名称は"vpn".) 実際には "tap_"がprefixとしてついた名称でnetwork interfaceが作成される VPN Server/BRIDGE>bridgelist (作成されたブリッジを確認) BridgeList command - Get List of Local Bridge Connection Number|Virtual Hub Name|Network Adapter or Tap Device Name|Status ------+----------------+----------------------------------+--------- 1 |BRIDGE |vpn |Operating The command completed successfully.
VPN Server/BRIDGE>sessionlist (現在のHub に接続されているsessionの確認) ローカルブリッジ作成後はローカルブリッジがセッションの1つとして表示される. SessionList command - Get List of Connected Sessions Item |Value ----------------+------------------ Session Name |SID-LOCALBRIDGE-1 VLAN ID |- Location |Local Session User Name |Local Bridge Source Host Name|Ethernet Bridge TCP Connections |None Transfer Bytes |1,356 Transfer Packets|1,361 The command completed successfully.