1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-20 10:40:39 +03:00
SoftEtherVPN/src/BUILD_UNIX.md
2018-06-03 01:49:28 +08:00

4.0 KiB

This document describes how to build SoftEtherVPN for Unix based Operating systems

Requirements

You need to install the following software to build SoftEther VPN for UNIX.

  • Linux, FreeBSD, Solaris or Mac OS X.
  • GNU Compiler Collection (gcc) and binary utilities. ***
  • GNU Make (gmake).
  • GNU C Library (glibc).
  • POSIX Threads (pthread).
  • OpenSSL (crypto, ssl).
  • libiconv.
  • readline.
  • ncurses.

It has been noted that clang is also supported as an alternative to gcc.

Install requirements on Centos/RedHat

sudo yum -y groupinstall "Development Tools"
sudo yum -y install cmake ncurses-devel openssl-devel readline-devel zlib-devel

Install Requirements on Debian/Ubuntu

sudo apt -y install cmake gcc libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev

Build from source code and instal

To build the programs from the source code, run the following commands:

git clone https://github.com/SoftEtherVPN/SoftEtherVPN.git
cd SoftEtherVPN
cmake .
make
make install

This will compile and install SoftEther VPN Server, Bridge and Client binaries under your executable path.

If any error occurs, please check the above requirements.

How to Run SoftEther

Start/Stop SoftEther VPN Server

To start the SoftEther VPN Server background service, run the following:

vpnserver start

To stop the service, run the following:

vpnserver stop

To configure the running SoftEther VPN Server service, you can use SoftEther VPN Command Line Management Utility as following:

vpncmd

Or you can also use VPN Server Manager GUI Tool on other Windows PC to connect to the VPN Server remotely. You can download the GUI Tool from http://www.softether-download.com/.

Start/Stop SoftEther VPN Bridge

To start the SoftEther VPN Bridge background service, run the following:

vpnbridge start

To stop the service, run the following:

vpnbridge stop

To configure the running SoftEther VPN Bridge service, you can use SoftEther VPN Command Line Management Utility as following:

vpncmd

Or you can also use VPN Server Manager GUI Tool on other Windows PC to connect to the VPN Bridge remotely. You can download the GUI Tool from http://www.softether-download.com/.

Start/Stop SoftEther VPN Client

To start the SoftEther VPN Client background service, run the following:

vpnclient start

To stop the service, run the following:

vpnclient stop

To configure the running SoftEther VPN Client service, you can use SoftEther VPN Command Line Management Utility as following:

vpncmd

Or you can also use VPN Client Manager GUI Tool on other Windows PC to connect to the VPN Client remotely. You can download the GUI Tool from http://www.softether-download.com/.

Using SoftEther without installation.

You can use any SoftEtherVPN component (server, client, bridge) without installing it, if you wish so.

In this case please do not run the make install command after compiling the source code, and head directly to the bin/ directory. There you will find the generated binaries for SoftEtherVPN and those could be used without installing SoftEtherVPN.


Thank You Using SoftEther VPN ! By SoftEther VPN Open-Source Project http://www.softether.org/