SSH to the router and install softethervpn.
opkg updateopkg 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.
vpncmd in command line to enter interactive mode. Here is my steps.
[email protected]:/# vpncmdvpncmd command - SoftEther VPN Command Line Management UtilitySoftEther VPN Command Line Management Utility (vpncmd command)Version 4.25 Build 9656 (English)Compiled 2018/01/15 09:33:22 by yagi at pc33Copyright (c) SoftEther VPN Project. All Rights Reserved.By using vpncmd program, the following can be achieved.1. Management of VPN Server or VPN Bridge2. Management of VPN Client3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)Select 1, 2 or 3: 2Specify 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 incorrectadmin mode. You can try inputting the password again. To cancel, press Ctrl+D.Password: *********Connected to VPN Client "localhost".VPN Client>AccountCreateAccountCreate command - Create New VPN Connection SettingName of VPN Connection Setting: testDestination VPN Server Host Name and Port Number: 192.168.17.163:5555Destination Virtual Hub Name: glinetConnecting User Name: test1Used Virtual Network Adapter Name: vpnThe command completed successfully.
We will use three instructions in here. AccountPasswordSet, AccountPasswordSet and AccountList,
VPN Client>AccountPasswordSetAccountPasswordSet command - Set User Authentication Type of VPN Connection Setting to Password AuthenticationName of VPN Connection Setting: testPlease enter the password. To cancel press the Ctrl+D key.Password: *********Confirm input: *********Specify standard or radius: standardThe command completed successfully.VPN Client>AccountConnectAccountConnect command - Start Connection to VPN Server using VPN Connection SettingName of VPN Connection Setting: testThe command completed successfully.VPN Client>AccountListAccountList command - Get List of VPN Connection SettingsItem |Value----------------------------+----------------------------------------------VPN Connection Setting Name |testStatus |ConnectedVPN Server Hostname |192.168.17.163:5555 (Direct TCP/IP Connection)Virtual Hub |glinetVirtual Network Adapter Name|vpnThe command completed successfully.VPN Client>
uci set network.vpn=interfaceuci 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.
If everything works, the VPN interface will be set up.
[email protected]:/# ifconfig vpn_vpnvpn_vpn Link encap:Ethernet HWaddr 00:AC:84:B1:99:85inet addr:192.168.17.117 Bcast:192.168.17.255 Mask:255.255.255.0inet6 addr: fe80::28f4:2aff:fe97:8aa4/64 Scope:LinkUP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1RX packets:337 errors:0 dropped:0 overruns:0 frame:0TX packets:180 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:42671 (41.6 KiB) TX bytes:59868 (58.4 KiB)