Engine for secure and scalable VPN infrastructure https://ocserv.openconnect-vpn.net
Go to file
Nikos Mavrogiannopoulos 9d0ca85b85 released 0.3.6
2014-05-24 14:32:40 +02:00
build-aux updated gnulib 2014-01-19 09:31:46 +01:00
doc Sending of statistics is done periodically in addition to the worker process termination time. 2014-05-04 20:54:18 +02:00
gl Added gnulib's missing files 2014-01-19 12:17:14 +01:00
libopts the generation of makefile isn't conditional 2013-12-13 17:24:20 +01:00
src use safe_memset() instead of the plain memset() which can be optimized out. 2014-05-20 17:54:06 +02:00
tests Test whether the statistics are exported to disconnect script. 2014-04-28 17:36:02 +02:00
.gitignore Added a full test between openconnect and ocserv based on docker. 2014-04-17 15:25:19 +02:00
AUTHORS updated license information and authors 2013-11-05 19:38:30 +01:00
autogen.sh Added autogen file. 2013-02-25 21:18:22 +01:00
ChangeLog Added automake/autoconf system 2013-01-13 11:25:05 +01:00
configure.ac released 0.3.6 2014-05-24 14:32:40 +02:00
COPYING updated license information and authors 2013-11-05 19:38:30 +01:00
INSTALL Added options to explicitly disable checking for certain libraries 2014-02-24 19:13:05 +01:00
LICENSE explicitly specify GPLv2+ (or later) in LICENSE. 2014-04-01 11:47:58 +02:00
Makefile.am corrected args file generation 2014-01-11 14:46:34 +01:00
NEWS released 0.3.6 2014-05-24 14:32:40 +02:00
README doc update 2014-02-24 21:22:18 +01:00
TODO Export TUN device statistics from the worker process. 2014-04-28 17:32:51 +02:00

=== About ===

This program is openconnect VPN server (ocserv), a server compatible with the
openconnect VPN client [0]. It is believed to be compatible with the protocol
used by CISCO's AnyConnect SSL VPN. 

[0]. http://www.infradead.org/openconnect/


=== Build dependencies ===

Required dependencies:
libgnutls-dev      / gnutls-devel

Optional dependencies that enable specific functionality:
* TCP wrappers: libwrap0-dev       / tcp_wrappers-devel
* PAM:          libpam0g-dev       / pam-devel
* seccomp:      libseccomp-dev     / libseccomp-devel
* occtl:        libdbus-1-dev      / dbus-devel
                libreadline-dev    / readline-devel
                libnl-route-3-dev  / libnl3-devel

Dependencies that can be skipped in an embedded system:
(a replacement library is included)

libprotobuf-c0-dev / protobuf-c-devel
libhttp-parser-dev / http-parser-devel
libpcl1-dev        / pcllib-devel
libopts25-dev      / autogen-libopts-devel
autogen            / autogen



=== Build instructions ===

To build from a distributed release use:

$ ./configure && make

When cross compiling it may be useful to add the --enable-local-libopts
option to configure.

To prevent ocserv's worker process from executing non authorized system 
calls you may compile ocserv with the --enable-seccomp option. That is 
currently experimental and not enabled by default.


To build from the git repository use:

$ autoreconf -fvi
$ ./configure && make

In addition to the prerequisites listed above, building from git requires
the following packages: autoconf, automake, autogen, git2cl, and xz.

Note that the system's autogen version must match the included libopts
version on the development system, if the included libopts library is to
be used.


=== Installation instructions ===

Now you need to generate a certificate. E.g.
$ certtool --generate-privkey > ./test-key.pem
$ certtool --generate-self-signed --load-privkey test-key.pem --outfile test-cert.pem
(make sure you enable encryption or signing)

To run the server on the foreground edit the doc/sample.config and then run:
# src/ocserv -f -c src/sample.config


=== Profiling ===

If you use ocserv on a server with significant load and you'd like to help
improve it, you may help by sending profiling information. That includes
the bottlenecks in software, so future optimizations could be spent on the
real needs. 

In a Linux system you can profile ocserv using the following command.
# perf record -g ocserv

After the server is terminated, the output is placed in perf.data. It does 
not contain any sensitive information. If you run a server for long time,
and under usage (i.e., clients connecting and transferring data), please
send that information to nmav@gnutls.org.

You may examine the output using:
# perf report


=== How the VPN works ===

Please see:
http://www.infradead.org/ocserv/technical.html