Installing K-Secure VPN™ Server On Linux
I. Prerequisites
- A Linux distribution with kernel 2.x or better (tested on 2.4.21) running on X86 Architecture;
- At least 10MB free disk space;
- At least 10MB free memory;
II. Installation
- Download the latest release from http://k-secure.com/download.php;
- Extract all contents from the archive into a directory;
- chdir into the directory where all files are extracted;
- Carefully examine the sample INI file (KsVpnSvr.ini), make changes to the [Options] section;
- You may add more groups, rules or users into the INI file by following the samples in the INI file;
- Type the following command in your shell to import the INI file:
./KsVpnSvr --import=KsVpnSvr.ini
- To export a configuration for a particular user, see section III below.
- Type the following command in your shell
./KsVpnSvr
or
./KsVpnSvr &
to start the server.
III. Export Configurations
Type the following command in your shell to export configuration file
for a user:
./KsVpnSvr --ExportConfig=Username
where Username is the username of the user that you defined in the INI
file. Note Username is case sensitive.
For example, if you are to export the configurations for John, type
./KsVpnSvr --ExportConfig=John
This command will generate John.kvr in the current directory. You can
redistribute this file to John so he can import this file in the client
machine.
IV. Testing
Please see
http://k-secure.com/ksvpnsvr/webhelp/QuickTutorial.php for
a step-by-step tutorial on how to get the server up and running. This
tutorial is written for Windows users, however the concept and test steps
are virtually the same for Linux servers.
V. Database Transferring
You may follow the tutorial to set up your server on Windows platform and
then transfer the resulted KsVpnSvr.db to your Linux installation directory.
Just remember that in "Step 1: Verify External IP and Port," the "External
IP" shall be defined as the IP of your Linux box and not that of the Windows
machine.
On Windows XP and earlier Windows, KsVpnSvr.db resides in
C:\Documents and Settings\All Users\Application Data\K-Secure
On Windows Vista and Windows 7, KsVpnSvr.db resides in
C:\ProgramData\K-Secure
If your Windows OS is installed on a different hard disk, say drive D:, then
replace "C:" with "D:" in the previous paths.
VI. Sample Runs
Below is a test session on Ubuntu Linux:
tester@ubuntu:~/tmp$ tar zxvf KsVpnSvr.tar.gz
INSTALL
KsVpnSvr
KsVpnSvr.db
KsVpnSvr.ini
README
tester@ubuntu:~/tmp$ ls -lai
total 1904
1464631 drwxr-xr-x 2 tester tester 4096 2011-03-07 21:28 .
1438978 drwxr-xr-x 30 tester tester 4096 2011-03-07 21:28 ..
1464635 -rwxr-xr-x 1 tester tester 2270 2010-04-11 07:58 INSTALL
1464636 -rwxr-xr-x 1 tester tester 1122702 2010-04-19 13:13 KsVpnSvr
1464637 -rwxr--r-- 1 tester tester 153600 2010-04-19 12:37 KsVpnSvr.db
1464638 -rwxr-xr-x 1 tester tester 2448 2010-04-11 08:03 KsVpnSvr.ini
1464634 -rwxr--r-- 1 tester tester 640698 2011-03-07 08:28 KsVpnSvr.tar.gz
1464639 -rwxr-xr-x 1 tester tester 4411 2010-04-19 13:13 README
tester@ubuntu:~/tmp$ ./KsVpnSvr --import=KsVpnSvr.ini
tester@ubuntu:~/tmp$ ls -lai
total 1904
1464631 drwxr-xr-x 2 tester tester 4096 2011-03-07 21:29 .
1438978 drwxr-xr-x 30 tester tester 4096 2011-03-07 21:28 ..
1464635 -rwxr-xr-x 1 tester tester 2270 2010-04-11 07:58 INSTALL
1464636 -rwxr-xr-x 1 tester tester 1122702 2010-04-19 13:13 KsVpnSvr
1464637 -rwxr--r-- 1 tester tester 155648 2011-03-07 21:29 KsVpnSvr.db
1464638 -rwxr-xr-x 1 tester tester 2773 2011-03-07 21:28 KsVpnSvr.ini
1464634 -rwxr--r-- 1 tester tester 640698 2011-03-07 08:28 KsVpnSvr.tar.gz
1464639 -rwxr-xr-x 1 tester tester 4411 2010-04-19 13:13 README
tester@ubuntu:~/tmp$ ./KsVpnSvr --ExportConfig=John
tester@ubuntu:~/tmp$ ls -lai
total 1916
1464631 drwxr-xr-x 2 tester tester 4096 2011-03-07 21:29 .
1438978 drwxr-xr-x 30 tester tester 4096 2011-03-07 21:28 ..
1464635 -rwxr-xr-x 1 tester tester 2270 2010-04-11 07:58 INSTALL
1464636 -rwxr-xr-x 1 tester tester 1122702 2010-04-19 13:13 KsVpnSvr
1464637 -rwxr--r-- 1 tester tester 157696 2011-03-07 21:29 KsVpnSvr.db
1464638 -rwxr-xr-x 1 tester tester 2773 2011-03-07 21:28 KsVpnSvr.ini
1464640 -rw-r--r-- 1 tester tester 3072 2011-03-07 21:29 KsVpnSvr.log
1464634 -rwxr--r-- 1 tester tester 640698 2011-03-07 08:28 KsVpnSvr.tar.gz
1464639 -rwxr-xr-x 1 tester tester 4411 2010-04-19 13:13 README
1464641 -rw-r--r-- 1 tester tester 376 2011-03-07 21:29 John.kvr
tester@ubuntu:~/tmp$
See Also