How to configure user Authentication for OpenVPN ?

OpenVPN user authentication required for more secure environment level  1 authentication (public  and private key ) and level 2 user authentication.

In our configuration guide we are going to create a user account in Linux and enable Pam module in VPN server configuration  file (/etc/openvpn/server.conf).

The module and the location :

64bit arch/OS

/usr/lib64/opnevpn/plugin/lib/openvpn-auth-pam.so

Login

32bit arch/Os

/usr/lib/openvpn/plugin/lib/openvpn-auth-pam.so

Login

Note : OpenVPN client on windows installation and configuration guide has prepared on following platform and services.

OpenVPN client OS          : Windows 7

OpenVPN client Software    : openvpn-2.2.2

OpenVPN server IP          : vpn.demo.com

OpenVPN server OS          : Centos 6.4 64bit

OpenVPN server Software    : openvpn-2.3.2-2.e16.x86_64

Steps :

Step 1 : Create user account and enable Pam authentication openvpn  server.

Step 2 : Enable openvpn client password authentication.

Step 3 : Connect  to the OpenVPN server.

Let us see the steps in Details :

Step 1 : Create user account and enable Pam authentication openvpn  server.

1.1  Create user account for a vpn client

#adduser client1

#passwd client1

1.2  Modify server.conf file to enable pam module and add below line.

#vi  /etc/openvpn/server.conf

plugin  /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so login

save & exit (:wq!)

1.3  Restart openvpn server service changes to effect.

#service openvpn  restart

Step 2 : Enable openvpn client password authentication.

1.1  Go to openvpn client and modify client.ovpn configuration  file to add Pam authentication ,

add  below line in openvpn.ovpn

auth-user-pass

save & exit (:qw!)

Step 3 : Connect to the OpenVPN server

Reconnect vpn session that will prompt you to provide a user name and password.

Start -> OpenVPN  GUI (As administrator ) -> Status Bar -> OpenVPN icon -> connect.

Thank You.

For more Details you can watch video and also subscribe for more Videos :

Both comments and pings are currently closed.

Comments are closed.

Copyright ©Solutions@Experts.com
Copyright © NewWpThemes Techmark Solutions - www.techmarksolutions.co.uk