OpenVPN & LZO for the PPC LinkStation
This article Based on work by frontalot and andre. Originally by andre. at Linkstationwiki.org
It allows peers to authenticate to each other using a preshared private key, certificates, or username/password. It makes extensive use of the OpenSSL encryption library, and uses the SSLv3/TLSv1 protocol. It is available on Linux, xBSD, Mac OSX, and Windows 2000/XP. It offers a wealth of security and control features. It is not a "web-based" VPN, and is not compatible with IPsec or any other VPN package. The entire package consists of one binary for both client and server connections, an optional configuration file, and one or more key files depending on the authentication method used.
- Encryption - OpenVPN uses the OpenSSL library to provide encryption of both the data and control channels. It lets OpenSSL do all the encryption and authentication work, allowing OpenVPN to use all the ciphers available in the OpenSSL package. It can also use the HMAC packet authentication feature to add an additional layer of security to the connection (referred to as an "HMAC Firewall" by the creator). It can also use hardware acceleration to get better encryption performance.
- Authentication - OpenVPN has several ways to authenticate peers to one another. OpenVPN offers preshared secret key, certificate-based, and username/password-based authentication. Preshared secret key is the easiest, with certificate based being the most robust and feature-rich. The username/password is a new feature (version 2.0) that can be used with or without a client certificate (the server still needs a certificate). The source tarball includes a sample perl script to verify the username/password with PAM and a C auth-pam plugin.
- Networking - OpenVPN multiplexes all communications over a single IP port. It can run over UDP (preferred, and default) or TCP. It has the ability to work through most proxy servers (including HTTP) and is good at working through NAT and getting out through firewalls. The server configuration has the ability to "push" certain network configuration options to the clients. These include IP addresses, routing commands, and a few connection options. OpenVPN offers two types of interfaces for networking via the Universal Tun/Tap driver. It can create either a layer-3 based IP tunnel, or a layer-2 based Ethernet "tap" that can carry any type of Ethernet traffic. OpenVPN can optionally use the LZO compression library to compress the data stream. IANA assigned port 1194 as the official port number for OpenVPN. Newer versions of the program now default to that port. A feature in the 2.0 version allows for one process to manage several simultaneous tunnels, as opposed to the original "one tunnel per process" restriction on the 1.x series. OpenVPN's use of common network protocols (TCP and UDP) makes it a desirable alternative to IPsec in situations where an ISP may block specific VPN protocols in order to force users to subscribe to a higher-priced, "business grade," service tier.
- Security - OpenVPN offers several internal security features. It runs in userspace, instead of requiring IP stack (and therefore kernel) operation. OpenVPN has the ability to drop root privileges, use mlockall to prevent swapping sensitive data to disk, and enter a chroot jail after initialization.
Compilation instructions and required additional files
wget http://hvkls.dyndns.org/downloads/openvpn_configfiles-ppc.tar.gz tar -C / -xvzf openvpn_configfiles-ppc.tar.gz
The compilation procedures:
- Compilation without LZO:
./configure --prefix=/usr/local --with-ifconfig-path=/bin/ifconfig --disable-lzo --enable-pthread make make install
- With LZO:
Get LZO from <http://www.oberhumer.com/opensource/lzo/> and compile it with:
- Compile openvpn
./configure --prefix=/usr/local --with-ifconfig-path=/bin/ifconfig --with-lzo-headers=/usr/local/include --with-lzo-lib=/usr/local/lib --enable-pthread make make install
Configuration files following the scheme /etc/openvpn/*.conf will be loaded automatically at system startup 
apt-get install openvpn
openvpn --gen-key --secret openvpn.sec
- OpenVPN project homepage
- Wikipedia: OpenVPN
- OpenGroup - mlockall
- http://openvpn.net/howto.html and http://openvpn.net/examples.html - More information on how to use OpenVPN