How to use the SOFTETHER server under the Linux operating system

  

This article will introduce the environment requirements, installation methods, startup methods, and operation/management methods of the Linux version of the SOFTETHER server.

1)Working Environment Requirements

SoftEther for Linux runs, need the following environment

pthread library

OpenSSL library (<--- can be the latest version )

and need to recognize the *.a file format (compressed form of static library) Linker

Validation on RedHat 7.1, RedHat 9.0, Vine Linux 2.6. Other Linux distributions should also have the pthread library and the OpenSSL library.

2) Installation method

se_100_linux.zip has the following three files

libse_hub.a

ca.crt

ca .key

Where to expand anywhere, for the sake of explanation, assume that it is expanded to a directory named se_hub

SoftEther Linux V-HUB program is not an executable form, but Stored in libse_hub.a as a static library. Therefore, you need to link the pthread library and the OpenSSL library file to this static library to generate the executable file

such as when using gcc as the linker, so this

gcc libse_hub.a -lpthread -lssl -lcrypt -o se_hub

If the error is not displayed, the link is successful. In this directory, a file named "se_hub" will be generated.

The running method is continuing to translate, Shaoan毋躁

3)Starting method

We know that The Windows version of SoftEther V-HUB works by logging in to the System Service. The Linux version of V-HUB is launched from the command line (Shell) just like a normal program. Now, V-HUB has not been implemented as Daemon Process.

SoftEther V-HUB wants to listen to TCP 443 (HTTPS). Because this is a Well-Know port, it requires root privileges to execute. (However, SoftEther V-HUB itself can be executed without root privileges!)

In the Terminal mode, the SoftEther V-HUB program (the se_hub file just generated) can be started like other programs. However, when the Terminal is closed, the running V-HUB will also be killed. In this case, you need to execute the nohup command described below so that the terminal can continue to run even if it is turned off.

# nohup ./se_hub &

This way, as long as you execute se_hub with nohup , you can put the V-HUB process in the background.

(However, when Linux restarts, it is not Deamon Process, so it cannot be started automatically. If you want it to be executed automatically when the system is restarted, you need other methods to assist)

4 Management-application method

4.1) Linux V-HUB management menu and its use method

To manage SoftEther's V-HUB, only need to telnet to the computer running V-HUB The TCP 8023 port can be connected. Whether it is from the machine running V-HUB, telnet's own 8023 port or remote telnet to the 803 port of the machine running V-HUB, there is no problem.

4.2) How to stop V-HUB

Because V-HUB is activated, it will continue to execute. If you want to stop, use the Kill command.

Process ID can be investigated using the ps command below.

Copyright © Windows knowledge All Rights Reserved