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

blog vipa

You are Browsing the Marzec 2009 Archive:

Express OpenVPN setup

Posted on 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)
PLAIN TEXT
CODE:

openvpn –genkey –secret yourservername-key.txt

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

TUNNELS=“yourservername”

Server configuration
Edit /etc/openvpn/yourservername.conf
PLAIN TEXT
CODE:

dev tap

secret yourservername-key.txt

ifconfig 10.0.0.1 255.255.255.0

Client configuration
In /etc/openvpn/yourservername.conf add:
PLAIN TEXT
CODE:

dev tap

remote yourservername.public.ip.or.domain

secret [...]