|
|
[17.11.2005]
OpenVPN tunnel configuration for Linux
To get OpenVPN configuration files you have to contact technical support.
Technical support team will activate OpenVPN for your account and send
configuration files for it to your e-mail.
You have to download and install OpenVPN software from
OpenVPN project website.
$ tar -xzf openvpn-x.y.z.tar.gz
$ cd openvpn-x.y.z
$ ./configure
$ make
$ make install
|
Create openvpn subdirectory in /etc dir.
Save archive with configuration files (that was sent to you by technical
support) to /etc/openvpn directory.
Unpack it with command:
Open your .ovpn file in any text editor. You have to make following changes in that file:
- uncomment lines:
up /etc/openvpn/username.up
user nobody
|
- specify full path to your key file:
secret /etc/openvpn/username.key
|
Open your .up file in any text editor. You have to make following changes to that file:
- append IP address of your uplink connection gateway to the end of this line:
route add -host 82.211.136.2 gw
|
For example:
route add -host 82.211.136.2 gw 192.168.1.1
|
To start OpenVPN tunnel you should run command:
/usr/local/sbin/openvpn --config /etc/openvpn/username.ovpn
|
|