본문 바로가기

리눅스

CentOS 7에서 SoftEther VPN 클라이언트를 설치하는 방법

반응형

CentOS 7에서 SoftEther VPN 클라이언트를 설치하는 방법

EPEL 저장소 설치

sudo yum install epel-release

wget 패키지 설치

sudo yum install -y wget

SoftEther VPN 클라이언트 패키지 다운로드 및 설치

SoftEther VPN 클라이언트 패키지를 다운로드하고 설치하는 것입니다.

cd /usr/local/src/
wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Client/64bit_-_Intel_x64_or_AMD64/softether-vpnclient-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz
tar xvfz softether-vpnclient-v4.34-9745-rtm-2020.04.05-linux-x64-64bit.tar.gz
cd vpnclient
make
$ make
--------------------------------------------------------------------

SoftEther VPN Client (Ver 4.34, Build 9745, Intel x64 / AMD64) for Linux Install Utility
Copyright (c) SoftEther Project at University of Tsukuba, Japan. All Rights Reserved.

--------------------------------------------------------------------

Do you want to read the License Agreement for this software ?

 1. Yes
 2. No

Please choose one of above number:
1

...

Did you read and understand the License Agreement ?
(If you couldn't read above text, Please read 'ReadMeFirst_License.txt'
 file with any text editor.)

 1. Yes
 2. No

Please choose one of above number:
1

Did you agree the License Agreement ?

1. Agree
2. Do Not Agree

Please choose one of above number:
1

make[1]: Entering directory `/usr/local/vpnclient'
Preparing SoftEther VPN Client...
ranlib lib/libcharset.a
ranlib lib/libcrypto.a
ranlib lib/libedit.a
ranlib lib/libiconv.a
ranlib lib/libintelaes.a

...

--------------------------------------------------------------------
The preparation of SoftEther VPN Client is completed !

*** How to switch the display language of the SoftEther VPN Client Service ***
SoftEther VPN Client supports the following languages:
  - Japanese
  - English
  - Simplified Chinese

You can choose your prefered language of SoftEther VPN Client at any time.
To switch the current language, open and edit the 'lang.config' file.

..

*** How to start the SoftEther VPN Client Service ***

Please execute './vpnclient start' to run the SoftEther VPN Client Background Service.
And please execute './vpncmd' to run the SoftEther VPN Command-Line Utility to configure SoftEther VPN Client.

Of course, you can use the VPN Server Manager GUI Application for Windows / Mac OS X on the other Windows / Mac OS X computers in order to configure the SoftEther VPN Client remotely.

...

*** PacketiX VPN Server HTML5 Web Administration Console (NEW) ***
This VPN Server / Bridge has the built-in HTML5 Web Administration Console.

After you start the server daemon, you can open the HTML5 Web Administration Console is available at

https://127.0.0.1:5555/
or
https://ip_address_of_the_vpn_server:5555/

This HTML5 page is obviously under construction, and your HTML5 development contribution is very appreciated.

--------------------------------------------------------------------

make[1]: Leaving directory `/usr/local/vpnclient'

SoftEther VPN 클라이언트 실행

ftEther VPN 클라이언트를 실행합니다.

sudo ./vpnclient start
$ /usr/local/src/vpnclient/vpnclient start
The SoftEther VPN Client service has been started.


$ ps -ef | grep -v grep | grep vpn
root     11633     1  0 16:45 ?        00:00:00 /usr/local/src/vpnclient/vpnclient execsvc
root     11634 11633  0 16:45 ?        00:00:00 /usr/local/src/vpnclient/vpnclient execsvc

SoftEther VPN 클라이언트가 실행되고 VPN 서버에 연결할 수 있습니다.

728x90

vpnclient 설정

vpncmd /client localhost

 

NicCreate tun0
VPN Client>NicCreate tun0
NicCreate command - Create New Virtual Network Adapter
The command completed successfully.

 

AccountCreate DVPN
  • 111.111.111.111:443
  • DVPN
  • vpn_user
  • tun0
VPN Client>AccountCreate DVPN
AccountCreate command - Create New VPN Connection Setting
Destination VPN Server Host Name and Port Number: 111.111.111.111:443

Destination Virtual Hub Name: DVPN

Connecting User Name: vpn_user

Used Virtual Network Adapter Name: tun0

The command completed successfully.

 

AccountPassword vpn_user
  • Password: *********
  • Confirm input: *********
  • Specify standard or radius: radius
VPN Client>AccountPassword vpn_user
AccountPasswordSet command - Set User Authentication Type of VPN Connection Setting to Password Authentication
Please enter the password. To cancel press the Ctrl+D key.

Password: *********
Confirm input: *********


Specify standard or radius: radius

Error occurred. (Error code: 36)
The specified VPN Connection Setting does not exist.

 

AccountConnect DVPN
VPN Client>AccountConnect DVPN
AccountConnect command - Start Connection to VPN Server using VPN Connection Setting
The command completed successfully.

 

AccountList
VPN Client>AccountList
AccountList command - Get List of VPN Connection Settings
Item                        |Value
----------------------------+----------------------------------------------
VPN Connection Setting Name |DVPN
Status                      |Connecting
VPN Server Hostname         |111.111.111.111:443 (Direct TCP/IP Connection)
Virtual Hub                 |DVPN
Virtual Network Adapter Name|tun0
The command completed successfully.

 

ifconfig vpn_tun0
$ ifconfig vpn_tun0
vpn_tun0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::5c75:beff:fea0:3ad8  prefixlen 64  scopeid 0x20<link>
        ether 5e:75:be:a0:3a:d8  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

dhclient -v vpn_tun0

 

route add -host 222.222.222.222 gw 192.168.0.1 dev vpn_tun0

 

SoftEther VPN 클라이언트가 실행되고 VPN 서버에 연결할 수 있습니다.

 

SoftEther VPN 클라이언트를 CentOS 7에서 사용할 수 있습니다. 필요한 VPN 서버 구성 및 연결 설정을 마무리하고 원격 VPN 서버에 연결할 수 있게 될 것입니다.

 

728x90
반응형