vpncmd 命令設定 vpnserver

  1. 選擇選項 3,執行 check 檢查系統滿足 vpn server。
    [root@dyw219 vpnserver]# /usr/local/vpnserver/vpncmd 
    vpncmd command - SoftEther VPN Command Line Management Utility
    SoftEther VPN Command Line Management Utility (vpncmd command)
    Version 4.21 Build 9613   (English)
    Compiled 2016/04/24 16:39:47 by yagi at pc30
    Copyright (c) SoftEther VPN Project. All Rights Reserved.
    
    By using vpncmd program, the following can be achieved. 
    
    1. Management of VPN Server or VPN Bridge 
    2. Management of VPN Client
    3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)
    
    Select 1, 2 or 3: 3
    
    VPN Tools has been launched. By inputting HELP, you can view a list of the commands that can be used.
    
    VPN Tools>check
    Check command - Check whether SoftEther VPN Operation is Possible
    ---------------------------------------------------
    SoftEther VPN Operation Environment Check Tool
    
    Copyright (c) SoftEther VPN Project.
    All Rights Reserved.
    
    If this operation environment check tool is run on a system and that system passes, it is most likely that SoftEther VPN software can operate on that system. This check may take a while. Please wait...
    
    Checking 'Kernel System'... 
                  Pass
    Checking 'Memory Operation System'... 
                  Pass
    Checking 'ANSI / Unicode string processing system'... 
                  Pass
    Checking 'File system'... 
                  Pass
    Checking 'Thread processing system'... 
                  Pass
    Checking 'Network system'... 
                  Pass
    
    All checks passed. It is most likely that SoftEther VPN Server / Bridge can operate normally on this system.
    
    The command completed successfully.
    VPN Tools>exit
    
  2. 再執行 /usr/local/vpnserver/vpncmd 命令選擇選項 1 進行 vpnserver 設定。
    [root@dyw219 vpnserver]# /usr/local/vpnserver/vpncmd 
    vpncmd command - SoftEther VPN Command Line Management Utility
    SoftEther VPN Command Line Management Utility (vpncmd command)
    Version 4.21 Build 9613   (English)
    Compiled 2016/04/24 16:39:47 by yagi at pc30
    Copyright (c) SoftEther VPN Project. All Rights Reserved.
    
    By using vpncmd program, the following can be achieved. 
    
    1. Management of VPN Server or VPN Bridge 
    2. Management of VPN Client
    3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)
    
    Select 1, 2 or 3: 1
    
  3. 輸入 vpnserver 的 IP 及 port。
    Specify the host name or IP address of the computer 
    that the destination VPN Server or VPN Bridge is operating on. 
    By specifying according to the format 'host name:port number', 
    you can also specify the port number. 
    (When the port number is unspecified, 443 is used.)
    If nothing is input and the Enter key is pressed, the connection will be 
    made to the port number 8888 of localhost (this computer).
    Hostname of IP Address of Destination: 163.17.27.219:443
    
  4. 指定 Virtual Hub 名稱。
    If connecting to the server by Virtual Hub Admin Mode, please input the Virtual Hub name. 
    If connecting by server admin mode, please press Enter without inputting anything.
    Specify Virtual Hub Name: 
    Connection has been established with VPN Server "163.17.27.219" (port 443).
    
    You have administrator privileges for the entire VPN Server.
    
  5. 設定 server 密碼。
    VPN Server>ServerPasswordSet
    ServerPasswordSet command - Set VPN Server Administrator Password
    Please enter the password. To cancel press the Ctrl+D key.
    
    Password: ******
    Confirm input: ******
    
    
    The command completed successfully.
    
  6. 產生 Hub,設定密碼。
    VPN Server>HubCreate VPN
    HubCreate command - Create New Virtual Hub
    Please enter the password. To cancel press the Ctrl+D key.
    
    Password: ******
    Confirm input: ******
    
    
    The command completed successfully.
    
  7. 選用剛剛產生名為 VPN 的 HUB。
    VPN Server>hub VPN
    Hub command - Select Virtual Hub to Manage
    The Virtual Hub "VPN" has been selected.
    The command completed successfully.
    
  8. 啟動 hub VPN 的加密 NAT 功能。
    VPN Server/VPN>SecureNatEnable
    SecureNatEnable command - Enable the Virtual NAT and DHCP Server Function (SecureNat Function)
    The command completed successfully.
    
  9. 產生連線用戶 user1。
    VPN Server/VPN>Usercreate
    UserCreate command - Create User 
    User Name: user1
    
    Assigned Group Name: 
    
    User Full Name: 
    
    User Description: 
    
    The command completed successfully.
    
  10. 設定 user1 的密碼。
    VPN Server/VPN>Userpasswordset
    UserPasswordSet command - Set Password Authentication for User Auth Type and Set Password
    User Name: user1
    
    Please enter the password. To cancel press the Ctrl+D key.
    
    Password: *********
    Confirm input: *********
    
    The command completed successfully.
    
  11. 查看 hub VPN 的 IP 為 192.168.30.1。
    VPN Server/VPN>iptable
    IpTable command - Get the IP Address Table Database
    Item        |Value
    ------------+-------------------
    ID          |804511970
    Session Name|SID-SECURENAT-1
    IP Address  |192.168.30.1
    Created at  |2016-05-17 07:30:31
    Updated at  |2016-05-17 07:31:37
    Location    |On 'dyw219'
    The command completed successfully.