cd lzo-2.04
./configure --prefix=/usr/local/lzo
make
make install
cd openvpn-2.1.4
./configure --prefix=/usr/local/openvpn --with-lzo-headers=/usr/local/lzo/include --with-lzo-lib=/usr/local/lzo/lib --with-ssl-headers=/usr/include/openssl --with-ssl-lib=/usr/lib
make
make install
生成各种证书
运行:
/usr/local/openvpn/sbin/openvpn --config /usr/local/openvpn/etc/server.conf --daemon