installing_openvpn_on_ubuntu_8.04

This is an old revision of the document!


Installing OpenVPN on Ubuntu 8.04

apt-get install openvpn openssl 
cd /usr/share/doc/openvpn/examples/easy-rsa/2.0
nano vars
source ./vars
./clean-all
./build-ca
./build-key-server [server-name]

leave password blank and answer yes to sign certificate and to commit.

./build-dh
./build-key [client-name]
cd keys
cp ca.* dh1024.pem server.* /etc/openvpn/
cd /usr/share/doc/openvpn/examples/sample-config-files
gzip -d server.conf.gz
cp server.conf /etc/openvpn/
cd /etc/openvpn/
nano server.conf

change the line

;push "redirect-gateway"

to

push "redirect-gateway def1"

(notice that there is no ; at the begining anymore!)

and if you feel like having a little more security also uncomment tese two lines and change the group name to “nogroup” rather than “nobody”

user nobody
group nogroup
  • installing_openvpn_on_ubuntu_8.04.1265403331.txt.gz
  • Last modified: 05.02.2010 21:55
  • by Pascal Suter