Think && Act
  • Welcome
  • OpenWRT系统
    • Remote Command Execution on GL.iNet's mini-routers
    • 配置DTS支持USB存储
    • OpenWRT procd启动过程
    • udhcpc如何绑定网络接口
    • 提交新平台补丁到OpenWRT社区
  • 无线WiFi技术
    • WiFi 四次握手分析
    • mac80211框架基础
    • How to get wirelss assoclist on MT7628
    • WPS on GL.iNet's OpenWRT
  • 密码学与安全
    • Feistel Cipher
    • 数据加密标准(DES)
    • Data Encryption Standard(DES)
    • Advanced Encryption Standard(AES)
  • 数据结构与算法
  • VPN技术
    • Using Tor on GL.iNet's mini-routers
    • Using Softether VPN on GL.iNet's mini-routers
    • Using ZeroTier on GL.iNet's mini-routers
  • Go语言
    • A Quick Guide for Go Modules
  • Shell脚本
    • Parameter Expansion ${}
    • User's Guide for Awk
  • Python语言
    • Python in Visual Studio Code
  • 投资理财
    • 【入门】股票入门基础
    • 【股初】找准股票入场时机
    • 【股初】合理规避风险
    • 【股初】“好公司”投资法
    • 【股初】财务三表分析
    • 【股初】“捡烟蒂”投资法
    • 【股初】构建白马组合
    • 【股进】选择好生意
    • 【股进】好公司——商业逻辑
  • 工具箱
    • A Guide of Visual Studio Code
    • hexo搭建博客
Powered by GitBook
On this page
  • Installation
  • Configuration
  • Create a Connection Account
  • Set Account Password and Connect to Server
  • Add an Interface to Network Configuration
  • Check VPN Status

Was this helpful?

  1. VPN技术

Using Softether VPN on GL.iNet's mini-routers

Installation

SSH to the router and install softethervpn.

opkg update
opkg install softethervpn

Please note that this package is very large, it might no enough space to install them for mini routers. You should have a router with NAND flash, such as AR750S.

Configuration

Create a Connection Account

Type vpncmd in command line to enter interactive mode. Here is my steps.

root@GL-AR750S:/# vpncmd 
vpncmd command - SoftEther VPN Command Line Management Utility
SoftEther VPN Command Line Management Utility (vpncmd command)
Version 4.25 Build 9656   (English)
Compiled 2018/01/15 09:33:22 by yagi at pc33
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: 2

Specify the host name or IP address of the computer that the destination VPN Client is operating on. 
If nothing is input and Enter is pressed, connection will be made to localhost (this computer).
Hostname of IP Address of Destination: 

Access has been denied. Possibly the password is incorrect, or perhaps you are connecting by an incorrect 
admin mode. You can try inputting the password again. To cancel, press Ctrl+D.
Password: *********

Connected to VPN Client "localhost".

VPN Client>AccountCreate
AccountCreate command - Create New VPN Connection Setting
Name of VPN Connection Setting: test

Destination VPN Server Host Name and Port Number: 192.168.17.163:5555

Destination Virtual Hub Name: glinet

Connecting User Name: test1

Used Virtual Network Adapter Name: vpn

The command completed successfully.

Set Account Password and Connect to Server

We will use three instructions in here. AccountPasswordSet, AccountPasswordSet and AccountList,

VPN Client>AccountPasswordSet
AccountPasswordSet command - Set User Authentication Type of VPN Connection Setting to Password Authentication
Name of VPN Connection Setting: test

Please enter the password. To cancel press the Ctrl+D key.

Password: *********
Confirm input: *********


Specify standard or radius: standard

The command completed successfully.

VPN Client>AccountConnect
AccountConnect command - Start Connection to VPN Server using VPN Connection Setting
Name of VPN Connection Setting: test

The command completed successfully.

VPN Client>AccountList
AccountList command - Get List of VPN Connection Settings
Item                        |Value
----------------------------+----------------------------------------------
VPN Connection Setting Name |test
Status                      |Connected
VPN Server Hostname         |192.168.17.163:5555 (Direct TCP/IP Connection)
Virtual Hub                 |glinet
Virtual Network Adapter Name|vpn
The command completed successfully.

VPN Client>

Add an Interface to Network Configuration

uci set network.vpn=interface
uci set network.vpn.ifname='vpn_vpn'
uci set network.vpn.proto='dhcp'
uci commit network

We should restart the network now, Typing /etc/init.d/network restart in command line.

Check VPN Status

If everything works, the VPN interface will be set up.

root@GL-AR750S:/# ifconfig vpn_vpn
vpn_vpn   Link encap:Ethernet  HWaddr 00:AC:84:B1:99:85  
          inet addr:192.168.17.117  Bcast:192.168.17.255  Mask:255.255.255.0
          inet6 addr: fe80::28f4:2aff:fe97:8aa4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:337 errors:0 dropped:0 overruns:0 frame:0
          TX packets:180 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:42671 (41.6 KiB)  TX bytes:59868 (58.4 KiB)
PreviousUsing Tor on GL.iNet's mini-routersNextUsing ZeroTier on GL.iNet's mini-routers

Last updated 5 years ago

Was this helpful?