# ----------------------------------------------------------------
# Start and create vpn connection
# ----------------------------------------------------------------
# Download from https://www.softether-download.com/en.aspx?product=softether
# Select Software: SoftEther VPN (Freeware)
# Select Component: SoftEther VPN Client
# Select Platform: Linux
# Select CPU: Intel x64/AMD64 (64bit)
# Download Files: SoftEther VPN Client (Ver 4.29, Build 9680, rtm)
# Then extract and open your terminal to the vpnclient folder:
$ cd vpnclient
$ make
$ sudo chmod +x ./vpnclient ./vpncmd
$ sudo ./vpnclient start
$ ./vpncmd
# Select 1, 2 or 3:
> 2
# Hostname of IP Address of Destination:
> <enter>
$ niccreate xyz_adapter
$ accountcreate xyz_connection
# Destination VPN Server Host Name and Port Number:
> 123.123.123.123:123
# Destination Virtual Hub Name:
> VPN
# Connecting User Name:
> theusername
# Used Virtual Network Adapter Name:
> xyz_adapter
$ accountpassword xyz_connection
> <the_password>
# Specify standard or radius:
> standard
$ accountconnect xyz_connection
$ accountlist
# Item |Value
# ----------------------------+--------------------------------------------
# VPN Connection Setting Name |xyz_connection
# Status |Connected
# VPN Server Hostname |123.123.123.123:123 (Direct TCP/IP Connection)
# Virtual Hub |VPN
# Virtual Network Adapter Name|xyz_connection
$ ip addr
$ sudo dhclient vpn_xyz_adapter
$ sudo ip route add 123.123.123.123/32 via 192.168.0.1
$ sudo ip route del default via 192.168.0.1
# Check currect ip address
$ curl ifconfig.me ; echo
# ----------------------------------------------------------------
# To Disconnect VPN
# ----------------------------------------------------------------
$ sudo ./vpnclient stop
$ sudo ip route del 123.123.123.123/32
$ sudo ip route add default via 192.168.0.1
Help source: https://www.cactusvpn.com/tutorials/how-to-set-up-softether-vpn-client-on-linux/