K-Secure VPN Server K-Secure VPN Client
Introduction
Installation
Quick Start Tutorial
How It Works
Release Notes
Working with the Server
Server Side Overview
Groups, Rules and Users
Server Status
Peers
IP Assignments
Connections
Express Config
Groups
Rules
Users
History
Proxy Agent
Working with the Wizards
Group Wizard
Rule Wizard
User Wizard
Options
General
Connections
History
Languages
Look and Feel
Server
Virtual Network
Warnings
Command Line Options
How To ...
Install License
Start and Stop
Uninstall
Using Service Control Manager
Using ipconfig
Tech Support
Purchasing and Licensing Agreements
How to Order
License

Installing K-Secure VPN Server On Linux

I. Prerequisites

  1. A Linux distribution with kernel 2.x or better (tested on 2.4.21) running on X86 Architecture;
  2. At least 10MB free disk space;
  3. At least 10MB free memory;

II. Installation

  1. Download the latest release from http://k-secure.com/download.php;
  2. Extract all contents from the archive into a directory;
  3. chdir into the directory where all files are extracted;
  4. Carefully examine the sample INI file (KsVpnSvr.ini), make changes to the [Options] section;
  5. You may add more groups, rules or users into the INI file by following the samples in the INI file;
  6. Type the following command in your shell to import the INI file:
        ./KsVpnSvr --import=KsVpnSvr.ini
  7. To export a configuration for a particular user, see section III below.
  8. 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