blog vipa
mój dzień to 3 filiżanki kawy

blog vipa

Express OpenVPN setup

Marzec 19th, 2009 . by vip

Following quick tutorial is for PLD distro, but should fit everywhere.

Generate private shared key, (and copy it to both, server and client with secure connection to /etc/openvpn)

CODE:
  1. openvpn –genkey –secret yourservername-key.txt

Add to TUNNELS in /etc/sysconfig/openvpn (client and server):

CODE:
  1. TUNNELS=“yourservername”

Server configuration
Edit /etc/openvpn/yourservername.conf

CODE:
  1. dev tap
  2. secret yourservername-key.txt
  3. ifconfig 10.0.0.1 255.255.255.0

Client configuration
In /etc/openvpn/yourservername.conf add:

CODE:
  1. dev tap
  2. remote yourservername.public.ip.or.domain
  3. secret yourservername-key.txt
  4. ifconfig 10.0.0.2 255.255.255.0

Now, just restart openvpn services on both, server and client. Voila.



Leave a Reply