2018-05-24 11:24:26 +03:00
This document describes how to build SoftEtherVPN for Unix based Operating systems
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
- [Requirements ](#requirements )
* [Install requirements on Centos/RedHat ](#install-requirements-on-centosredhat )
* [Install Requirements on Debian/Ubuntu ](#install-requirements-on-debianubuntu )
2018-08-03 01:23:30 +03:00
- [Build from source code and install ](#build-from-source-code-and-install )
2018-05-24 11:24:26 +03:00
- [How to Run SoftEther ](#how-to-run-softether )
* [Start/Stop SoftEther VPN Server ](#startstop-softether-vpn-server )
* [Start/Stop SoftEther VPN Bridge ](#startstop-softether-vpn-bridge )
* [Start/Stop SoftEther VPN Client ](#startstop-softether-vpn-client )
- [Using SoftEther without installation. ](#using-softether-without-installation )
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
# Requirements
2014-01-04 17:00:08 +04:00
You need to install the following software to build SoftEther VPN for UNIX.
- Linux, FreeBSD, Solaris or Mac OS X.
2017-12-09 14:41:14 +03:00
- GNU Compiler Collection (gcc) and binary utilities. ** *
2014-01-04 17:00:08 +04:00
- GNU Make (gmake).
- GNU C Library (glibc).
- POSIX Threads (pthread).
- OpenSSL (crypto, ssl).
- libiconv.
- readline.
- ncurses.
2018-05-24 11:24:26 +03:00
*It has been noted that clang is also supported as an alternative to gcc.*
2017-12-09 14:41:14 +03:00
2018-05-24 11:24:26 +03:00
## Install requirements on Centos/RedHat
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
```bash
sudo yum -y groupinstall "Development Tools"
sudo yum -y install cmake ncurses-devel openssl-devel readline-devel zlib-devel
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
## Install Requirements on Debian/Ubuntu
```bash
2018-08-11 13:02:50 +03:00
sudo apt -y install cmake gcc g++ libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev
2018-05-24 11:24:26 +03:00
```
2014-01-04 17:00:08 +04:00
2018-08-03 01:23:30 +03:00
# Build from source code and install
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
To build the programs from the source code, run the following commands:
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
```bash
git clone https://github.com/SoftEtherVPN/SoftEtherVPN.git
cd SoftEtherVPN
2018-08-11 22:03:56 +03:00
git submodule init & & git submodule update
2018-07-25 22:41:21 +03:00
./configure
make -C tmp
make -C tmp install
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
This will compile and install SoftEther VPN Server, Bridge and Client binaries under your executable path.
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
If any error occurs, please check the above requirements.
2014-01-04 17:00:08 +04:00
2018-08-08 18:14:18 +03:00
# Build on musl-based linux
To build the programs from the source code when using musl as libc, run the following commands:
```bash
export USE_MUSL=YES
git clone https://github.com/SoftEtherVPN/SoftEtherVPN.git
git submodule init & & git submodule update
cd SoftEtherVPN
./configure
make -C tmp
make -C tmp install
```
2018-08-08 18:16:26 +03:00
Building without USE_MUSL environment variable set compiles, but produced executables exhibit bad run-time behaviour.
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
# How to Run SoftEther
2014-01-04 17:00:08 +04:00
2018-05-24 11:24:26 +03:00
## Start/Stop SoftEther VPN Server
2014-01-04 17:00:08 +04:00
To start the SoftEther VPN Server background service, run the following:
2018-05-24 11:24:26 +03:00
```bash
vpnserver start
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
To stop the service, run the following:
2018-05-24 11:24:26 +03:00
```bash
vpnserver stop
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
To configure the running SoftEther VPN Server service,
you can use SoftEther VPN Command Line Management Utility as following:
2018-05-24 11:24:26 +03:00
```bash
vpncmd
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
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/.
2018-05-24 11:24:26 +03:00
## Start/Stop SoftEther VPN Bridge
2014-01-04 17:00:08 +04:00
To start the SoftEther VPN Bridge background service, run the following:
2018-05-24 11:24:26 +03:00
```bash
vpnbridge start
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
To stop the service, run the following:
2018-05-24 11:24:26 +03:00
```bash
vpnbridge stop
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
To configure the running SoftEther VPN Bridge service,
you can use SoftEther VPN Command Line Management Utility as following:
2018-05-24 11:24:26 +03:00
```bash
vpncmd
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
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/.
2018-05-24 11:24:26 +03:00
## Start/Stop SoftEther VPN Client
2014-01-04 17:00:08 +04:00
To start the SoftEther VPN Client background service, run the following:
2018-05-24 11:24:26 +03:00
```bash
vpnclient start
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
To stop the service, run the following:
2018-05-24 11:24:26 +03:00
```bash
vpnclient stop
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
To configure the running SoftEther VPN Client service,
you can use SoftEther VPN Command Line Management Utility as following:
2018-05-24 11:24:26 +03:00
```bash
vpncmd
2017-12-05 15:17:14 +03:00
```
2014-01-04 17:00:08 +04:00
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/.
2018-05-24 11:24:26 +03:00
# 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.
2014-01-04 17:00:08 +04:00
************************************
Thank You Using SoftEther VPN !
By SoftEther VPN Open-Source Project
http://www.softether.org/