SoftEther Linux Ubuntu

Ubuntu SoftEther VPN Manual Installation

How to setup SoftEther VPN connection on Linux Ubuntu (step by step)

1SoftEther VPN Client installation process on Ubuntu require advanced linux skills.
Download SoftEther VPN Client from the official site selecting your platform and CPU: http://www.softether-download.com/en.aspx?product=softether

SoftEther VPN connection on Ubuntu - Step 1
* current selection is for linux 64bit OS.
2Uncompress downloaded file to a local folder, run "make" command and accept all your licence agreements. When the process is completed, start the vpnclient service as root:
#sudo ./vpnclient start
3Create your connection setting using your assigned RapidVPN server details. Your file content must be similar to:
declare root
{
bool CheckServerCert false
uint64 CreateDateTime 0
uint64 LastConnectDateTime 0
bool StartupAccount false
uint64 UpdateDateTime 0
declare ClientAuth
{
uint AuthType 1
string Username rapidvpnusername
}
declare ClientOption
{
string AccountName rapidvpn1
uint AdditionalConnectionInterval 1
uint ConnectionDisconnectSpan 0
string DeviceName se
bool DisableQoS false
bool HalfConnection false
bool HideNicInfoWindow false
bool HideStatusWindow false
string Hostname x.x.x.x
string HubName default
uint MaxConnection 1
bool NoRoutingTracking false
bool NoTls1 false
bool NoUdpAcceleration false
uint NumRetry 4294967295
uint Port 443
uint PortUDP 0
string ProxyName $
byte ProxyPassword $
uint ProxyPort 0
uint ProxyType 0
string ProxyUsername $
bool RequireBridgeRoutingMode false
bool RequireMonitorMode false
uint RetryInterval 15
bool UseCompress false
bool UseEncrypt true
}
}
You must change x.x.x.x with your assigned server IP and rapidvpnusername with your assigned username. Save this file to /home/rapidvpn1.vpn.
4Now, connect to your local vpn client with "vpncmd" and crate your local NIC named "se":
#vpncmd
vpncmd command - SoftEther VPN Command Line Management Utility
SoftEther VPN Command Line Management Utility (vpncmd command)
Version 2.00 Build 9387 (English)
Compiled 2013/09/16 12:45:42 by yagi at pc25
Copyright (c) SoftEther 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 o
n.
If nothing is input and Enter is pressed, connection will be made to localhost (this computer).
Hostname of IP Address of Destination: localhost
Connected to VPN Client "localhost".
VPN Client>remoteenable
RemoteEnable command - Allow Remote Management of VPN Client Service
The command completed successfully.
VPN Client>niccreate
NicCreate command - Create New Virtual Network Adapter
Virtual Network Adapter Name: se
The command completed successfully.
                    
5Import your created configuration:
VPN Client>accountimport
AccountImport command - Import VPN Connection Setting
Import Source File Name: /home/rapidvpn1.vpn
The VPN Connection Setting "rapidvpn1" was imported.
The command completed successfully.
6Setup username and password for your RapidVPN imported connection:
VPN Client>AccountUsernameSet rapidvpn1
AccountUsernameSet command - Set User Name of User to Use Connection of VPN Connection Setting
Connecting User Name: rapidvpn_username
The auth type for this VPN Connection Setting is currently set as password authentication. After c
hanging the user name, you must use the AccountPasswordSet command to reset the password.
The command completed successfully.
VPN Client>AccountPasswordSet rapidvpn1
AccountPasswordSet command - Set User Authentication Type of VPN Connection Setting to Password Au
thentication
Please enter the password. To cancel press the Ctrl+D key.
Password: ****************
Confirm input: ****************
Specify standard or radius: radius
The command completed successfully.
VPN Client>accountconnect rapidvpn1
AccountConnect command - Start Connection to VPN Server using VPN Connection Setting
The command completed successfully.
VPN Client>accountstartupset rapidvpn1
AccountStartupSet command - Set VPN Connection Setting as Startup Connection
The command completed successfully.
7Make your vpn adapter to get ip address from RapidVPN NAS:
#sudo dhclient vpn_se
8Final info
Now your VPN should be connected. Please note, under linux - the routing table is not automatically modified by SoftEther Client and you need to manually tweek your routing information to make your vpn connection to route all traffic. Also, you will need to enable ip forward option in "/etc/sysctl.conf":
#net.ipv4.ip_forward=1

and load with command:
#sysctl -p