# as root perform the following tasks ####### RH/CentOS (newer versions of CentOS have this included in the standard repos) # you will need to get the openvpn rpm and liblzo2 package from: http://dag.wieers.com/rpm/packages/openvpn/ http://dag.wieers.com/rpm/packages/lzo2/ ####### Configuration # generate a shared secret key openvpn --genkey --secret /etc/openvpn/secret.key # copy the key to the client (this is the shared secret) # create the virtual interface device mkdir /dev/net mknod /dev/net/tun c 10 200 # create directory for logging mkdir /var/log/openvpn # deploy and configure the config file below # location /etc/openvpn/openvpn.conf # ============================================ # Make all paths relative to /etc/openvpn cd /etc/openvpn # Networking # CHANGE THIS (local and remote) local 10.0.0.56 # specify the local ip remote 192.168.20.71 # specify the remote ip # the ips of the virtual interfaces (locally and remote) # are specified here # ifconfig LOCAL REMOTE # CHANGE THIS ifconfig 5.1.2.3 5.1.2.4 port 1194 dev-type tun dev zentunnel # will be the interface name # Authentication