Openvpn Installation & Configuration
Openvpn Installation & Configuration
1) Introduction
What is OpenVPN
Server
Amd system with Redhat EL3 installed
HDD –40GB
Ram-- 512MB
Client
Amd system with FC5 installed
HDD -40GB
RAM-512MB
Packages installed
lzo-1.08-4.1.el3.rf.i386
lzo-devel-1.08-4.1.el3.rf.i386
openvpn-2.0.7-1.fc5.rf.i386
http://dries.studentenweb.org/rpm/packages/lzo/info.html
http://dries.studentenweb.org/rpm/packages/openvpn/info.html
Installation procedure
#cd /
# mkdir packages ------ Copy the files downloaded files to this folder
#cd /packages
# rpm -ivf lzo-1.08-4.1.el3.rf.i386
Rajesh and Sajesh 6/12/2006 R-1.0
Configuration
# cd /usr/share/doc/openvpn-2.0.7/easy-rsa
[root@las easy-rsa]#./clean-all
#./build-ca
#./build-dh
#./build-key-server las
#./build-key client1 --- Just use a different email address when prompted for the common
name.
go to folder /usr/share/doc/openvpn-2.0.7/easy-rsa/keys/
usr/share/doc/openvpn-2.0.7/sample-config-files/
to
/usr/share/doc/openvpn-2.0.7/easy-rsa/keys
ca ca.crt
cert las.crt
key las.key
(las is the name given when creating the server certification files)
Configuring client
/usr/share/doc/openvpn-2.0.7/sample-config-files/
to
/usr/share/doc/openvpn-2.0.7/easy-rsa/keys
(client1 is the name given when creating the client certification files)
go to /usr/share/doc/openvpn-2.0.7/easy-rsa/keys
#openvpn server.conf
A normal server startup should look like this (output will vary across platforms):
Sun Feb 6 20:46:38 2005 OpenVPN 2.0_rc12 i686-suse-linux [SSL] [LZO] [EPOLL] built on Feb 5 2005
Sun Feb 6 20:46:38 2005 Diffie-Hellman initialized with 1024 bit key
Sun Feb 6 20:46:38 2005 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sun Feb 6 20:46:38 2005 TUN/TAP device tun1 opened
Sun Feb 6 20:46:38 2005 /sbin/ifconfig tun1 10.8.0.1 pointopoint 10.8.0.2 mtu
1500
Sun Feb 6 20:46:38 2005 /sbin/route add -net 10.8.0.0 netmask 255.255.255.0 gw
10.8.0.2
Sun Feb 6 20:46:38 2005 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:23 ET:0
EL:0 AF:3/1 ]
Sun Feb 6 20:46:38 2005 UDPv4 link local (bound): [undef]:1194
Sun Feb 6 20:46:38 2005 UDPv4 link remote: [undef]
Sun Feb 6 20:46:38 2005 MULTI: multi_init called, r=256 v=256
Sun Feb 6 20:46:38 2005 IFCONFIG POOL: base=10.8.0.4 size=62
Sun Feb 6 20:46:38 2005 IFCONFIG POOL LIST
Sun Feb 6 20:46:38 2005 Initialization Sequence Completed
Rajesh and Sajesh 6/12/2006 R-1.0
openvpn client.conf
A normal client startup on Windows will look similar to the server output
above, and should end with the Initialization Sequence Completed message.
Now, try a ping across the VPN from the client. If you are using routing (i.e. dev tun in the server
config file), try:
ping 10.8.0.1