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]openvpn –genkey –secret yourservername-key.txt[/code]

Add to TUNNELS in /etc/sysconfig/openvpn (client and server):
[code]TUNNELS=”yourservername”[/code]

Server configuration
Edit /etc/openvpn/yourservername.conf
[code]dev tap
secret yourservername-key.txt
ifconfig 10.0.0.1 255.255.255.0
[/code]

Client configuration
In /etc/openvpn/yourservername.conf add:
[code]dev tap
remote yourservername.public.ip.or.domain
secret yourservername-key.txt
ifconfig 10.0.0.2 255.255.255.0
[/code]

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

Leave a Reply