Here I will explain how i’ve manageed to have a functional VPN with running Debian as server.
I have Linux and Mac OS X clients(Tunnelblick).
What you will need
- A public IP
- debian
- an editor (vi or vim)
- this howto
- frustration proof patienece
- to launch the server:
openvpn --config /etc/openvpn/server.conf --script-security 2 --daemon
- to launch a Linux client:
openvpn --config /etc/openvpn/client.conf --script-security 2 --daemon (Debian, Ubuntu)
- to launch a Mac OS X:
Download and install Tunnelblick
- How to generate client certificates:
one installed, to generate a VPN
#cd /etc/openvpn/easy-rsa/2.0/
#./build-key <client_name>
#cd /etc/openvpn/easy-rsa/2.0/keys/
you will find 3 files named:
- <client_name>.crt
- <client_name>.csr
- <client_name>.key (chmod 500 if not )
make a tarball with those files + ca.crt
This post is not complete. By now, you can follow the open VPN howto.