電訊茶室's Archiver

角色 發表於 2013-4-6 10:23

【SoftEther VPN】——QNAP TS-269 Pro Installation Using Pre-compiled Libraries

[i=s] 本帖最後由 角色 於 2013-4-6 14:59 編輯 [/i]

目标:安装SoftEther VPN Server与QNAP TS-269 Pro里(Intel X86 Architecture)

引言:

看到其他CHing在Raspberry Pi上能安装SoftEther VPN Server【1】, 那么自己自己也想在QNAP的NAS安装SoftEther VPN Server, 当做make的时候,就产生error message (see Listing 1),问题是我被一些误导信息,以为QNAP TS-269 Pro是64-bit系统,后来因为安装SoftEther的source code是才知道它是32-bit的Linux OS。

用32-bit的pre-compiled libraries去安装(就是一个make command)后,就可以make成功。但是运行./vpnserver start是就出现error message(see Listing 2),参考过【2】文献后,假如下面的environment variable后,问题切底解决:[code]export GCONV_PATH=/opt/lib/gconv[/code]##

1) 在第二楼会把整个安装方法写出来,好让大家有一个参考。
2) 如果通过它的日文版的VPN source code,安装都是一样的,主要都是i)要选用32-bit系统,ii)export GCONV_PATH=/opt/lib/gconv。


References:
【1】[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=5454&extra=page%3D1[/url]
【2】[url]http://forum.qnap.com/viewtopic.php?p=24313[/url]

Appendices:

Listing 1: Error message when make from the pre-compiled libraries[code]make[1]: Entering directory `/share/MD0_DATA/.qpkg/Optware/source/softether/vpnserver'
Preparing SoftEther VPN Server...
ranlib lib/libcharset.a
ranlib lib/libcrypto.a
ranlib lib/libedit.a
ranlib lib/libiconv.a
ranlib lib/libintelaes.a
ranlib lib/libncurses.a
ranlib lib/libssl.a
ranlib lib/libz.a
ranlib code/vpnserver.a
gcc code/vpnserver.a -O2 -fsigned-char -pthread -m64 -lm -ldl -lrt -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a lib/libintelaes.a -o vpnserver
code/vpnserver.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make[1]: *** [i_read_and_agree_the_license_agreement] Error 1
make[1]: Leaving directory `/share/MD0_DATA/.qpkg/Optware/source/softether/vpnserver'[/code]##

Listing 2:Error message when vpnserver ran[code][/opt/source/softether/vpnserver] # ./vpnserver start
-- Alert: SoftEther VPN Kernel --
String Library Init Failed.
Please check your locale settings and iconv() libraries.
[/code]

角色 發表於 2013-4-6 10:28

[i=s] 本帖最後由 角色 於 2013-4-6 14:54 編輯 [/i]

安装方法:

1. 到官方下载网站:[url]http://www.softether.org/5-download[/url]

[attach]2407[/attach]

2. 然后下载Linux 32-bit X86的pre-compiled libraries

[attach]2408[/attach]

3. 然后把下gzipped-tarred file “softether-vpnserver-v1.00-9051-rc2-2013.04.05-linux-x86-32bit.tar.gz” 放入你的QNAP NAS某些喜爱的位置[code][/opt/source/softether][/code]

角色 發表於 2013-4-6 11:14

[i=s] 本帖最後由 角色 於 2013-4-6 15:11 編輯 [/i]

4. unzip and untar the file using the following command[code]

[/opt/source/softether] # tar xvf softether-vpnserver-v1.00-9051-rc2-2013.04.05-linux-x86-32bit.tar.gz
vpnserver/
vpnserver/Makefile
vpnserver/.install.sh
vpnserver/ReadMeFirst_License.txt
vpnserver/ReadMeFirst_Important_Notices_ja.txt
vpnserver/ReadMeFirst_Important_Notices_en.txt
vpnserver/code/
vpnserver/code/vpnserver.a
vpnserver/code/vpncmd.a
vpnserver/lib/
vpnserver/lib/libcharset.a
vpnserver/lib/libcrypto.a
vpnserver/lib/libedit.a
vpnserver/lib/libiconv.a
vpnserver/lib/libintelaes.a
vpnserver/lib/libncurses.a
vpnserver/lib/libssl.a
vpnserver/lib/libz.a
vpnserver/lib/License.txt
vpnserver/hamcore.se2
[/opt/source/softether] #
[/code]##

5. it creates a new sub-directory of "vpnserver" as shown below:[code]softether-vpnserver-v1.00-9051-rc2-2013.04.05-linux-x86-32bit.tar.gz
vpnserver/
[/code]##

6. Change directory to vpnserver and list the files, we have[code][/opt/source/softether/vpnserver] # ls -al
drwxrwxrwx    4 admin    administ     4096 Apr  5 17:01 ./
drwxr-xr-x    3 admin    administ     4096 Apr  6 14:50 ../
-rwxrwxrwx    1 admin    administ     1525 Apr  5 17:01 .install.sh*
-rwxrwxrwx    1 admin    administ     2126 Apr  5 17:01 Makefile*
-rwxrwxrwx    1 admin    administ    32842 Apr  5 17:01 ReadMeFirst_Important_Notices_en.txt*
-rwxrwxrwx    1 admin    administ    46416 Apr  5 17:01 ReadMeFirst_Important_Notices_ja.txt*
-rwxrwxrwx    1 admin    administ    44585 Apr  5 17:01 ReadMeFirst_License.txt*
drwxrwxrwx    2 admin    administ     4096 Apr  5 17:01 code/
-rwxrwxrwx    1 admin    administ  1033159 Apr  5 17:01 hamcore.se2*
drwxrwxrwx    2 admin    administ     4096 Apr  5 17:01 lib/
[/opt/source/softether/vpnserver] #
[/code]##

7. Read the file "ReadMeFirst_Important_Notices_en.txt*" carefully to get the most important message about SofeEther VPN Server.

角色 發表於 2013-4-6 11:21

[i=s] 本帖最後由 角色 於 2013-4-6 15:29 編輯 [/i]

8. Set the environment variable for GCONV_PATH[code]export GCONV_PATH=/opt/lib/gconv[/code]##

9. Run the command "make"[code][/opt/source/softether/vpnserver] # make
--------------------------------------------------------------------

SoftEther VPN Server (Ver 1.00, Build 9051, Intel x86) 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:
[/code]##

10. Enter the digit "1" to denote Yes, it gives[code]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:
[/code]##

11. Enter the digit "1" to denote Yes, it gives[code]Did you agree the License Agreement ?

1. Agree
2. Do Not Agree

Please choose one of above number:
[/code]##

12. Enter the digit "1" to denote Agree, it gives[code]make[1]: Entering directory `/share/MD0_DATA/.qpkg/Optware/source/softether/vpnserver'
Preparing SoftEther VPN Server...
ranlib lib/libcharset.a
ranlib lib/libcrypto.a
ranlib lib/libedit.a
ranlib lib/libiconv.a
ranlib lib/libintelaes.a
ranlib lib/libncurses.a
ranlib lib/libssl.a
ranlib lib/libz.a
ranlib code/vpnserver.a
gcc code/vpnserver.a -O2 -fsigned-char -pthread -m32 -lm -ldl -lrt -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a lib/libintelaes.a -o vpnserver
ranlib code/vpncmd.a
gcc code/vpncmd.a -O2 -fsigned-char -pthread -m32 -lm -ldl -lrt -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a lib/libintelaes.a -o vpncmd
./vpncmd /tool /cmd:Check
vpncmd command - SoftEther VPN Command Line Management Utility
SoftEther VPN Command Line Management Utility (vpncmd command)
Version 1.00 Build 9051 Release Candidate 2 (English)
Compiled 2013/04/05 17:53:35 by yagi at pc25
Copyright (c) SoftEther Project. All Rights Reserved.

VPN Tools was launched. By inputting HELP, you can view a list of the commands that can be used.

VPN Tools>Check
Check command - Check whether SoftEther VPN Operation is Possible
---------------------------------------------------
SoftEther VPN Operation Environment Check Tool

Copyright (c) SoftEther Project.
All Rights Reserved.

If this operation environment check tool is run on a system and that system passes, it is highly likely that SoftEther VPN software can operate on that system. This check may take a while. Please wait...

Checking 'Kernel System'...
              Pass
Checking 'Memory Operation System'...
              Pass
Checking 'ANSI / Unicode string processing system'...
              Pass
Checking 'File system'...
              Pass
Checking 'Thread processing system'...
              Pass
Checking 'Network system'...
              Pass

All checks passed. It is highly likely that SoftEther VPN Server / Bridge can operate normally on this system.

The command completed successfully.


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


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

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


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

Please execute './vpnserver start' to run the SoftEther VPN Server Background Service.
And please execute './vpncmd' to run the SoftEther VPN Command-Line Utility to configure SoftEther VPN Server.
Of course, you can use the VPN Server Manager GUI Application for Windows on the other Windows PC in order to configure the SoftEther VPN Server remotely.
--------------------------------------------------------------------

make[1]: Leaving directory `/share/MD0_DATA/.qpkg/Optware/source/softether/vpnserver'
[/opt/source/softether/vpnserver] #
[/code]

角色 發表於 2013-4-6 14:05

[i=s] 本帖最後由 角色 於 2013-4-6 15:33 編輯 [/i]

13. Without the environment variable export as described in Step 8, we shall have the following error message:

[color=Red][code]./vpncmd /tool /cmd:Check
-- Alert: SoftEther VPN Kernel --
String Library Init Failed.
Please check your locale settings and iconv() libraries.[/code][/color]

角色 發表於 2013-4-6 14:05

[i=s] 本帖最後由 角色 於 2013-4-6 15:37 編輯 [/i]

14. Under the sub-directory "vpnserver", you will see the two important files "vpncmd" and "vpnserver" at the end of the listing.[code][/opt/source/softether/vpnserver] # ls -al
drwxrwxrwx    5 admin    administ     4096 Apr  6 15:06 ./
drwxr-xr-x    3 admin    administ     4096 Apr  6 14:50 ../
-rwxrwxrwx    1 admin    administ     1525 Apr  5 17:01 .install.sh*
-rwxrwxrwx    1 admin    administ     2126 Apr  5 17:01 Makefile*
-rwxrwxrwx    1 admin    administ    32842 Apr  5 17:01 ReadMeFirst_Important_Notices_en.txt*
-rwxrwxrwx    1 admin    administ    46416 Apr  5 17:01 ReadMeFirst_Important_Notices_ja.txt*
-rwxrwxrwx    1 admin    administ    44585 Apr  5 17:01 ReadMeFirst_License.txt*
drwx------    2 admin    administ     4096 Apr  6 15:06 chain_certs/
drwxrwxrwx    2 admin    administ     4096 Apr  6 15:06 code/
-rwxrwxrwx    1 admin    administ  1033159 Apr  5 17:01 hamcore.se2*
-rw-------    1 admin    administ      867 Apr  6 15:06 lang.config
drwxrwxrwx    2 admin    administ     4096 Apr  6 15:05 lib/
-rwxr-xr-x    1 admin    administ  3165027 Apr  6 15:06 vpncmd*
-rwxr-xr-x    1 admin    administ  3165087 Apr  6 15:06 vpnserver*
[/opt/source/softether/vpnserver] #
[/code]##

角色 發表於 2013-4-6 14:14

[i=s] 本帖最後由 角色 於 2013-4-6 16:40 編輯 [/i]

15. Start SoftEther VPN Server[code][/opt/source/softether/vpnserver] # ./vpnserver start
SoftEther VPN Server Service Started.[/code]##

16. If you want to stop the server, you can[code][/opt/source/softether/vpnserver] # ./vpnserver stop
Stopping SoftEther VPN Server Service...
SoftEther VPN Server Service Stopped.
[/opt/source/softether/vpnserver] #
[/code]The installation of SoftEther VPN Server is complete. You are able to Windows-based SoftEther VPN Server to configure Linux-based SoftEther VPN Server.

Remarks
1. Someone reported that there are no such a directory on her Synology NAS under /optlib/gconv. This problem could be fixed by install the missing files[code]
ipkg install gconv-modules
[/code]##

2. For DNS issue, there are two types of domains available, name softether.net and vpnazure.net. Port-forwarding is required for softether.net. There is no port-forwarding is required for vpnazure.net. For Windows-based SoftEther VPN server, both DNS domains could be employed. However Linux-based SoftEther VPN Server, only the first domain softether.net could be employed.

角色 發表於 2013-4-6 14:15

[i=s] 本帖最後由 角色 於 2013-4-6 16:55 編輯 [/i]

当你在你的NAS安装好了SoftEther VPN Server,我们可以进行把Server调置,可用的方法如下:

1. Linux-based的vpmcmd
2. Windows-based  SoftEther VPN Server
3. Windows-based  SoftEther VPN Server Manager for Windows

第一种“vpncmd”,使用上需要你记着很多的commands,在记忆力的我比较差的人,能灵活使用它有一定的难度。

第二、三种,都是MS Windows-based的GUI,在调置Linux NAS的SoftEther VPN Server非常方便。第三种,只能对SoftEther VPN Server/Bridge进行调置,而不能自己有Server功能。而第二种使用上最为广泛,有可以remote set vpnserver,自己也能做local vpn server。

当要利用Windows-based SoftEther VPN Server进行调置是,我们要知道NAS的IP Address就可以,port number不用管。

角色 發表於 2013-4-6 14:15

[i=s] 本帖最後由 角色 於 2013-4-6 17:02 編輯 [/i]

采用Windows-based SoftEther VPN Server去调置QNAP NAS-Linux-based SoftEther VPN Server:

1. 根据2#的信息,去下载一个Windows-based SoftEther VPN Server

[attach]2409[/attach]

2. 然后按一个软件去安装已下载的软件。

角色 發表於 2013-4-6 14:16

备用帖子。

角色 發表於 2013-4-6 14:16

[i=s] 本帖最後由 角色 於 2013-4-6 14:58 編輯 [/i]

备用帖子。

角色 發表於 2013-4-6 14:45

备用帖子

角色 發表於 2013-4-6 14:46

[i=s] 本帖最後由 角色 於 2013-4-6 16:51 編輯 [/i]

备用帖子。

角色 發表於 2013-4-6 14:46

[i=s] 本帖最後由 角色 於 2013-4-6 16:51 編輯 [/i]

备用帖子。

角色 發表於 2013-4-6 14:46

[i=s] 本帖最後由 角色 於 2013-4-6 16:52 編輯 [/i]

备用帖子。

角色 發表於 2013-4-6 14:47

备用帖子

ijlyniqi 發表於 2013-4-6 23:51

師兄,,,,我英文唔過關,,,睇唔明

角色 發表於 2013-4-7 00:02

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=32391&ptid=5500]17#[/url] [i]ijlyniqi[/i] [/b]

不明白哪里呢?请直说。

blizzard2 發表於 2013-4-7 11:32

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=32374&ptid=5500]7#[/url] [i]角色[/i] [/b]

我個Raspberry Pi可以用vpnazure喎。
vpnazure仲有個好處,用SSTP駁vpnazure係冇certification問題的。

角色 發表於 2013-4-7 13:34

如果你可以,那么我都要再是清楚,看看自己是否有些地方搞错了。

Shenzhen_on9 發表於 2013-4-8 10:04

[i=s] 本帖最後由 Shenzhen_on9 於 2013-4-8 10:36 編輯 [/i]

角色Ching 好坚啊.
QNAP TS-269 Pro 用不用4000 港币 ?

角色 發表於 2013-4-8 13:24

大约4500港币。

Shenzhen_on9 發表於 2013-4-10 11:39

[i=s] 本帖最後由 Shenzhen_on9 於 2013-4-11 09:43 編輯 [/i]

Softether 可不可以安装在 Xbox上? Xbox 也是 X86 Architecture.  
Xbox便宜得多.  Xbox 可行 Debian.  也可行 Windows 呀.

雯雯 發表於 2013-4-10 11:52

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=32443&ptid=5500]23#[/url] [i]Shenzhen_on9[/i] [/b]

Xbox也可以裝Debian? 我拿了家人部舊版Xbox回來一直都沒有時間弄.

Shenzhen_on9 發表於 2013-4-10 15:17

是啊.  雯雯 Ching.  
Xbox也可以裝Debian. Please see the following link.
[url]http://www.knizefamily.net/russ/computing/linux/debian-on-the-xbox/[/url]
因为微软给了玩家补贴,Xbox便宜得多.

雯雯 發表於 2013-4-10 19:54

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=32445&ptid=5500]25#[/url] [i]Shenzhen_on9[/i] [/b]

Sorry! 我是師姐.

bky16 發表於 2013-4-12 10:03

"QNAP TS-269 Pro"咁贵,玩吓可以,实用性差D。:P
xbox点呢?价钱?功耗?嘻嘻:D

bky16 發表於 2013-4-12 10:51

[i=s] 本帖最後由 bky16 於 2013-4-12 10:56 編輯 [/i]

唔知有冇Dmini pc可以介绍下:
功耗低+平价+迷你+24 x 7服务+行softether足够就可以。
会唔会要求多咗:L

角色 發表於 2013-4-12 13:31

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=32512&ptid=5500]28#[/url] [i]bky16[/i] [/b]

按照之前的师兄所说就可以。

[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=5454&extra=page%3D1[/url]

角色 發表於 2013-4-12 13:32

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=32510&ptid=5500]27#[/url] [i]bky16[/i] [/b]

当然主要是用Fire server, Asterisk, BT。

頁: [1] 2

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.