How to Use the SoftEther server in Linux

Source: Internet
Author: User
Tags openssl library
Article Title: How to Use The SoftEther server in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Linux environment requirements, installation method, startup method, Operation/Management Method

1) work environment requirements

Linux SoftEther runs in the following environment:

Pthread Library

OpenSSL library (<-- http://www.openssl.org can download the latest version)

It also needs to be able to identify the Linker of *. a file format (compressed static library)

Verify and confirm it on RedHat 7.1, RedHat 9.0, and Vine Linux 2.6. The pthread library and OpenSSL Library are also available for other Linux releases.

2) Installation Method

Se_100_linux.zip contains the following three files:

Libse_hub.a

Ca. crt

Ca. key

Expand anywhere. For ease of description, suppose you have expanded to a directory named se_hub.

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

For example, when using gcc as the linker

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

If no error is displayed, the link is successful. This directory generates such a file named "se_hub ".

The running method is being translated.

3) Startup Method

We know that the Windows version of SoftEther V-HUB is by logging on to the System Service to achieve background work. The V-HUB for Linux is started through Shell like a normal program. The V-HUB has not yet been executed in the Daemon Process mode

The SoftEther V-HUB needs to listen to TCP 443 port (HTTPS), because this is the Well-Know port, so the root permission is required for execution. (But SoftEther V-HUB itself can be executed without the root permission !)

In the Terminal mode, The SoftEther V-HUB program (the se_hub file just generated) can start running like other programs, but when 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 Terminal can continue to run even if it is disabled.

# Nohup./se_hub &

In this way, as long as the use of nohup to execute a se_hub, you can put the V-HUB process in the background.

(However, when Linux is restarted, it cannot be started automatically because it is not Deamon Process. To make it automatically executed when the system is restarted, you need other methods)

4) Management-Application Method

4.1) Linux edition V-HUB management menu and Its Usage

To manage the SoftEther V-HUB, just telnet to the TCP port 8023 of the computer that runs the V-HUB. Whether it's from the local machine running the V-HUB, telnet your own 8023 port or from remote telnet to the 8023 port of the machine running the V-HUB, there's no problem.

4.2) Stop the V-HUB Method

Because once the V-HUB is started, it will continue to run. If you want to stop the service, run the Kill command.

Process ID, which can be investigated using the following ps command

[1] [2] Next page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.