Install OpenVPN Client on Fedora Core 17

How to Install OpenVPN Client on Fedora Core 17

This guide will help you to install OpenVPN client on Fedora Core.

 

 

 

1. Install OpenVPN client package by yum

[root@fedoracore13 ~]# yum install openvpn
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
–> Running transaction check
—> Package openvpn.i686 0:2.2.2-4.fc17 will be updated
—> Package openvpn.i686 0:2.2.2-7.fc17 will be an update
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Updating:
openvpn i686 2.2.2-7.fc17 updates 380 kTransaction Summary
=====================================================================================================================================================================================================
Upgrade 1 PackageTotal download size: 380 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
openvpn-2.2.2-7.fc17.i686.rpm | 380 kB 00:03
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : openvpn-2.2.2-7.fc17.i686 1/2
Cleanup : openvpn-2.2.2-4.fc17.i686 2/2
Verifying : openvpn-2.2.2-7.fc17.i686 1/2
Verifying : openvpn-2.2.2-4.fc17.i686 2/2Updated:
openvpn.i686 0:2.2.2-7.fc17Complete!
[root@fedoracore13 ~]#

2. Configure openvpn file (ovpn)

OpenVPN Client ovpn file configuration:

[root@fedoracore13 ~]#cat ithelpblog.ovpnclient
dev tun
proto udp
remote 47.232.123.4
nobind
persist-key
persist-tun
ca ca.crt
cert ithelpblog.crt
key ithelpblog.key
verb 3

3. Do Openvpn client to site to OpenVPN Server

 

[root@fedoracore13 openvpn]# openvpn ithelpblog.ovpn
Fri Dec 7 12:22:44 2012 OpenVPN 2.2.2 i686-redhat-linux-gnu [SSL] [LZO2] [EPOLL ] [PKCS11] [eurephia] built on Sep 5 2012
Fri Dec 7 12:22:44 2012 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri Dec 7 12:22:44 2012 NOTE: OpenVPN 2.1 requires ‘–script-security 2’ or hig her to call user-defined scripts or executables
Fri Dec 7 12:22:44 2012 WARNING: file ‘ithelpblog.key’ is group or others accessible
Fri Dec 7 12:22:44 2012 Control Channel MTU parms [ L:1541 D:138 EF:38 EB:0 ET: 0 EL:0 ]
Fri Dec 7 12:22:44 2012 Socket Buffers: R=[163840->131072] S=[163840->131072]
Fri Dec 7 12:22:44 2012 Data Channel MTU parms [ L:1541 D:1450 EF:41 EB:4 ET:0 EL:0 ]
Fri Dec 7 12:22:44 2012 Local Options hash (VER=V4): ‘3514370b’
Fri Dec 7 12:22:44 2012 Expected Remote Options hash (VER=V4): ‘239669a8’
Fri Dec 7 12:22:44 2012 UDPv4 link local: [undef]
Fri Dec 7 12:22:44 2012 UDPv4 link remote: 47.232.123.4:1194
Fri Dec 7 12:22:45 2012 TLS: Initial packet from 47.232.123.4:1194, sid=d5003 f6a e0ce4829……………………………………

4. New IP is provided by OpenVPN Server

[root@fedoracore13 ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: p3p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:18:80:ab brd ff:ff:ff:ff:ff:ff
inet 192.168.0.116/24 brd 192.168.0.255 scope global p3p1
inet6 fe80::20c:29ff:fe18:80ab/64 scope link
valid_lft forever preferred_lft forever
4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
link/none
inet 10.254.192.3/24 brd 10.254.192.255 scope global tun0
[root@fedoracore13 ~]#

 

That’s all. Thanks for using IThelpblog.com

 

 

Tags:  

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>