Howto's and FAQ's

How to setup an OpenVPN server?


You can install OpenVPN on CentOS using from a rpm binary package available from the EPEL repository. If you haven't setup the EPEL repository follow the instructions explained on their website. You can setup OpenVPN as bridged VPN or as routed VPN. This example demonstrates a routed VPN setup. OpenVPN should be installed on both the server and the clients. The OpenVPN installation depends in openssl, lzo and pam.


Backup a running container using vzdump

Vzdump is a tool to make consistent snapshots of running OpenVZ containers. Vzdump stores the backup on the disk in a single file, a tar archive, which also includes the CT configuration files. This archive can be used to clone or to restore a system.

There are a few items required for installing vzdump for OpenVZ on CentOS.

First we need Simple Locking file I/O library for Perl and cstream. Both packages are available at the Dag Wiers repository. If you haven't setup the Dag Wiers repository follow the instructions explained on this website.

OpenVPN using a tun or tap device with OpenVZ/Virtuozzo

If you want to run OpenVPN within a Virtuozzo or OpenVZ container using the tun or tap device you probably need to make a few config changes on the hardware node and the container. First of all you need to be sure that the tun module is loaded on the hardware node itself. The easiest way to check that is using lsmod
Page 9 of 9


You are here: Home Howtos and FAQs